annotate src/MPipeline2/nbproject/build-impl.xml @ 4:e3c5468b1bfe database-connection-manager

Integrate with LTPDAPreferences
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
2 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
4 *** EDIT ../build.xml INSTEAD ***
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
5
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
6 For the purpose of easier reading the script
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
7 is divided into following sections:
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
8
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
9 - initialization
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
10 - compilation
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
11 - jar
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
12 - execution
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
13 - debugging
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
14 - javadoc
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
15 - junit compilation
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
16 - junit execution
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
17 - junit debugging
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
18 - applet
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
19 - cleanup
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
20
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
21 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="MPipeline2-impl">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
23 <fail message="Please build using Ant 1.7.1 or higher.">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
24 <condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
25 <not>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
26 <antversion atleast="1.7.1"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
27 </not>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
28 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
29 </fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
31 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
32 ======================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
33 INITIALIZATION SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
34 ======================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
35 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
36 <target name="-pre-init">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
37 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
38 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
39 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
40 <target depends="-pre-init" name="-init-private">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
41 <property file="nbproject/private/config.properties"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
42 <property file="nbproject/private/configs/${config}.properties"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
43 <property file="nbproject/private/private.properties"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
44 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
45 <target depends="-pre-init,-init-private" name="-init-user">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
46 <property file="${user.properties.file}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
47 <!-- The two properties below are usually overridden -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
48 <!-- by the active platform. Just a fallback. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
49 <property name="default.javac.source" value="1.4"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
50 <property name="default.javac.target" value="1.4"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
51 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
53 <property file="nbproject/configs/${config}.properties"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
54 <property file="nbproject/project.properties"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
55 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
57 <available file="${manifest.file}" property="manifest.available"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
58 <condition property="splashscreen.available">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
59 <and>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
60 <not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
61 <equals arg1="${application.splash}" arg2="" trim="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
62 </not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
63 <available file="${application.splash}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
64 </and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
65 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
66 <condition property="main.class.available">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
67 <and>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
68 <isset property="main.class"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
69 <not>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
70 <equals arg1="${main.class}" arg2="" trim="true"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
71 </not>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
72 </and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
73 </condition>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
74 <condition property="manifest.available+main.class">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
75 <and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
76 <isset property="manifest.available"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
77 <isset property="main.class.available"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
78 </and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
79 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
80 <condition property="do.archive">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
81 <not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
82 <istrue value="${jar.archive.disabled}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
83 </not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
84 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
85 <condition property="do.mkdist">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
86 <and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
87 <isset property="do.archive"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
88 <isset property="libs.CopyLibs.classpath"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
89 <not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
90 <istrue value="${mkdist.disabled}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
91 </not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
92 </and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
93 </condition>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
94 <condition property="manifest.available+main.class+mkdist.available">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
95 <and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
96 <istrue value="${manifest.available+main.class}"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
97 <isset property="do.mkdist"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
98 </and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
99 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
100 <condition property="do.archive+manifest.available">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
101 <and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
102 <isset property="manifest.available"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
103 <istrue value="${do.archive}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
104 </and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
105 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
106 <condition property="do.archive+main.class.available">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
107 <and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
108 <isset property="main.class.available"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
109 <istrue value="${do.archive}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
110 </and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
111 </condition>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
112 <condition property="do.archive+splashscreen.available">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
113 <and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
114 <isset property="splashscreen.available"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
115 <istrue value="${do.archive}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
116 </and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
117 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
118 <condition property="do.archive+manifest.available+main.class">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
119 <and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
120 <istrue value="${manifest.available+main.class}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
121 <istrue value="${do.archive}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
122 </and>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
123 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
124 <condition property="manifest.available-mkdist.available">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
125 <or>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
126 <istrue value="${manifest.available}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
127 <isset property="do.mkdist"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
128 </or>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
129 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
130 <condition property="manifest.available+main.class-mkdist.available">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
131 <or>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
132 <istrue value="${manifest.available+main.class}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
133 <isset property="do.mkdist"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
134 </or>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
135 </condition>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
136 <condition property="have.tests">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
137 <or>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
138 <available file="${test.src.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
139 </or>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
140 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
141 <condition property="have.sources">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
142 <or>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
143 <available file="${src.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
144 </or>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
145 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
146 <condition property="netbeans.home+have.tests">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
147 <and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
148 <isset property="netbeans.home"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
149 <isset property="have.tests"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
150 </and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
151 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
152 <condition property="no.javadoc.preview">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
153 <and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
154 <isset property="javadoc.preview"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
155 <isfalse value="${javadoc.preview}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
156 </and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
157 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
158 <property name="run.jvmargs" value=""/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
159 <property name="javac.compilerargs" value=""/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
160 <property name="work.dir" value="${basedir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
161 <condition property="no.deps">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
162 <and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
163 <istrue value="${no.dependencies}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
164 </and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
165 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
166 <property name="javac.debug" value="true"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
167 <property name="javadoc.preview" value="true"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
168 <property name="application.args" value=""/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
169 <property name="source.encoding" value="${file.encoding}"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
170 <property name="runtime.encoding" value="${source.encoding}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
171 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
172 <and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
173 <isset property="javadoc.encoding"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
174 <not>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
175 <equals arg1="${javadoc.encoding}" arg2=""/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
176 </not>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
177 </and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
178 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
179 <property name="javadoc.encoding.used" value="${source.encoding}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
180 <property name="includes" value="**"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
181 <property name="excludes" value=""/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
182 <property name="do.depend" value="false"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
183 <condition property="do.depend.true">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
184 <istrue value="${do.depend}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
185 </condition>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
186 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
187 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
188 <length length="0" string="${endorsed.classpath}" when="greater"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
189 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
190 <condition else="false" property="jdkBug6558476">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
191 <and>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
192 <matches pattern="1\.[56]" string="${java.specification.version}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
193 <not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
194 <os family="unix"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
195 </not>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
196 </and>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
197 </condition>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
198 <property name="javac.fork" value="${jdkBug6558476}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
199 <property name="jar.index" value="false"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
200 <property name="jar.index.metainf" value="${jar.index}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
201 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
202 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
203 <target name="-post-init">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
204 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
205 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
206 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
207 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
208 <fail unless="src.dir">Must set src.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
209 <fail unless="test.src.dir">Must set test.src.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
210 <fail unless="build.dir">Must set build.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
211 <fail unless="dist.dir">Must set dist.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
212 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
213 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
214 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
215 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
216 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
217 <fail unless="dist.jar">Must set dist.jar</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
218 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
219 <target name="-init-macrodef-property">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
220 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
221 <attribute name="name"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
222 <attribute name="value"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
223 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
224 <property name="@{name}" value="${@{value}}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
225 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
226 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
227 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
228 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
229 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
230 <attribute default="${src.dir}" name="srcdir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
231 <attribute default="${build.classes.dir}" name="destdir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
232 <attribute default="${javac.classpath}" name="classpath"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
233 <attribute default="${javac.processorpath}" name="processorpath"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
234 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
235 <attribute default="${includes}" name="includes"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
236 <attribute default="${excludes}" name="excludes"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
237 <attribute default="${javac.debug}" name="debug"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
238 <attribute default="${empty.dir}" name="sourcepath"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
239 <attribute default="${empty.dir}" name="gensrcdir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
240 <element name="customize" optional="true"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
241 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
242 <property location="${build.dir}/empty" name="empty.dir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
243 <mkdir dir="${empty.dir}"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
244 <mkdir dir="@{apgeneratedsrcdir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
245 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
246 <src>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
247 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
248 <include name="*"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
249 </dirset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
250 </src>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
251 <classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
252 <path path="@{classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
253 </classpath>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
254 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
255 <compilerarg line="${javac.compilerargs}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
256 <compilerarg value="-processorpath"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
257 <compilerarg path="@{processorpath}:${empty.dir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
258 <compilerarg line="${ap.processors.internal}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
259 <compilerarg line="${annotation.processing.processor.options}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
260 <compilerarg value="-s"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
261 <compilerarg path="@{apgeneratedsrcdir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
262 <compilerarg line="${ap.proc.none.internal}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
263 <customize/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
264 </javac>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
265 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
266 </macrodef>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
267 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
268 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
269 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
270 <attribute default="${src.dir}" name="srcdir"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
271 <attribute default="${build.classes.dir}" name="destdir"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
272 <attribute default="${javac.classpath}" name="classpath"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
273 <attribute default="${javac.processorpath}" name="processorpath"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
274 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
275 <attribute default="${includes}" name="includes"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
276 <attribute default="${excludes}" name="excludes"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
277 <attribute default="${javac.debug}" name="debug"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
278 <attribute default="${empty.dir}" name="sourcepath"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
279 <attribute default="${empty.dir}" name="gensrcdir"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
280 <element name="customize" optional="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
281 <sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
282 <property location="${build.dir}/empty" name="empty.dir"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
283 <mkdir dir="${empty.dir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
284 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
285 <src>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
286 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
287 <include name="*"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
288 </dirset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
289 </src>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
290 <classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
291 <path path="@{classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
292 </classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
293 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
294 <compilerarg line="${javac.compilerargs}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
295 <customize/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
296 </javac>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
297 </sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
298 </macrodef>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
299 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
300 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
301 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
302 <attribute default="${src.dir}" name="srcdir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
303 <attribute default="${build.classes.dir}" name="destdir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
304 <attribute default="${javac.classpath}" name="classpath"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
305 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
306 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
307 <classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
308 <path path="@{classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
309 </classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
310 </depend>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
311 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
312 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
313 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
314 <attribute default="${build.classes.dir}" name="destdir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
315 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
316 <fail unless="javac.includes">Must set javac.includes</fail>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
317 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
318 <path>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
319 <filelist dir="@{destdir}" files="${javac.includes}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
320 </path>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
321 <globmapper from="*.java" to="*.class"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
322 </pathconvert>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
323 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
324 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
325 <delete>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
326 <files includesfile="${javac.includesfile.binary}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
327 </delete>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
328 <delete>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
329 <fileset file="${javac.includesfile.binary}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
330 </delete>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
331 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
332 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
333 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
334 <target name="-init-macrodef-junit">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
335 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
336 <attribute default="${includes}" name="includes"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
337 <attribute default="${excludes}" name="excludes"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
338 <attribute default="**" name="testincludes"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
339 <sequential>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
340 <property name="junit.forkmode" value="perTest"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
341 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
342 <batchtest todir="${build.test.results.dir}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
343 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
344 <filename name="@{testincludes}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
345 </fileset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
346 </batchtest>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
347 <classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
348 <path path="${run.test.classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
349 </classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
350 <syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
351 <propertyref prefix="test-sys-prop."/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
352 <mapper from="test-sys-prop.*" to="*" type="glob"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
353 </syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
354 <formatter type="brief" usefile="false"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
355 <formatter type="xml"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
356 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
357 <jvmarg value="-ea"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
358 <jvmarg line="${run.jvmargs}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
359 </junit>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
360 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
361 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
362 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
363 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
364 <target name="-profile-pre-init">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
365 <!-- Empty placeholder for easier customization. -->
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
366 <!-- You can override this target in the ../build.xml file. -->
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
367 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
368 <target name="-profile-post-init">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
369 <!-- Empty placeholder for easier customization. -->
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
370 <!-- You can override this target in the ../build.xml file. -->
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
371 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
372 <target name="-profile-init-macrodef-profile">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
373 <macrodef name="resolve">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
374 <attribute name="name"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
375 <attribute name="value"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
376 <sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
377 <property name="@{name}" value="${env.@{value}}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
378 </sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
379 </macrodef>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
380 <macrodef name="profile">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
381 <attribute default="${main.class}" name="classname"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
382 <element name="customize" optional="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
383 <sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
384 <property environment="env"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
385 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
386 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
387 <jvmarg value="${profiler.info.jvmargs.agent}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
388 <jvmarg line="${profiler.info.jvmargs}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
389 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
390 <arg line="${application.args}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
391 <classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
392 <path path="${run.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
393 </classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
394 <syspropertyset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
395 <propertyref prefix="run-sys-prop."/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
396 <mapper from="run-sys-prop.*" to="*" type="glob"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
397 </syspropertyset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
398 <customize/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
399 </java>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
400 </sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
401 </macrodef>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
402 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
403 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
404 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
405 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
406 </target>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
407 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
408 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
409 <attribute default="${main.class}" name="name"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
410 <attribute default="${debug.classpath}" name="classpath"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
411 <attribute default="" name="stopclassname"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
412 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
413 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
414 <classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
415 <path path="@{classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
416 </classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
417 </nbjpdastart>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
418 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
419 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
420 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
421 <attribute default="${build.classes.dir}" name="dir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
422 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
423 <nbjpdareload>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
424 <fileset dir="@{dir}" includes="${fix.classes}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
425 <include name="${fix.includes}*.class"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
426 </fileset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
427 </nbjpdareload>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
428 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
429 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
430 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
431 <target name="-init-debug-args">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
432 <property name="version-output" value="java version &quot;${ant.java.version}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
433 <condition property="have-jdk-older-than-1.4">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
434 <or>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
435 <contains string="${version-output}" substring="java version &quot;1.0"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
436 <contains string="${version-output}" substring="java version &quot;1.1"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
437 <contains string="${version-output}" substring="java version &quot;1.2"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
438 <contains string="${version-output}" substring="java version &quot;1.3"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
439 </or>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
440 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
441 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
442 <istrue value="${have-jdk-older-than-1.4}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
443 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
444 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
445 <os family="windows"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
446 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
447 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
448 <isset property="debug.transport"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
449 </condition>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
450 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
451 <target depends="-init-debug-args" name="-init-macrodef-debug">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
452 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
453 <attribute default="${main.class}" name="classname"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
454 <attribute default="${debug.classpath}" name="classpath"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
455 <element name="customize" optional="true"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
456 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
457 <java classname="@{classname}" dir="${work.dir}" fork="true">
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
458 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
459 <jvmarg line="${debug-args-line}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
460 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
461 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
462 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
463 <jvmarg line="${run.jvmargs}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
464 <classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
465 <path path="@{classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
466 </classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
467 <syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
468 <propertyref prefix="run-sys-prop."/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
469 <mapper from="run-sys-prop.*" to="*" type="glob"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
470 </syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
471 <customize/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
472 </java>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
473 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
474 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
475 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
476 <target name="-init-macrodef-java">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
477 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
478 <attribute default="${main.class}" name="classname"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
479 <attribute default="${run.classpath}" name="classpath"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
480 <element name="customize" optional="true"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
481 <sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
482 <java classname="@{classname}" dir="${work.dir}" fork="true">
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
483 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
484 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
485 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
486 <jvmarg line="${run.jvmargs}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
487 <classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
488 <path path="@{classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
489 </classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
490 <syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
491 <propertyref prefix="run-sys-prop."/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
492 <mapper from="run-sys-prop.*" to="*" type="glob"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
493 </syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
494 <customize/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
495 </java>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
496 </sequential>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
497 </macrodef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
498 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
499 <target name="-init-macrodef-copylibs">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
500 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
501 <attribute default="${manifest.file}" name="manifest"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
502 <element name="customize" optional="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
503 <sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
504 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
505 <pathconvert property="run.classpath.without.build.classes.dir">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
506 <path path="${run.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
507 <map from="${build.classes.dir.resolved}" to=""/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
508 </pathconvert>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
509 <pathconvert pathsep=" " property="jar.classpath">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
510 <path path="${run.classpath.without.build.classes.dir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
511 <chainedmapper>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
512 <flattenmapper/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
513 <globmapper from="*" to="lib/*"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
514 </chainedmapper>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
515 </pathconvert>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
516 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
517 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
518 <fileset dir="${build.classes.dir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
519 <manifest>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
520 <attribute name="Class-Path" value="${jar.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
521 <customize/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
522 </manifest>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
523 </copylibs>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
524 </sequential>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
525 </macrodef>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
526 </target>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
527 <target name="-init-presetdef-jar">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
528 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
529 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
530 <j2seproject1:fileset dir="${build.classes.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
531 </jar>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
532 </presetdef>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
533 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
534 <target name="-init-ap-cmdline-properties">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
535 <property name="annotation.processing.enabled" value="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
536 <property name="annotation.processing.processors.list" value=""/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
537 <property name="annotation.processing.processor.options" value=""/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
538 <property name="annotation.processing.run.all.processors" value="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
539 <property name="javac.processorpath" value="${javac.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
540 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
541 <condition property="ap.supported.internal" value="true">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
542 <not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
543 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
544 </not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
545 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
546 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
547 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
548 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
549 <isfalse value="${annotation.processing.run.all.processors}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
550 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
551 <condition else="" property="ap.proc.none.internal" value="-proc:none">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
552 <isfalse value="${annotation.processing.enabled}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
553 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
554 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
555 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
556 <property name="ap.cmd.line.internal" value=""/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
557 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
558 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
559 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
560 ===================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
561 COMPILATION SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
562 ===================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
563 -->
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
564 <target name="-deps-jar-init" unless="built-jar.properties">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
565 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
566 <delete file="${built-jar.properties}" quiet="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
567 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
568 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
569 <echo level="warn" message="Cycle detected: MPipeline2 was already built"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
570 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
571 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
572 <mkdir dir="${build.dir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
573 <touch file="${built-jar.properties}" verbose="false"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
574 <property file="${built-jar.properties}" prefix="already.built.jar."/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
575 <antcall target="-warn-already-built-jar"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
576 <propertyfile file="${built-jar.properties}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
577 <entry key="${basedir}" value=""/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
578 </propertyfile>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
579 </target>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
580 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
581 <target depends="init" name="-check-automatic-build">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
582 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
583 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
584 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
585 <antcall target="clean"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
586 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
587 <target depends="init,deps-jar" name="-pre-pre-compile">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
588 <mkdir dir="${build.classes.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
589 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
590 <target name="-pre-compile">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
591 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
592 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
593 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
594 <target if="do.depend.true" name="-compile-depend">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
595 <pathconvert property="build.generated.subdirs">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
596 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
597 <include name="*"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
598 </dirset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
599 </pathconvert>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
600 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
601 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
602 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
603 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
604 <copy todir="${build.classes.dir}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
605 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
606 </copy>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
607 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
608 <target if="has.persistence.xml" name="-copy-persistence-xml">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
609 <mkdir dir="${build.classes.dir}/META-INF"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
610 <copy todir="${build.classes.dir}/META-INF">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
611 <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
612 </copy>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
613 </target>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
614 <target name="-post-compile">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
615 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
616 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
617 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
618 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
619 <target name="-pre-compile-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
620 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
621 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
622 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
623 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
624 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
625 <j2seproject3:force-recompile/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
626 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
627 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
628 <target name="-post-compile-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
629 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
630 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
631 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
632 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
633 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
634 ====================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
635 JAR BUILDING SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
636 ====================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
637 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
638 <target depends="init" name="-pre-pre-jar">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
639 <dirname file="${dist.jar}" property="dist.jar.dir"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
640 <mkdir dir="${dist.jar.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
641 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
642 <target name="-pre-jar">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
643 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
644 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
645 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
646 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
647 <j2seproject1:jar/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
648 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
649 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
650 <j2seproject1:jar manifest="${manifest.file}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
651 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
652 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
653 <j2seproject1:jar manifest="${manifest.file}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
654 <j2seproject1:manifest>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
655 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
656 </j2seproject1:manifest>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
657 </j2seproject1:jar>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
658 <echo level="info">To run this application from the command line without Ant, try:</echo>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
659 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
660 <property location="${dist.jar}" name="dist.jar.resolved"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
661 <pathconvert property="run.classpath.with.dist.jar">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
662 <path path="${run.classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
663 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
664 </pathconvert>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
665 <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
666 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
667 <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
668 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
669 <touch file="${tmp.manifest.file}" verbose="false"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
670 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
671 <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
672 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
673 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
674 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
675 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
676 <manifest file="${tmp.manifest.file}" mode="update">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
677 <attribute name="Main-Class" value="${main.class}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
678 </manifest>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
679 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
680 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
681 <basename file="${application.splash}" property="splashscreen.basename"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
682 <mkdir dir="${build.classes.dir}/META-INF"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
683 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
684 <manifest file="${tmp.manifest.file}" mode="update">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
685 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
686 </manifest>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
687 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
688 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
689 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
690 <echo level="info">To run this application from the command line without Ant, try:</echo>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
691 <property location="${dist.jar}" name="dist.jar.resolved"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
692 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
693 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
694 <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
695 <delete>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
696 <fileset file="${tmp.manifest.file}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
697 </delete>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
698 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
699 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
700 <target name="-post-jar">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
701 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
702 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
703 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
704 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
705 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
706 =================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
707 EXECUTION SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
708 =================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
709 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
710 <target depends="init,compile" description="Run a main class." name="run">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
711 <j2seproject1:java>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
712 <customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
713 <arg line="${application.args}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
714 </customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
715 </j2seproject1:java>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
716 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
717 <target name="-do-not-recompile">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
718 <property name="javac.includes.binary" value=""/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
719 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
720 <target depends="init,compile-single" name="run-single">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
721 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
722 <j2seproject1:java classname="${run.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
723 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
724 <target depends="init,compile-test-single" name="run-test-with-main">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
725 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
726 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
727 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
728 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
729 =================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
730 DEBUGGING SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
731 =================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
732 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
733 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
734 <j2seproject1:nbjpdastart name="${debug.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
735 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
736 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
737 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
738 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
739 <target depends="init,compile" name="-debug-start-debuggee">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
740 <j2seproject3:debug>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
741 <customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
742 <arg line="${application.args}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
743 </customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
744 </j2seproject3:debug>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
745 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
746 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
747 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
748 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
749 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
750 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
751 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
752 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
753 <j2seproject3:debug classname="${debug.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
754 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
755 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
756 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
757 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
758 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
759 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
760 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
761 <target depends="init" name="-pre-debug-fix">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
762 <fail unless="fix.includes">Must set fix.includes</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
763 <property name="javac.includes" value="${fix.includes}.java"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
764 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
765 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
766 <j2seproject1:nbjpdareload/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
767 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
768 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
769 <!--
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
770 =================
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
771 PROFILING SECTION
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
772 =================
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
773 -->
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
774 <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
775 <nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
776 <classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
777 <path path="${run.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
778 </classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
779 </nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
780 <profile/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
781 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
782 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
783 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
784 <nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
785 <classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
786 <path path="${run.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
787 </classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
788 </nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
789 <profile classname="${profile.class}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
790 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
791 <!--
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
792 =========================
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
793 APPLET PROFILING SECTION
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
794 =========================
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
795 -->
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
796 <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
797 <nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
798 <classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
799 <path path="${run.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
800 </classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
801 </nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
802 <profile classname="sun.applet.AppletViewer">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
803 <customize>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
804 <arg value="${applet.url}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
805 </customize>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
806 </profile>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
807 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
808 <!--
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
809 =========================
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
810 TESTS PROFILING SECTION
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
811 =========================
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
812 -->
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
813 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
814 <nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
815 <classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
816 <path path="${run.test.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
817 </classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
818 </nbprofiledirect>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
819 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
820 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
821 <jvmarg value="${profiler.info.jvmargs.agent}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
822 <jvmarg line="${profiler.info.jvmargs}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
823 <test name="${profile.class}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
824 <classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
825 <path path="${run.test.classpath}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
826 </classpath>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
827 <syspropertyset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
828 <propertyref prefix="test-sys-prop."/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
829 <mapper from="test-sys-prop.*" to="*" type="glob"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
830 </syspropertyset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
831 <formatter type="brief" usefile="false"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
832 <formatter type="xml"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
833 </junit>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
834 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
835 <!--
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
836 ===============
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
837 JAVADOC SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
838 ===============
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
839 -->
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
840 <target depends="init" if="have.sources" name="-javadoc-build">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
841 <mkdir dir="${dist.javadoc.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
842 <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
843 <classpath>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
844 <path path="${javac.classpath}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
845 </classpath>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
846 <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
847 <filename name="**/*.java"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
848 </fileset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
849 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
850 <include name="**/*.java"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
851 <exclude name="*.java"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
852 </fileset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
853 </javadoc>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
854 <copy todir="${dist.javadoc.dir}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
855 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
856 <filename name="**/doc-files/**"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
857 </fileset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
858 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
859 <include name="**/doc-files/**"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
860 </fileset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
861 </copy>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
862 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
863 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
864 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
865 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
866 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
867 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
868 =========================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
869 JUNIT COMPILATION SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
870 =========================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
871 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
872 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
873 <mkdir dir="${build.test.classes.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
874 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
875 <target name="-pre-compile-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
876 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
877 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
878 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
879 <target if="do.depend.true" name="-compile-test-depend">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
880 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
881 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
882 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
883 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
884 <copy todir="${build.test.classes.dir}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
885 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
886 </copy>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
887 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
888 <target name="-post-compile-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
889 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
890 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
891 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
892 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
893 <target name="-pre-compile-test-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
894 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
895 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
896 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
897 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
898 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
899 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
900 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
901 <copy todir="${build.test.classes.dir}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
902 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
903 </copy>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
904 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
905 <target name="-post-compile-test-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
906 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
907 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
908 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
909 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
910 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
911 =======================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
912 JUNIT EXECUTION SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
913 =======================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
914 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
915 <target depends="init" if="have.tests" name="-pre-test-run">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
916 <mkdir dir="${build.test.results.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
917 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
918 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
919 <j2seproject3:junit testincludes="**/*Test.java"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
920 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
921 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
922 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
923 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
924 <target depends="init" if="have.tests" name="test-report"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
925 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
926 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
927 <target depends="init" if="have.tests" name="-pre-test-run-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
928 <mkdir dir="${build.test.results.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
929 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
930 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
931 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
932 <j2seproject3:junit excludes="" includes="${test.includes}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
933 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
934 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
935 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
936 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
937 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
938 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
939 =======================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
940 JUNIT DEBUGGING SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
941 =======================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
942 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
943 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
944 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
945 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
946 <delete file="${test.report.file}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
947 <mkdir dir="${build.test.results.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
948 <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
949 <customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
950 <syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
951 <propertyref prefix="test-sys-prop."/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
952 <mapper from="test-sys-prop.*" to="*" type="glob"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
953 </syspropertyset>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
954 <arg value="${test.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
955 <arg value="showoutput=true"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
956 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
957 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
958 </customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
959 </j2seproject3:debug>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
960 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
961 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
962 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
963 </target>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
964 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
965 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
966 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
967 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
968 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
969 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
970 =========================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
971 APPLET EXECUTION SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
972 =========================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
973 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
974 <target depends="init,compile-single" name="run-applet">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
975 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
976 <j2seproject1:java classname="sun.applet.AppletViewer">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
977 <customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
978 <arg value="${applet.url}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
979 </customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
980 </j2seproject1:java>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
981 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
982 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
983 =========================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
984 APPLET DEBUGGING SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
985 =========================
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
986 -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
987 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
988 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
989 <j2seproject3:debug classname="sun.applet.AppletViewer">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
990 <customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
991 <arg value="${applet.url}"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
992 </customize>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
993 </j2seproject3:debug>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
994 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
995 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
996 <!--
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
997 ===============
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
998 CLEANUP SECTION
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
999 ===============
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1000 -->
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1001 <target name="-deps-clean-init" unless="built-clean.properties">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1002 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1003 <delete file="${built-clean.properties}" quiet="true"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1004 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1005 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1006 <echo level="warn" message="Cycle detected: MPipeline2 was already built"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1007 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1008 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1009 <mkdir dir="${build.dir}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1010 <touch file="${built-clean.properties}" verbose="false"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1011 <property file="${built-clean.properties}" prefix="already.built.clean."/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1012 <antcall target="-warn-already-built-clean"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1013 <propertyfile file="${built-clean.properties}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1014 <entry key="${basedir}" value=""/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1015 </propertyfile>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1016 </target>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1017 <target depends="init" name="-do-clean">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1018 <delete dir="${build.dir}"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1019 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1020 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1021 <target name="-post-clean">
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1022 <!-- Empty placeholder for easier customization. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1023 <!-- You can override this target in the ../build.xml file. -->
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1024 </target>
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1025 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
4
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1026 <target name="-check-call-dep">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1027 <property file="${call.built.properties}" prefix="already.built."/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1028 <condition property="should.call.dep">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1029 <not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1030 <isset property="already.built.${call.subproject}"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1031 </not>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1032 </condition>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1033 </target>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1034 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1035 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1036 <propertyset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1037 <propertyref prefix="transfer."/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1038 <mapper from="transfer.*" to="*" type="glob"/>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1039 </propertyset>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1040 </ant>
e3c5468b1bfe Integrate with LTPDAPreferences
Daniele Nicolodi <nicolodi@science.unitn.it>
parents: 0
diff changeset
1041 </target>
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1042 </project>