File tree 3 files changed +20
-8
lines changed
src/main/java/life/qbic/xmledit
3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 119
119
<groupId >org.apache.maven.plugins</groupId >
120
120
<artifactId >maven-shade-plugin</artifactId >
121
121
<configuration >
122
- <createDependencyReducedPom >false</createDependencyReducedPom >
122
+ <transformers >
123
+ <transformer
124
+ implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
125
+ <mainClass >life.qbic.xmledit.Main</mainClass >
126
+ </transformer >
127
+ </transformers >
128
+ <createDependencyReducedPom >true</createDependencyReducedPom >
123
129
<artifactSet >
124
130
<includes >
125
131
<include >org.apache.xmlgraphics:batik-transcoder</include >
Original file line number Diff line number Diff line change
1
+ package life .qbic .xmledit ;
2
+
3
+ import net .imagej .ImageJ ;
4
+
5
+ public class Main {
6
+ /**
7
+ * Starts a new ImageJ session when started from outside Fiji
8
+ */
9
+ public static void main (String [] args ) {
10
+ final ImageJ ij = new ImageJ ();
11
+ ij .command ().run (XMLEditor .class , true );
12
+ }
13
+ }
Original file line number Diff line number Diff line change @@ -785,11 +785,4 @@ public void run() {
785
785
DebugTools .enableLogging ("INFO" );
786
786
new XMLEditor ().testEdit ();
787
787
}
788
- /**
789
- * Starts a new ImageJ session when started from outside Fiji
790
- */
791
- public static void main (String [] args ) throws Exception {
792
- final ImageJ ij = new ImageJ ();
793
- ij .command ().run (XMLEditor .class , true );
794
- }
795
788
}
You can’t perform that action at this time.
0 commit comments