How can I build a separate jar for a specific package in a project?
I have a project structure like this:
Project Something
|
|-> DifferentPackages
Or a jar for each package using a build.xml?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your build xml, define one task each to produce one jar. With in the task, use
filesetto include only specific package.Once done, create a wrapper task and make it dependent on all the jars tasks created above or wrap all jar creation tasks in the new task itself. Make this a default target.
e.g.