This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have some issues in setting the classpath for the a project for which Im trying to create a jar using the Ant build script. For eg: Consider a project A in the workspace. This project has internal dependencies with other projects in the workspace. There are project B, C, D in my workspace, which are added to the build path of the Project A. I have the below compile script in the build.xml. When I try to execute the script, the compile does not seem to happen, due to issues with classpath. Please find the code below.
When I try to execute the script, I get the error at this line '<javac srcdir="../A/src" destdir="${Classfiles}" />' saying that compilation fails. Require help in setting the classpath in the buildscript. Thanks in Advance
You should reference the bin directory, not the src directory, in the classpath (assuming you kept the default location for the compiled files), example:
Also, you have to make sure that the projects B, C and D are compiled before you can run the build for A. (You might need a master script that builds the projects in the correct order.)