Ant Build File Creation in Java Using Apache Ant
How to create apache ant build file in project
So it will create build.xml for us . the minimal code to create jar using apache ant build is
<?xml version="1.0" encoding="UTF-8"?>
<project name="Example" default="makejar" basedir=".">
<target name ="makejar" description="Jar File Creation">
<jar jarfile="Test.jar" includes="*.class" basedir="bin"/>
<echo>******** Jars Files Create Inside Project ********** </echo>
</target>
</project>
- If you are using Eclipse open the eclipse right click then select Export and select "Ant Build File" then after that select your project where you want to create build file then finish
So it will create build.xml for us . the minimal code to create jar using apache ant build is
<?xml version="1.0" encoding="UTF-8"?>
<project name="Example" default="makejar" basedir=".">
<target name ="makejar" description="Jar File Creation">
<jar jarfile="Test.jar" includes="*.class" basedir="bin"/>
<echo>******** Jars Files Create Inside Project ********** </echo>
</target>
</project>
Comments
Post a Comment