build.xml 1.24 KB
Newer Older
Daniel Dreibrodt's avatar
Daniel Dreibrodt committed
1 2
<?xml version="1.0" encoding="UTF-8"?>

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
<project name="skin-designer" default="dist" basedir=".">

  <property name="srcdir" value="src" />
  <property name="builddir" value="build" />

  <target name="bootstrap">
    <mkdir dir="${builddir}" />
  </target>

  <target name="compile" depends="bootstrap">
    <mkdir dir="${builddir}/classes" />
    <javac srcdir="${srcdir}"
           destdir="${builddir}/classes"
           target="1.6"
           source="1.6"
           fork="true" />
  </target>

  <target name="copy-resources" depends="bootstrap">
    <mkdir dir="${builddir}/resources/vlcskineditor/icons" />
    <copy todir="${builddir}/resources/vlcskineditor/icons">
      <fileset dir="${srcdir}/vlcskineditor/icons" />
    </copy>
  </target>

  <target name="jar" depends="compile, copy-resources">
    <jar destfile="${builddir}/${ant.project.name}.jar">
      <fileset dir="${builddir}/classes" />
     <fileset dir="${builddir}/resources" />
      <manifest>
        <attribute name="Main-Class"
                   value="vlcskineditor.Main" />
      </manifest>
    </jar>
  </target>

  <target name="dist" depends="jar" />

  <target name="clean">
    <delete dir="${builddir}" />
  </target>
Daniel Dreibrodt's avatar
Daniel Dreibrodt committed
44 45

</project>