The following ant code is run inside the -post-jar target in a Netbeans Java project.
<!-- Copy the .jar file and the zipped directory dist to deploy folder in Z: drive
-->
<echo message="Zip and copy: ${application.title}" />
<!-- A file name property for the zip file we are going to create --> <local name="zipfile" /> <property name="zipfile" value="${application.title}-dist.zip" />
<!-- The creation of the zip file --> <zip destfile="${zipfile}"> <fileset dir="${dist.dir}/" /> </zip>
"Using Apache Ant in Netbeans"
No comments yet. -