Margin_Walker
asked on
Using Ant to build a jar
Experts,
I am trying to use Ant to build a jar file for the first time. I have 10 classes in a directory C:\views\rafterco_view2\bi n\com\hsbc \cds\cdsto markit\mar kit\filege n on my local machine.
I also have jars stored here: C:\views\rafterco_view2\gm _pads\imp\ src\Extern al that are required for the build.
What is the minimum I need in my build.xml to create this jar file?
Thanks,
Margin_Walker
I am trying to use Ant to build a jar file for the first time. I have 10 classes in a directory C:\views\rafterco_view2\bi
I also have jars stored here: C:\views\rafterco_view2\gm
What is the minimum I need in my build.xml to create this jar file?
Thanks,
Margin_Walker
below you can find an example
http://techpages.wordpress.com/2006/09/29/how-to-create-a-jar-file-using-ant-that-refers-to-other-jar-files/
http://techpages.wordpress.com/2006/09/29/how-to-create-a-jar-file-using-ant-that-refers-to-other-jar-files/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to know the basics of using ant (just how to make a simple basic build file). Read this:
http://ant.apache.org/manual/
Then you have to use javac task, here is the documentation:
http://ant.apache.org/manual/CoreTasks/javac.html