mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-11-25 01:32:26 +00:00
added ant build.xml
This commit is contained in:
parent
3bf972a761
commit
4b476457d3
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
/bin/
|
|
||||||
.project
|
|
||||||
.classpath
|
|
||||||
build.xml
|
|
40
build.xml
Normal file
40
build.xml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project name="DiskBrowser" default="jar" basedir=".">
|
||||||
|
|
||||||
|
<property name="srcDir" location="src" />
|
||||||
|
<property name="binDir" location="bin" />
|
||||||
|
<property name="jarFolder" location="${user.home}/Dropbox/Java" />
|
||||||
|
<property name="jarFile" location="${jarFolder}/DiskBrowser.jar" />
|
||||||
|
|
||||||
|
<target name="version">
|
||||||
|
<echo>DiskBrowser.jar</echo>
|
||||||
|
<echo>${ant.version}</echo>
|
||||||
|
<echo>Java/JVM version: ${ant.java.version}</echo>
|
||||||
|
<echo>Java/JVM detail version: ${java.version}</echo>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="init" depends="version">
|
||||||
|
<delete file="${binDir}/*.class" />
|
||||||
|
<delete file="${jarFile}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="compile" depends="init">
|
||||||
|
<javac debug="on" srcdir="${srcDir}" destdir="${binDir}" includeantruntime="false">
|
||||||
|
<classpath>
|
||||||
|
<pathelement location="." />
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="jar" depends="compile">
|
||||||
|
<jar destfile="${jarFile}">
|
||||||
|
<fileset dir="${binDir}" />
|
||||||
|
<zipfileset src="${jarFolder}/InputPanel.jar" />
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Main-Class" value="com.bytezone.diskbrowser.gui.DiskBrowser" />
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
Loading…
Reference in New Issue
Block a user