initial import from pitchfork-0.5.5
[patchfork.git] / jorbis / build.xml
1 <project name="jorbis-pitchfork" basedir="." default="all">
2
3         <!--
4                 run "ant jar" to create the needed jar
5                 To sign it you'll need a selfsigned certificate, see seperate 
6                 comment about that
7         -->
8         <property name="source" value="src"/>
9         <property name="build" value="build"/>
10         <property name="classes" value="${build}/classes"/>
11         <property name="jarfile" value="jorbis-pitchfork.jar"/>
12
13         <target name="clean">
14             <delete dir="${build}"/>
15         </target>
16
17         <target name="compile">
18                 <mkdir dir="${classes}"/>
19                 <javac srcdir="${source}" destdir="${classes}"/>
20         </target>
21
22         <target name="jar" depends="compile">
23
24                 <jar destfile="jorbis-pitchfork.jar" basedir="${classes}">
25                         <manifest>
26                                 <attribute name="Main-Class" value="JorbisPlayer"/>
27                         </manifest>
28                 </jar>
29         </target>
30
31
32         <!-- To create your own certificate: 
33                 keytool -genkey -alias pitchfork -validity 3650
34                 keytool -selfcert -alias pitchfork -validity 3650
35         -->
36         <target name="signjar" depends="jar">
37                 <signjar storepass="secret" jar="${jarfile}" alias="pitchfork">
38                 </signjar>
39         </target>
40
41         <target name="all" depends="clean,compile,jar,signjar">
42         </target>
43
44 </project>
This page took 0.019303 seconds and 4 git commands to generate.