summaryrefslogtreecommitdiff
path: root/build.xml
blob: 03e935359df2b2abf42f632f03f6a99338597434 (plain)
1
2
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
<?xml version="1.0" encoding="utf-8" ?>
<project name="SermonUploader" default="build" basedir=".">
  <path id="project.class.path">
    <fileset dir="lib" includes="**/*.jar"/>
  </path>

  <target name="javac" description="Compile java source to bytecode">
    <mkdir dir="build"/>
    <javac srcdir="src" includes="**" encoding="utf-8"
        destdir="build"
        source="1.5" target="1.5" nowarn="true"
        debug="true" debuglevel="lines,vars,source">
       <classpath refid="project.class.path"/>
    </javac>
    <copy todir="build">
      <fileset dir="src" excludes="**/*.java"/>
    </copy>
  </target>

  <target name="build" depends="javac" description="Build this project" />

  <target name="jar" depends="build" description="Create a jar file">
    <jar destfile="SermonUploader.jar">
       <fileset dir="build" />
       <restrict>
          <archives>
             <zips>
                <fileset dir="lib" includes="**/*.jar" />
             </zips>
         </archives>
       </restrict>
       <manifest>
          <attribute name="Main-Class" value="net.jesterpm.sermonuploader.SermonUploader" />
       </manifest>
    </jar>
  </target>

  <target name="clean" description="Cleans this project">
    <delete dir="build" failonerror="false" />
  </target>

</project>