• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Build problem when including third party jars in classpath using ant

 
ramya narayanan
Ranch Hand
Posts: 338
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 338
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 338
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic