package jscompile;


import jscompile.util.ProjectProcessor;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class JSCompile {

    public static void main(String[] args) throws IOException{
        String projectPath = args[0];
        String outputPath = args[1];

        String projectName = null;
        if(args.length>2){
            projectName = args[2];
        }else{
            String[] projectPathParts = projectPath.split("[\\/]");
            if(projectPathParts.length>0){
                projectName = projectPathParts[projectPathParts.length-1];
            }
        }

        File rootDir = new File(projectPath);
        if(rootDir.isDirectory()){
            ProjectProcessor processor = new ProjectProcessor(rootDir);
            String compiledJS = processor.getCompiledProject(projectName);

            FileWriter writer = new FileWriter(outputPath);
            writer.write(compiledJS);
            writer.close();

        }

    }
}

@@ -471,15 +471,22 @@
 lit(
-%22%5B%5C%5C/%5D%22
+File.separator
 );%0A 

fix for separator bug.