1212
1313public class CommandLineLauncher {
1414 public static void main (String [] args ) {
15- String allPath = "./liquidjava-example/src/main/java/test/currentlyTesting" ;
15+ String allPath = "./liquidjava-example/src/main/java/test/currentlyTesting" ;
1616
1717 // String allPath = "C://Regen/test-projects/src/Main.java";
1818 // In eclipse only needed this:"../liquidjava-example/src/main/java/"
@@ -32,11 +32,11 @@ public static ErrorEmitter launch(String file) {
3232 System .out .println ("Running LiquidJava on: " + file );
3333 Launcher launcher = new Launcher ();
3434 launcher .addInputResource (file );
35- // launcher.getEnvironment().setNoClasspath(true);
35+ launcher .getEnvironment ().setNoClasspath (true );
3636
3737 // Get the current classpath from the system
38- String classpath = System .getProperty ("java.class.path" );
39- launcher .getEnvironment ().setSourceClasspath (classpath .split (File .pathSeparator ));
38+ // String classpath = System.getProperty("java.class.path");
39+ // launcher.getEnvironment().setSourceClasspath(classpath.split(File.pathSeparator));
4040
4141 // optional
4242 // launcher.getEnvironment().setSourceClasspath(
@@ -54,10 +54,9 @@ public static ErrorEmitter launch(String file) {
5454
5555 try {
5656 // To only search the last package - less time spent
57- CtPackage v = factory .Package ().getAll ().stream ()
58- .reduce ((first , second ) -> second )
59- .orElse (null );
60- if (v != null ) processingManager .process (v );
57+ CtPackage v = factory .Package ().getAll ().stream ().reduce ((first , second ) -> second ).orElse (null );
58+ if (v != null )
59+ processingManager .process (v );
6160 // To search all previous packages
6261 // processingManager.process(factory.Package().getRootPackage());
6362 } catch (Exception e ) {
0 commit comments