I am trying to distribute my gwt build process so that compilePerms step is executed on a remote machine. I am making a small java program for that purpose. I have successfully transfered the result of the Precompile step to the other computer as well as the source files...
So I now have a folder structure something like /root /src /build /custom-compile-perms.jar /(uncompressed) /work /src / /resources Now when i run my custom compile perms program it creates a temp folder called _uncompressed_ which in turn contains /work and /src of the project transfered from the remote computer. At that time if I try to execute sth like List<String> moduleNames = new ArrayList<String>(); moduleNames.add("com.hypersimple.HyperSimple"); File workDir = new File("uncompressed\\work"); final CompilePermsOptions options = new CompilePermsOptionsImpl(); options.setModuleNames(moduleNames); options.setWorkDir(workDir); int perms[] = { 0 }; options.setPermsToCompile(perms); I get an error that the module com.hypersimple.hypersimple cannot be found and that I should check if it is on the classpath. I have figured out that I need to have the folder /uncompressed/src on the classpath - but what if I don't know in which folder that source will reside - can I somehow add it during runtime? File uncompressedSrc = new File("uncompressed" + File.separator + "src" + File.separator); URL uncompressedSrcURL = null; try { uncompressedSrcURL = new URL("file://" + uncompressedSrc.getAbsolutePath()); } catch (MalformedURLException e) { e.printStackTrace(); } URL elements[] = { uncompressedSrcURL }; new URLClassLoader(elements, ClassLoader.getSystemClassLoader()); and even thought it adds /uncompressed/src to the classpath, GWT compilePerms doesn't seem to look into that folder. Any suggestions? I have tried using classloader as follows -- http://groups.google.com/group/Google-Web-Toolkit-Contributors