This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Issue with Build script for generating multiple jar files

 
Ranch Hand
Posts: 97
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: 97
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.



 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!