0
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
2 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
4 *** EDIT ../build.xml INSTEAD ***
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
5
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
6 For the purpose of easier reading the script
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
7 is divided into following sections:
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
8
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
9 - initialization
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
10 - compilation
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
11 - jar
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
12 - execution
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
13 - debugging
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
14 - javadoc
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
15 - junit compilation
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
16 - junit execution
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
17 - junit debugging
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
18 - applet
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
19 - cleanup
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
20
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
21 -->
|
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">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
23 <fail message="Please build using Ant 1.7.1 or higher.">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
24 <condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
25 <not>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
26 <antversion atleast="1.7.1"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
27 </not>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
28 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
29 </fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
31 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
32 ======================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
33 INITIALIZATION SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
34 ======================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
35 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
36 <target name="-pre-init">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
37 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
38 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
39 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
40 <target depends="-pre-init" name="-init-private">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
41 <property file="nbproject/private/config.properties"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
42 <property file="nbproject/private/configs/${config}.properties"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
43 <property file="nbproject/private/private.properties"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
44 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
45 <target depends="-pre-init,-init-private" name="-init-user">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
46 <property file="${user.properties.file}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
47 <!-- The two properties below are usually overridden -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
48 <!-- by the active platform. Just a fallback. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
49 <property name="default.javac.source" value="1.4"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
50 <property name="default.javac.target" value="1.4"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
51 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
53 <property file="nbproject/configs/${config}.properties"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
54 <property file="nbproject/project.properties"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
55 </target>
|
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">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
57 <available file="${manifest.file}" property="manifest.available"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
58 <condition property="manifest.available+main.class">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
59 <and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
60 <isset property="manifest.available"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
61 <isset property="main.class"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
62 <not>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
63 <equals arg1="${main.class}" arg2="" trim="true"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
64 </not>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
65 </and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
66 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
67 <condition property="manifest.available+main.class+mkdist.available">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
68 <and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
69 <istrue value="${manifest.available+main.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
70 <isset property="libs.CopyLibs.classpath"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
71 </and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
72 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
73 <condition property="have.tests">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
74 <or>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
75 <available file="${test.src.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
76 </or>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
77 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
78 <condition property="have.sources">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
79 <or>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
80 <available file="${src.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
81 </or>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
82 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
83 <condition property="netbeans.home+have.tests">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
84 <and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
85 <isset property="netbeans.home"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
86 <isset property="have.tests"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
87 </and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
88 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
89 <condition property="no.javadoc.preview">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
90 <and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
91 <isset property="javadoc.preview"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
92 <isfalse value="${javadoc.preview}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
93 </and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
94 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
95 <property name="run.jvmargs" value=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
96 <property name="javac.compilerargs" value=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
97 <property name="work.dir" value="${basedir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
98 <condition property="no.deps">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
99 <and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
100 <istrue value="${no.dependencies}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
101 </and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
102 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
103 <property name="javac.debug" value="true"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
104 <property name="javadoc.preview" value="true"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
105 <property name="application.args" value=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
106 <property name="source.encoding" value="${file.encoding}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
107 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
108 <and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
109 <isset property="javadoc.encoding"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
110 <not>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
111 <equals arg1="${javadoc.encoding}" arg2=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
112 </not>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
113 </and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
114 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
115 <property name="javadoc.encoding.used" value="${source.encoding}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
116 <property name="includes" value="**"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
117 <property name="excludes" value=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
118 <property name="do.depend" value="false"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
119 <condition property="do.depend.true">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
120 <istrue value="${do.depend}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
121 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
122 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
123 <and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
124 <isset property="jaxws.endorsed.dir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
125 <available file="nbproject/jaxws-build.xml"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
126 </and>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
127 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
128 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
129 <target name="-post-init">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
130 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
131 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
132 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
133 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
134 <fail unless="src.dir">Must set src.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
135 <fail unless="test.src.dir">Must set test.src.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
136 <fail unless="build.dir">Must set build.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
137 <fail unless="dist.dir">Must set dist.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
138 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
139 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
140 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
141 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
142 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
143 <fail unless="dist.jar">Must set dist.jar</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
144 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
145 <target name="-init-macrodef-property">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
146 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
147 <attribute name="name"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
148 <attribute name="value"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
149 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
150 <property name="@{name}" value="${@{value}}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
151 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
152 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
153 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
154 <target name="-init-macrodef-javac">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
155 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
156 <attribute default="${src.dir}" name="srcdir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
157 <attribute default="${build.classes.dir}" name="destdir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
158 <attribute default="${javac.classpath}" name="classpath"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
159 <attribute default="${includes}" name="includes"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
160 <attribute default="${excludes}" name="excludes"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
161 <attribute default="${javac.debug}" name="debug"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
162 <attribute default="${empty.dir}" name="sourcepath"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
163 <attribute default="${empty.dir}" name="gensrcdir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
164 <element name="customize" optional="true"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
165 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
166 <property location="${build.dir}/empty" name="empty.dir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
167 <mkdir dir="${empty.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
168 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
169 <src>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
170 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
171 <include name="*"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
172 </dirset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
173 </src>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
174 <classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
175 <path path="@{classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
176 </classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
177 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
178 <customize/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
179 </javac>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
180 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
181 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
182 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
183 <attribute default="${src.dir}" name="srcdir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
184 <attribute default="${build.classes.dir}" name="destdir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
185 <attribute default="${javac.classpath}" name="classpath"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
186 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
187 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
188 <classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
189 <path path="@{classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
190 </classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
191 </depend>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
192 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
193 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
194 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
195 <attribute default="${build.classes.dir}" name="destdir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
196 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
197 <fail unless="javac.includes">Must set javac.includes</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
198 <pathconvert pathsep="," property="javac.includes.binary">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
199 <path>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
200 <filelist dir="@{destdir}" files="${javac.includes}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
201 </path>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
202 <globmapper from="*.java" to="*.class"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
203 </pathconvert>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
204 <delete>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
205 <files includes="${javac.includes.binary}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
206 </delete>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
207 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
208 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
209 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
210 <target name="-init-macrodef-junit">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
211 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
212 <attribute default="${includes}" name="includes"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
213 <attribute default="${excludes}" name="excludes"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
214 <attribute default="**" name="testincludes"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
215 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
216 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
217 <batchtest todir="${build.test.results.dir}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
218 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
219 <filename name="@{testincludes}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
220 </fileset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
221 </batchtest>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
222 <classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
223 <path path="${run.test.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
224 </classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
225 <syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
226 <propertyref prefix="test-sys-prop."/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
227 <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
228 </syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
229 <formatter type="brief" usefile="false"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
230 <formatter type="xml"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
231 <jvmarg line="${run.jvmargs}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
232 </junit>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
233 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
234 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
235 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
236 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
237 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
238 <attribute default="${main.class}" name="name"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
239 <attribute default="${debug.classpath}" name="classpath"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
240 <attribute default="" name="stopclassname"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
241 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
242 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
243 <classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
244 <path path="@{classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
245 </classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
246 </nbjpdastart>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
247 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
248 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
249 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
250 <attribute default="${build.classes.dir}" name="dir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
251 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
252 <nbjpdareload>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
253 <fileset dir="@{dir}" includes="${fix.classes}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
254 <include name="${fix.includes}*.class"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
255 </fileset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
256 </nbjpdareload>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
257 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
258 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
259 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
260 <target name="-init-debug-args">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
261 <property name="version-output" value="java version "${ant.java.version}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
262 <condition property="have-jdk-older-than-1.4">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
263 <or>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
264 <contains string="${version-output}" substring="java version "1.0"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
265 <contains string="${version-output}" substring="java version "1.1"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
266 <contains string="${version-output}" substring="java version "1.2"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
267 <contains string="${version-output}" substring="java version "1.3"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
268 </or>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
269 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
270 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
271 <istrue value="${have-jdk-older-than-1.4}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
272 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
273 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
274 <os family="windows"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
275 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
276 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
277 <isset property="debug.transport"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
278 </condition>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
279 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
280 <target depends="-init-debug-args" name="-init-macrodef-debug">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
281 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
282 <attribute default="${main.class}" name="classname"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
283 <attribute default="${debug.classpath}" name="classpath"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
284 <element name="customize" optional="true"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
285 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
286 <java classname="@{classname}" dir="${work.dir}" fork="true">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
287 <jvmarg line="${debug-args-line}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
288 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
289 <jvmarg value="-Dfile.encoding=${source.encoding}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
290 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
291 <jvmarg line="${run.jvmargs}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
292 <classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
293 <path path="@{classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
294 </classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
295 <syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
296 <propertyref prefix="run-sys-prop."/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
297 <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
298 </syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
299 <customize/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
300 </java>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
301 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
302 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
303 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
304 <target name="-init-macrodef-java">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
305 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
306 <attribute default="${main.class}" name="classname"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
307 <attribute default="${run.classpath}" name="classpath"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
308 <element name="customize" optional="true"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
309 <sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
310 <java classname="@{classname}" dir="${work.dir}" fork="true">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
311 <jvmarg value="-Dfile.encoding=${source.encoding}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
312 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
313 <jvmarg line="${run.jvmargs}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
314 <classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
315 <path path="@{classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
316 </classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
317 <syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
318 <propertyref prefix="run-sys-prop."/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
319 <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
320 </syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
321 <customize/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
322 </java>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
323 </sequential>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
324 </macrodef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
325 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
326 <target name="-init-presetdef-jar">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
327 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
328 <jar compress="${jar.compress}" jarfile="${dist.jar}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
329 <j2seproject1:fileset dir="${build.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
330 </jar>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
331 </presetdef>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
332 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
333 <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" name="init"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
334 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
335 ===================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
336 COMPILATION SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
337 ===================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
338 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
339 <target depends="init" name="deps-jar" unless="no.deps"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
340 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
341 <target depends="init" name="-check-automatic-build">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
342 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
343 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
344 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
345 <antcall target="clean"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
346 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
347 <target depends="init,deps-jar" name="-pre-pre-compile">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
348 <mkdir dir="${build.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
349 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
350 <target name="-pre-compile">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
351 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
352 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
353 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
354 <target if="do.depend.true" name="-compile-depend">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
355 <pathconvert property="build.generated.subdirs">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
356 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
357 <include name="*"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
358 </dirset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
359 </pathconvert>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
360 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
361 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
362 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
363 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
364 <copy todir="${build.classes.dir}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
365 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
366 </copy>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
367 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
368 <target name="-post-compile">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
369 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
370 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
371 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
372 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
373 <target name="-pre-compile-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
374 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
375 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
376 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
377 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
378 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
379 <j2seproject3:force-recompile/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
380 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
381 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
382 <target name="-post-compile-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
383 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
384 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
385 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
386 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
387 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
388 ====================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
389 JAR BUILDING SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
390 ====================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
391 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
392 <target depends="init" name="-pre-pre-jar">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
393 <dirname file="${dist.jar}" property="dist.jar.dir"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
394 <mkdir dir="${dist.jar.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
395 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
396 <target name="-pre-jar">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
397 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
398 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
399 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
400 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
401 <j2seproject1:jar/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
402 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
403 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
404 <j2seproject1:jar manifest="${manifest.file}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
405 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
406 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
407 <j2seproject1:jar manifest="${manifest.file}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
408 <j2seproject1:manifest>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
409 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
410 </j2seproject1:manifest>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
411 </j2seproject1:jar>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
412 <echo>To run this application from the command line without Ant, try:</echo>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
413 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
414 <property location="${dist.jar}" name="dist.jar.resolved"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
415 <pathconvert property="run.classpath.with.dist.jar">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
416 <path path="${run.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
417 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
418 </pathconvert>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
419 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
420 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
421 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
422 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
423 <pathconvert property="run.classpath.without.build.classes.dir">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
424 <path path="${run.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
425 <map from="${build.classes.dir.resolved}" to=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
426 </pathconvert>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
427 <pathconvert pathsep=" " property="jar.classpath">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
428 <path path="${run.classpath.without.build.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
429 <chainedmapper>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
430 <flattenmapper/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
431 <globmapper from="*" to="lib/*"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
432 </chainedmapper>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
433 </pathconvert>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
434 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
435 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
436 <fileset dir="${build.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
437 <manifest>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
438 <attribute name="Main-Class" value="${main.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
439 <attribute name="Class-Path" value="${jar.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
440 </manifest>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
441 </copylibs>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
442 <echo>To run this application from the command line without Ant, try:</echo>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
443 <property location="${dist.jar}" name="dist.jar.resolved"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
444 <echo>java -jar "${dist.jar.resolved}"</echo>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
445 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
446 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="libs.CopyLibs.classpath" name="-do-jar-with-libraries-without-manifest" unless="manifest.available+main.class">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
447 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
448 <pathconvert property="run.classpath.without.build.classes.dir">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
449 <path path="${run.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
450 <map from="${build.classes.dir.resolved}" to=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
451 </pathconvert>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
452 <pathconvert pathsep=" " property="jar.classpath">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
453 <path path="${run.classpath.without.build.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
454 <chainedmapper>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
455 <flattenmapper/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
456 <globmapper from="*" to="lib/*"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
457 </chainedmapper>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
458 </pathconvert>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
459 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
460 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
461 <fileset dir="${build.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
462 </copylibs>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
463 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
464 <target name="-post-jar">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
465 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
466 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
467 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
468 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
469 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
470 =================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
471 EXECUTION SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
472 =================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
473 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
474 <target depends="init,compile" description="Run a main class." name="run">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
475 <j2seproject1:java>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
476 <customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
477 <arg line="${application.args}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
478 </customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
479 </j2seproject1:java>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
480 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
481 <target name="-do-not-recompile">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
482 <property name="javac.includes.binary" value=""/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
483 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
484 <target depends="init,-do-not-recompile,compile-single" name="run-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
485 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
486 <j2seproject1:java classname="${run.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
487 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
488 <target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
489 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
490 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
491 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
492 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
493 =================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
494 DEBUGGING SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
495 =================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
496 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
497 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
498 <j2seproject1:nbjpdastart name="${debug.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
499 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
500 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
501 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
502 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
503 <target depends="init,compile" name="-debug-start-debuggee">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
504 <j2seproject3:debug>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
505 <customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
506 <arg line="${application.args}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
507 </customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
508 </j2seproject3:debug>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
509 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
510 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
511 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
512 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
513 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
514 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
515 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
516 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
517 <j2seproject3:debug classname="${debug.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
518 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
519 <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
520 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
521 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
522 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
523 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
524 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
525 <target depends="init" name="-pre-debug-fix">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
526 <fail unless="fix.includes">Must set fix.includes</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
527 <property name="javac.includes" value="${fix.includes}.java"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
528 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
529 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
530 <j2seproject1:nbjpdareload/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
531 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
532 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
533 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
534 ===============
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
535 JAVADOC SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
536 ===============
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
537 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
538 <target depends="init" name="-javadoc-build">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
539 <mkdir dir="${dist.javadoc.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
540 <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}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
541 <classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
542 <path path="${javac.classpath}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
543 </classpath>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
544 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
545 <filename name="**/*.java"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
546 </fileset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
547 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
548 <include name="**/*.java"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
549 </fileset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
550 </javadoc>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
551 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
552 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
553 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
554 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
555 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
556 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
557 =========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
558 JUNIT COMPILATION SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
559 =========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
560 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
561 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
562 <mkdir dir="${build.test.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
563 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
564 <target name="-pre-compile-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
565 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
566 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
567 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
568 <target if="do.depend.true" name="-compile-test-depend">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
569 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
570 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
571 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
572 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
573 <copy todir="${build.test.classes.dir}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
574 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
575 </copy>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
576 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
577 <target name="-post-compile-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
578 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
579 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
580 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
581 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
582 <target name="-pre-compile-test-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
583 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
584 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
585 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
586 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
587 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
588 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
589 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
590 <copy todir="${build.test.classes.dir}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
591 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
592 </copy>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
593 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
594 <target name="-post-compile-test-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
595 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
596 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
597 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
598 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
599 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
600 =======================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
601 JUNIT EXECUTION SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
602 =======================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
603 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
604 <target depends="init" if="have.tests" name="-pre-test-run">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
605 <mkdir dir="${build.test.results.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
606 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
607 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
608 <j2seproject3:junit testincludes="**/*Test.java"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
609 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
610 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
611 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
612 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
613 <target depends="init" if="have.tests" name="test-report"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
614 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
615 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
616 <target depends="init" if="have.tests" name="-pre-test-run-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
617 <mkdir dir="${build.test.results.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
618 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
619 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
620 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
621 <j2seproject3:junit excludes="" includes="${test.includes}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
622 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
623 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
624 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
625 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
626 <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
627 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
628 =======================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
629 JUNIT DEBUGGING SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
630 =======================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
631 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
632 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
633 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
634 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
635 <delete file="${test.report.file}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
636 <mkdir dir="${build.test.results.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
637 <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}">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
638 <customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
639 <syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
640 <propertyref prefix="test-sys-prop."/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
641 <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
642 </syspropertyset>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
643 <arg value="${test.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
644 <arg value="showoutput=true"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
645 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
646 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
647 </customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
648 </j2seproject3:debug>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
649 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
650 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
651 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
652 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
653 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
654 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
655 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
656 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
657 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
658 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
659 =========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
660 APPLET EXECUTION SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
661 =========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
662 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
663 <target depends="init,compile-single" name="run-applet">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
664 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
665 <j2seproject1:java classname="sun.applet.AppletViewer">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
666 <customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
667 <arg value="${applet.url}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
668 </customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
669 </j2seproject1:java>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
670 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
671 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
672 =========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
673 APPLET DEBUGGING SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
674 =========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
675 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
676 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
677 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
678 <j2seproject3:debug classname="sun.applet.AppletViewer">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
679 <customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
680 <arg value="${applet.url}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
681 </customize>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
682 </j2seproject3:debug>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
683 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
684 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
685 <!--
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
686 ===============
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
687 CLEANUP SECTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
688 ===============
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
689 -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
690 <target depends="init" name="deps-clean" unless="no.deps"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
691 <target depends="init" name="-do-clean">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
692 <delete dir="${build.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
693 <delete dir="${dist.dir}"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
694 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
695 <target name="-post-clean">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
696 <!-- Empty placeholder for easier customization. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
697 <!-- You can override this target in the ../build.xml file. -->
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
698 </target>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
699 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
700 </project>
|