File: build.xml

package info (click to toggle)
libjpfcodegen-java 0.4%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 260 kB
  • ctags: 86
  • sloc: java: 601; xml: 232; sh: 12; makefile: 6
file content (38 lines) | stat: -rw-r--r-- 1,394 bytes parent folder | download | duplicates (5)
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
<?xml version="1.0"?>
<project name="JPFCodeGenerator-BasicTutorial-Core" default="compile" basedir=".">

	<!-- Properties -->
	<property name="jpfCodeGeneratorVersion" value="0.3" />
	<property name="build" value="build" />
	<property name="src" value="src" />
	<property name="lib" value="../../../../lib" />

	<!-- Build classpath -->
	<path id="classpath">
		<pathelement path="${build}" />
		<pathelement path="../../${build}" />
		<pathelement location="${lib}/../JPFCodeGenerator-${jpfCodeGeneratorVersion}-rt.jar" />
		<pathelement location="${lib}/jpf.jar" />
		<pathelement location="${lib}/commons-logging.jar" />
	</path>

	<target name="compile">
		<mkdir dir="${build}" />
		<javac debug="on" deprecation="on" destdir="${build}" source="1.5" target="1.5">
			<src path="${src}" />
			<classpath refid="classpath" />
		</javac>
	</target>

	<target name="clean" description="Clean project">
		<delete dir="${build}" />
		<!-- The next line is only there to create an clean distribution, 
		     normally you would only clean the generated content. -->
		<delete dir="${src}" includes="**" includeemptydirs="true" />
		<!-- The next line is only needed since we delete the src folder, 
		     with the line above too -->
		<mkdir dir="${src}" />
		<delete dir="${src}" includes="**/generated/" includeemptydirs="true" />
	</target>

</project>