File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed
src/main/java/life/qbic/xmledit Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 119119 <groupId >org.apache.maven.plugins</groupId >
120120 <artifactId >maven-shade-plugin</artifactId >
121121 <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 >
123129 <artifactSet >
124130 <includes >
125131 <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() {
785785 DebugTools .enableLogging ("INFO" );
786786 new XMLEditor ().testEdit ();
787787 }
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- }
795788}
You can’t perform that action at this time.
0 commit comments