/[debian]/libjpfcodegen-java/trunk/build.xml
ViewVC logotype

Contents of /libjpfcodegen-java/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1612 - (show annotations)
Sun Mar 1 18:00:46 2009 UTC (12 years, 2 months ago) by gregoa
File MIME type: text/xml
File size: 3238 byte(s)
[svn-inject] Forking libjpfcodegen-java source to Trunk
1 <?xml version="1.0"?>
2 <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
4 Ant build file for JPFCodeGenerator
5
6 Ant-Download: http://jakarta.apache.org/ant
7 Ant-Manual: http://jakarta.apache.org/ant/manual/index.html
8
9 Precondition: 1. Ant should be installed.
10 2. JAVA_HOME environment variable contains the path to JDK1.5 or higher
11 3. ANT_HOME environment variable contains the path to ant's home directory
12
13 Language: XML
14 Compiler: Ant
15 Author: Christopher Oezbek
16 Based on ant build file originally written by:
17 Joerg K. Wegner, wegnerj@informatik.uni-tuebingen.de
18 Morten O. Alver
19 Version: $Revision: 1.82 $
20 $Date: 2007/02/16 22:03:15 $
21 $Author: mortenalver $
22
23 modified:
24
25 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
26
27 <project name="JPFCodeGenerator" default="jars" basedir=".">
28
29 <!-- Properties -->
30 <property name="version" value="0.4" />
31 <property name="jar" value="JPFCodeGenerator-${version}" />
32 <property name="build" value="build" />
33 <property name="src" value="src" />
34 <property name="lib" value="lib" />
35
36 <!-- Build classpath -->
37 <path id="classpath">
38 <pathelement path="${build}" />
39 <pathelement location="${lib}/jpf.jar" />
40 <pathelement location="${lib}/jpf-boot.jar" />
41 <pathelement location="${lib}/velocity-dep-1.5.jar" />
42 <pathelement location="${lib}/commons-logging.jar" />
43 </path>
44
45 <target name="run" depends="compile">
46 <java classname="net.sf.jabref.plugin.util.CodeGenerator" fork="true">
47 <classpath refid="classpath" />
48 </java>
49 </target>
50
51 <target name="compile">
52 <mkdir dir="${build}" />
53 <javac debug="on" deprecation="on" destdir="${build}" source="1.5" target="1.5">
54 <src path="${src}" />
55 <classpath refid="classpath" />
56 </javac>
57 </target>
58
59 <!-- Jars up project -->
60 <target name="jars" depends="compile, unjarlib">
61 <jar destfile="${jar}.jar">
62 <fileset dir="${build}" />
63 <fileset dir=".">
64 <exclude name="bin/**" />
65 <exclude name="${build}/**" />
66 <exclude name="lib/**" />
67 <exclude name="*.jar" />
68 <exclude name="${src}/**" />
69 <exclude name="todo/**" />
70 </fileset>
71 <manifest>
72 <attribute name="Main-Class" value="net.sf.jabref.plugin.util.CodeGenerator" />
73 </manifest>
74 </jar>
75 <jar destfile="${jar}-rt.jar">
76 <fileset dir="${build}">
77 <include name="net/sf/jabref/**" />
78 </fileset>
79 </jar>
80 <jar destfile="${jar}-src.jar">
81 <fileset dir=".">
82 <exclude name="bin/**"/>
83 <exclude name="${build}/**"/>
84 <exclude name="*.jar"/>
85 <exclude name="todo/**"/>
86 </fileset>
87 </jar>
88 </target>
89
90 <target name="unjarlib" description="Unpacks jars from library">
91 <unjar src="lib/jpf.jar" dest="${build}" />
92 <unjar src="lib/jpf-boot.jar" dest="${build}" />
93 <unjar src="lib/velocity-dep-1.5.jar" dest="${build}" />
94 <unjar src="lib/commons-logging.jar" dest="${build}" />
95 </target>
96
97 <target name="clean" description="Clean project">
98 <delete dir="${build.dir}" />
99 </target>
100
101 </project>

  ViewVC Help
Powered by ViewVC 1.1.26