/[debian]/libjpfcodegen-java/branches/upstream/current/tutorials/basic/build.xml
ViewVC logotype

Contents of /libjpfcodegen-java/branches/upstream/current/tutorials/basic/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1609 - (show annotations)
Sun Mar 1 18:00:34 2009 UTC (12 years, 4 months ago) by gregoa
File MIME type: text/xml
File size: 2559 byte(s)
[svn-inject] Installing original source of libjpfcodegen-java
1 <?xml version="1.0"?>
2 <!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
4 Ant build file for JPFCodeGenerator-Basic tutorial
5
6 http://www.inf.fu-berlin.de/~oezbek/jpf/
7
8 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
9
10 <project name="JPFCodeGenerator-BasicTutorial" default="compile" basedir=".">
11
12 <!-- Properties -->
13 <property name="jpfCodeGeneratorVersion" value="0.3" />
14 <property name="build" value="build" />
15 <property name="src" value="src" />
16 <property name="lib" value="../../lib" />
17
18 <!-- Code Generator classpath -->
19 <path id="classpath-codeGenerator">
20 <pathelement path="${build}" />
21 <pathelement location="${lib}/jpf.jar" />
22 <pathelement location="${lib}/../JPFCodeGenerator-${jpfCodeGeneratorVersion}.jar" />
23 <pathelement location="${lib}/jpf-boot.jar" />
24 <pathelement location="${lib}/velocity-dep-1.5.jar" />
25 <pathelement location="${lib}/commons-logging.jar" />
26 </path>
27
28 <!-- Application classpath -->
29 <path id="classpath-application">
30 <pathelement path="${build}" />
31 <pathelement location="${lib}/jpf.jar" />
32 <pathelement location="${lib}/jpf-boot.jar" />
33 <pathelement location="${lib}/../JPFCodeGenerator-${jpfCodeGeneratorVersion}-rt.jar" />
34 <pathelement path="plugins/core/build/" />
35 <pathelement location="${lib}/commons-logging.jar" />
36 </path>
37
38 <!-- Run the JPF Code Generator -->
39 <target name="generate">
40 <java classname="net.sf.jabref.plugin.util.CodeGenerator" fork="true">
41 <classpath refid="classpath-codeGenerator" />
42 </java>
43 </target>
44
45 <target name="compile" depends="compilePlugins">
46 <mkdir dir="${build}" />
47 <javac debug="on" deprecation="on" destdir="${build}" source="1.5" target="1.5">
48 <src path="${src}" />
49 <classpath refid="classpath-application" />
50 </javac>
51 </target>
52
53 <target name="compilePlugins" depends="generate">
54 <ant inheritall="false" dir="plugins/core/" />
55 <ant inheritall="false" dir="plugins/plugin1/" />
56 <ant inheritall="false" dir="plugins/plugin2/" />
57 </target>
58
59 <target name="run">
60 <java classname="com.example.Main" fork="true">
61 <classpath refid="classpath-application" />
62 </java>
63 </target>
64
65 <target name="clean" description="Clean project">
66 <delete dir="${build}" />
67 <ant inheritall="false" dir="plugins/core/" target="clean" />
68 <ant inheritall="false" dir="plugins/plugin1/" target="clean" />
69 <ant inheritall="false" dir="plugins/plugin2/" target="clean" />
70 </target>
71
72 </project>

  ViewVC Help
Powered by ViewVC 1.1.26