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