• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Issue with Build script for generating multiple jar files

 
Ranch Hand
Posts: 102
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 102
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic