File tree Expand file tree Collapse file tree 3 files changed +46
-5
lines changed
src/main/java/liquidjava/api Expand file tree Collapse file tree 3 files changed +46
-5
lines changed Original file line number Diff line number Diff line change 1111
1212 <groupId >liquidjava-api</groupId >
1313 <artifactId >liquidjava-api</artifactId >
14- <version >0.0.1 -SNAPSHOT</version >
14+ <version >0.0.2 -SNAPSHOT</version >
1515 <name >liquidjava-api</name >
1616 <packaging >jar</packaging >
1717
Original file line number Diff line number Diff line change 1212 <groupId >liquidjava-verifier
1313 </groupId >
1414 <artifactId >liquidjava-verifier</artifactId >
15- <version >0.0.1 -SNAPSHOT</version >
15+ <version >5.2 -SNAPSHOT</version >
1616 <name >liquidjava-verifier</name >
1717 <packaging >jar</packaging >
1818
6464 </execution >
6565 </executions >
6666 </plugin >
67+ <plugin >
68+ <groupId >org.apache.maven.plugins</groupId >
69+ <artifactId >maven-shade-plugin</artifactId >
70+ <version >3.2.4</version >
71+ <executions >
72+ <execution >
73+ <phase >package</phase >
74+ <goals >
75+ <goal >shade</goal >
76+ </goals >
77+ <configuration >
78+ <transformers >
79+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
80+ <mainClass >liquidjava.api.CommandLineLauncher</mainClass >
81+ </transformer >
82+ </transformers >
83+ <filters >
84+ <filter >
85+ <artifact >*:*</artifact >
86+ <excludes >
87+ <exclude >META-INF/*.SF</exclude >
88+ <exclude >META-INF/*.DSA</exclude >
89+ <exclude >META-INF/*.RSA</exclude >
90+ </excludes >
91+ </filter >
92+ </filters >
93+ </configuration >
94+ </execution >
95+ </executions >
96+ </plugin >
6797 </plugins >
6898 </build >
6999
116146 <artifactId >junit-jupiter-params</artifactId >
117147 <scope >test</scope >
118148 </dependency >
119-
149+ <dependency >
150+ <groupId >ch.qos.logback</groupId >
151+ <artifactId >logback-classic</artifactId >
152+ <version >1.4.11</version >
153+ </dependency >
120154 <dependency >
121155 <groupId >org.mdkt.compiler</groupId >
122156 <artifactId >InMemoryJavaCompiler</artifactId >
Original file line number Diff line number Diff line change 11package liquidjava .api ;
22
3+ import java .io .File ;
4+
35import liquidjava .errors .ErrorEmitter ;
46import liquidjava .processor .RefinementProcessor ;
57import spoon .Launcher ;
1012
1113public class CommandLineLauncher {
1214 public static void main (String [] args ) {
13- String allPath = "./liquidjava-example/src/main/java/test/currentlyTesting" ;
15+ String allPath = "./liquidjava-example/src/main/java/test/currentlyTesting" ;
1416
1517 // String allPath = "C://Regen/test-projects/src/Main.java";
1618 // In eclipse only needed this:"../liquidjava-example/src/main/java/"
@@ -30,7 +32,12 @@ public static ErrorEmitter launchTest(String file) {
3032 public static ErrorEmitter launch (String file ) {
3133 Launcher launcher = new Launcher ();
3234 launcher .addInputResource (file );
33- launcher .getEnvironment ().setNoClasspath (true );
35+ // launcher.getEnvironment().setNoClasspath(true);
36+
37+ // Get the current classpath from the system
38+ String classpath = System .getProperty ("java.class.path" );
39+ launcher .getEnvironment ().setSourceClasspath (classpath .split (File .pathSeparator ));
40+
3441 // optional
3542 // launcher.getEnvironment().setSourceClasspath(
3643 // "lib1.jar:lib2.jar".split(":"));
You can’t perform that action at this time.
0 commit comments