assembly.setEntryPointClassName(mainClass.getName());
assembly.setTargetLocation(new File(target));
DragomeConfigurator configurator= ServiceLocator.getInstance().getConfigurator();
DragomeJsCompiler compiler= new DragomeJsCompiler(configurator.getDefaultCompilerType());
// compiler.setBasedir(basedir);
compiler.addClasspathElements(classpathElements);
compiler.addClasspathFilter(new FileFilter()
{
public boolean accept(File pathname)
{
return !pathname.toString().contains(File.separator + "serverside");
}
});
if (configurator != null)
compiler.setBytecodeTransformer(configurator.getBytecodeTransformer());
compiler.addAssembly(assembly);
compiler.setGenerateLineNumbers(false);
compiler.setCompression(false);
compiler.execute();
}
catch (Exception e)
{
e.printStackTrace();
}