Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
<!-- Change the value of this property to be the name of your JAR,
minus the .jar extension. It should not have spaces.
<property name="store.jar.name" value="MyJarName"/>
-->
<property name="store.jar.name" value="MarsRoverViewer"/>
<delete dir="${store.dir}"/>
<mkdir dir="${store.dir}"/>
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
<zip destfile="${store.jar}">
<zipfileset src="${store.dir}/temp_final.jar"
excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>
</zip>
<delete file="${store.dir}/temp_final.jar"/>
</target>
Note that you must change the following line in the Ant code above to match your particular project.
The property store.jar.name specifies the name of the JAR file that will be created in the store directory — change
the value to whatever name you like. When you done your coding, right click on the build.xml—>Run Target
—>Other Targets—>package-for-store
A folder called Store should appear in your project folder and the MarsRoverViewer.jar should sit in there
double click it and run!