How we can create a jar using ant?



How we can create a jar using ant?..

Answer / Aneeta Yadav

To create a JAR using Ant, you need to define a jar task and set its attributes such as the destination file, classpath, and main class. You can then trigger the JAR creation by calling the task in another task or running the build file from the command line.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Ant Interview Questions

What is ant?

1 Answers  


In which language apache ant is written?

1 Answers  


What are the core concepts of ant?

1 Answers  


Can I put the contents of a classpath or fileset into a property?

1 Answers  


What is dependency? How it is used into ant? What is its use?

1 Answers  


Explain how to make ant user interactive?

1 Answers  


What is ivy?

1 Answers  


What is history of ant?

1 Answers  


How we can set the path environment variable of ant?

1 Answers  


What is dependency? How it is used into ant?

1 Answers  


How we can echo message in ant?

1 Answers  


What is advantage of ant 1.7.1?

1 Answers  


Categories