Meaningless Drivel is fun!*
The moose likes Ant, Maven and Other Build Tools and the fly likes Build problem when including third party jars in classpath using ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Build problem when including third party jars in classpath using ant" Watch "Build problem when including third party jars in classpath using ant" New topic
Author

Build problem when including third party jars in classpath using ant

ramya narayanan
Ranch Hand

Joined: Oct 06, 2008
Posts: 338
This is my build.xml file & it is in c:\sai folder.
My ant's bin folder is set in the path.

The major purpose of this build.xml is to check how to include third party jars using ant target & compile them using that.
But when I run the target pdfcompile , eventhough the build is successful it's the java file is not compiled & classes not created in output folder.

Regards.
ramya narayanan
Ranch Hand

Joined: Oct 06, 2008
Posts: 338
When I echo to check whether it is going into the target, it is now going to the target itself

But after properties when I give a echo message it is working properly.


When i run ant
ramya narayanan
Ranch Hand

Joined: Oct 06, 2008
Posts: 338
Ok now with these modified build.xml file & putting my third party jars in E:\
TestAnt\lib .
I'm able to build successfully.
Consider my src directory is E\TestAnt


Now when running

Regards.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Build problem when including third party jars in classpath using ant