Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with Build script for generating multiple jar files

 
Varshini Priya
Ranch Hand
Posts: 95
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a requirement where I need to build multiple jar files from each of the project that exists in my workspace.. In my case, there are 5 projects in my workspace and I would have to create 5 different jars. Also there are external dependency jars, that needs to be included in some projects to build the jar file. Below is the sample code that I have written to create two jar files.



The code works fine. I.e Im able to get the jar files generated. But when I try to execute the target "compileHib". It has a dependency task to be completed. I.E the 'clean' task. But the 'clean' task does not get executed. The jar files that are generated for HibernateService1.jar seems to contain the class files for the ValueObjects as well. This is because the dependency task 'clean' is not executed when trying to run the 'compileHib'. Please let me know if Im missing anything in this. Require help in getting this issue resolved. Thanks in Advance.
 
Varshini Priya
Ranch Hand
Posts: 95
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I was able to resolve the issue by using antcall(calling the 'clean' target by using antcall inside 'compileHib' . For reference purpose, below is wat I tried and it worked.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic