テキストの各行をキーと値に分離し、複数テキストファイルを読み込み、キーを突き合わせ照合し、その結果を表示するGUIユーテリティです。
修訂 | 109f3c9b372bab1b4b01a4b64a4e9ad14470d3f7 (tree) |
---|---|
時間 | 2011-10-18 02:36:51 |
作者 | seraphy <seraphy@192....> |
Commiter | seraphy |
・使用JDKバージョンをJDK_1.6に固定
@@ -1,74 +1,74 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<!-- You may freely edit this file. See commented blocks below for --> | |
3 | -<!-- some examples of how to customize the build. --> | |
4 | -<!-- (If you delete it and reopen the project it will be recreated.) --> | |
5 | -<!-- By default, only the Clean and Build commands use this build script. --> | |
6 | -<!-- Commands such as Run, Debug, and Test only use this build script if --> | |
7 | -<!-- the Compile on Save feature is turned off for the project. --> | |
8 | -<!-- You can turn off the Compile on Save (or Deploy on Save) setting --> | |
9 | -<!-- in the project's Project Properties dialog box.--> | |
10 | -<project name="TextKeyMatcher" default="default" basedir="."> | |
11 | - <description>Builds, tests, and runs the project TextKeyMatcher.</description> | |
12 | - <import file="nbproject/build-impl.xml"/> | |
13 | - <!-- | |
14 | - | |
15 | - There exist several targets which are by default empty and which can be | |
16 | - used for execution of your tasks. These targets are usually executed | |
17 | - before and after some main targets. They are: | |
18 | - | |
19 | - -pre-init: called before initialization of project properties | |
20 | - -post-init: called after initialization of project properties | |
21 | - -pre-compile: called before javac compilation | |
22 | - -post-compile: called after javac compilation | |
23 | - -pre-compile-single: called before javac compilation of single file | |
24 | - -post-compile-single: called after javac compilation of single file | |
25 | - -pre-compile-test: called before javac compilation of JUnit tests | |
26 | - -post-compile-test: called after javac compilation of JUnit tests | |
27 | - -pre-compile-test-single: called before javac compilation of single JUnit test | |
28 | - -post-compile-test-single: called after javac compilation of single JUunit test | |
29 | - -pre-jar: called before JAR building | |
30 | - -post-jar: called after JAR building | |
31 | - -post-clean: called after cleaning build products | |
32 | - | |
33 | - (Targets beginning with '-' are not intended to be called on their own.) | |
34 | - | |
35 | - Example of inserting an obfuscator after compilation could look like this: | |
36 | - | |
37 | - <target name="-post-compile"> | |
38 | - <obfuscate> | |
39 | - <fileset dir="${build.classes.dir}"/> | |
40 | - </obfuscate> | |
41 | - </target> | |
42 | - | |
43 | - For list of available properties check the imported | |
44 | - nbproject/build-impl.xml file. | |
45 | - | |
46 | - | |
47 | - Another way to customize the build is by overriding existing main targets. | |
48 | - The targets of interest are: | |
49 | - | |
50 | - -init-macrodef-javac: defines macro for javac compilation | |
51 | - -init-macrodef-junit: defines macro for junit execution | |
52 | - -init-macrodef-debug: defines macro for class debugging | |
53 | - -init-macrodef-java: defines macro for class execution | |
54 | - -do-jar-with-manifest: JAR building (if you are using a manifest) | |
55 | - -do-jar-without-manifest: JAR building (if you are not using a manifest) | |
56 | - run: execution of project | |
57 | - -javadoc-build: Javadoc generation | |
58 | - test-report: JUnit report generation | |
59 | - | |
60 | - An example of overriding the target for project execution could look like this: | |
61 | - | |
62 | - <target name="run" depends="TextKeyMatcher-impl.jar"> | |
63 | - <exec dir="bin" executable="launcher.exe"> | |
64 | - <arg file="${dist.jar}"/> | |
65 | - </exec> | |
66 | - </target> | |
67 | - | |
68 | - Notice that the overridden target depends on the jar target and not only on | |
69 | - the compile target as the regular run target does. Again, for a list of available | |
70 | - properties which you can use, check the target you are overriding in the | |
71 | - nbproject/build-impl.xml file. | |
72 | - | |
73 | - --> | |
74 | -</project> | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!-- You may freely edit this file. See commented blocks below for --> | |
3 | +<!-- some examples of how to customize the build. --> | |
4 | +<!-- (If you delete it and reopen the project it will be recreated.) --> | |
5 | +<!-- By default, only the Clean and Build commands use this build script. --> | |
6 | +<!-- Commands such as Run, Debug, and Test only use this build script if --> | |
7 | +<!-- the Compile on Save feature is turned off for the project. --> | |
8 | +<!-- You can turn off the Compile on Save (or Deploy on Save) setting --> | |
9 | +<!-- in the project's Project Properties dialog box.--> | |
10 | +<project name="TextKeyMatcher" default="default" basedir="."> | |
11 | + <description>Builds, tests, and runs the project TextKeyMatcher.</description> | |
12 | + <import file="nbproject/build-impl.xml"/> | |
13 | + <!-- | |
14 | + | |
15 | + There exist several targets which are by default empty and which can be | |
16 | + used for execution of your tasks. These targets are usually executed | |
17 | + before and after some main targets. They are: | |
18 | + | |
19 | + -pre-init: called before initialization of project properties | |
20 | + -post-init: called after initialization of project properties | |
21 | + -pre-compile: called before javac compilation | |
22 | + -post-compile: called after javac compilation | |
23 | + -pre-compile-single: called before javac compilation of single file | |
24 | + -post-compile-single: called after javac compilation of single file | |
25 | + -pre-compile-test: called before javac compilation of JUnit tests | |
26 | + -post-compile-test: called after javac compilation of JUnit tests | |
27 | + -pre-compile-test-single: called before javac compilation of single JUnit test | |
28 | + -post-compile-test-single: called after javac compilation of single JUunit test | |
29 | + -pre-jar: called before JAR building | |
30 | + -post-jar: called after JAR building | |
31 | + -post-clean: called after cleaning build products | |
32 | + | |
33 | + (Targets beginning with '-' are not intended to be called on their own.) | |
34 | + | |
35 | + Example of inserting an obfuscator after compilation could look like this: | |
36 | + | |
37 | + <target name="-post-compile"> | |
38 | + <obfuscate> | |
39 | + <fileset dir="${build.classes.dir}"/> | |
40 | + </obfuscate> | |
41 | + </target> | |
42 | + | |
43 | + For list of available properties check the imported | |
44 | + nbproject/build-impl.xml file. | |
45 | + | |
46 | + | |
47 | + Another way to customize the build is by overriding existing main targets. | |
48 | + The targets of interest are: | |
49 | + | |
50 | + -init-macrodef-javac: defines macro for javac compilation | |
51 | + -init-macrodef-junit: defines macro for junit execution | |
52 | + -init-macrodef-debug: defines macro for class debugging | |
53 | + -init-macrodef-java: defines macro for class execution | |
54 | + -do-jar-with-manifest: JAR building (if you are using a manifest) | |
55 | + -do-jar-without-manifest: JAR building (if you are not using a manifest) | |
56 | + run: execution of project | |
57 | + -javadoc-build: Javadoc generation | |
58 | + test-report: JUnit report generation | |
59 | + | |
60 | + An example of overriding the target for project execution could look like this: | |
61 | + | |
62 | + <target name="run" depends="TextKeyMatcher-impl.jar"> | |
63 | + <exec dir="bin" executable="launcher.exe"> | |
64 | + <arg file="${dist.jar}"/> | |
65 | + </exec> | |
66 | + </target> | |
67 | + | |
68 | + Notice that the overridden target depends on the jar target and not only on | |
69 | + the compile target as the regular run target does. Again, for a list of available | |
70 | + properties which you can use, check the target you are overriding in the | |
71 | + nbproject/build-impl.xml file. | |
72 | + | |
73 | + --> | |
74 | +</project> |
@@ -1,1101 +1,1101 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<!-- | |
3 | -*** GENERATED FROM project.xml - DO NOT EDIT *** | |
4 | -*** EDIT ../build.xml INSTEAD *** | |
5 | - | |
6 | -For the purpose of easier reading the script | |
7 | -is divided into following sections: | |
8 | - | |
9 | - - initialization | |
10 | - - compilation | |
11 | - - jar | |
12 | - - execution | |
13 | - - debugging | |
14 | - - javadoc | |
15 | - - junit compilation | |
16 | - - junit execution | |
17 | - - junit debugging | |
18 | - - applet | |
19 | - - cleanup | |
20 | - | |
21 | - --> | |
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="TextKeyMatcher-impl"> | |
23 | - <import file="jnlp-impl.xml"/> | |
24 | - <fail message="Please build using Ant 1.7.1 or higher."> | |
25 | - <condition> | |
26 | - <not> | |
27 | - <antversion atleast="1.7.1"/> | |
28 | - </not> | |
29 | - </condition> | |
30 | - </fail> | |
31 | - <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> | |
32 | - <!-- | |
33 | - ====================== | |
34 | - INITIALIZATION SECTION | |
35 | - ====================== | |
36 | - --> | |
37 | - <target name="-pre-init"> | |
38 | - <!-- Empty placeholder for easier customization. --> | |
39 | - <!-- You can override this target in the ../build.xml file. --> | |
40 | - </target> | |
41 | - <target depends="-pre-init" name="-init-private"> | |
42 | - <property file="nbproject/private/config.properties"/> | |
43 | - <property file="nbproject/private/configs/${config}.properties"/> | |
44 | - <property file="nbproject/private/private.properties"/> | |
45 | - </target> | |
46 | - <target name="-pre-init-libraries"> | |
47 | - <property location="./lib/nblibraries.properties" name="libraries.path"/> | |
48 | - <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/> | |
49 | - <pathconvert dirsep="/" property="libraries.dir"> | |
50 | - <path path="${libraries.dir.nativedirsep}"/> | |
51 | - </pathconvert> | |
52 | - <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/> | |
53 | - <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/> | |
54 | - </target> | |
55 | - <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries"> | |
56 | - <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties"> | |
57 | - <filterchain> | |
58 | - <replacestring from="$${base}" to="${libraries.dir}"/> | |
59 | - <escapeunicode/> | |
60 | - </filterchain> | |
61 | - </loadproperties> | |
62 | - </target> | |
63 | - <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries"> | |
64 | - <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}"> | |
65 | - <filterchain> | |
66 | - <replacestring from="$${base}" to="${libraries.dir}"/> | |
67 | - <escapeunicode/> | |
68 | - </filterchain> | |
69 | - </loadproperties> | |
70 | - </target> | |
71 | - <target depends="-pre-init,-init-private,-init-libraries" name="-init-user"> | |
72 | - <property file="${user.properties.file}"/> | |
73 | - <!-- The two properties below are usually overridden --> | |
74 | - <!-- by the active platform. Just a fallback. --> | |
75 | - <property name="default.javac.source" value="1.4"/> | |
76 | - <property name="default.javac.target" value="1.4"/> | |
77 | - </target> | |
78 | - <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project"> | |
79 | - <property file="nbproject/configs/${config}.properties"/> | |
80 | - <property file="nbproject/project.properties"/> | |
81 | - </target> | |
82 | - <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init"> | |
83 | - <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/> | |
84 | - <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/> | |
85 | - <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/> | |
86 | - <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/> | |
87 | - <condition property="platform.javac" value="${platform.home}/bin/javac"> | |
88 | - <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/> | |
89 | - </condition> | |
90 | - <property name="platform.javac" value="${platform.javac.tmp}"/> | |
91 | - <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/> | |
92 | - <condition property="platform.java" value="${platform.home}/bin/java"> | |
93 | - <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/> | |
94 | - </condition> | |
95 | - <property name="platform.java" value="${platform.java.tmp}"/> | |
96 | - <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/> | |
97 | - <condition property="platform.javadoc" value="${platform.home}/bin/javadoc"> | |
98 | - <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/> | |
99 | - </condition> | |
100 | - <property name="platform.javadoc" value="${platform.javadoc.tmp}"/> | |
101 | - <condition property="platform.invalid" value="true"> | |
102 | - <or> | |
103 | - <contains string="${platform.javac}" substring="$${platforms."/> | |
104 | - <contains string="${platform.java}" substring="$${platforms."/> | |
105 | - <contains string="${platform.javadoc}" substring="$${platforms."/> | |
106 | - </or> | |
107 | - </condition> | |
108 | - <fail unless="platform.home">Must set platform.home</fail> | |
109 | - <fail unless="platform.bootcp">Must set platform.bootcp</fail> | |
110 | - <fail unless="platform.java">Must set platform.java</fail> | |
111 | - <fail unless="platform.javac">Must set platform.javac</fail> | |
112 | - <fail if="platform.invalid"> | |
113 | - The J2SE Platform is not correctly set up. | |
114 | - Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. | |
115 | - Either open the project in the IDE and setup the Platform with the same name or add it manually. | |
116 | - For example like this: | |
117 | - ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) | |
118 | - or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) | |
119 | - </fail> | |
120 | - <available file="${manifest.file}" property="manifest.available"/> | |
121 | - <condition property="splashscreen.available"> | |
122 | - <and> | |
123 | - <not> | |
124 | - <equals arg1="${application.splash}" arg2="" trim="true"/> | |
125 | - </not> | |
126 | - <available file="${application.splash}"/> | |
127 | - </and> | |
128 | - </condition> | |
129 | - <condition property="main.class.available"> | |
130 | - <and> | |
131 | - <isset property="main.class"/> | |
132 | - <not> | |
133 | - <equals arg1="${main.class}" arg2="" trim="true"/> | |
134 | - </not> | |
135 | - </and> | |
136 | - </condition> | |
137 | - <condition property="manifest.available+main.class"> | |
138 | - <and> | |
139 | - <isset property="manifest.available"/> | |
140 | - <isset property="main.class.available"/> | |
141 | - </and> | |
142 | - </condition> | |
143 | - <condition property="do.archive"> | |
144 | - <not> | |
145 | - <istrue value="${jar.archive.disabled}"/> | |
146 | - </not> | |
147 | - </condition> | |
148 | - <condition property="do.mkdist"> | |
149 | - <and> | |
150 | - <isset property="do.archive"/> | |
151 | - <isset property="libs.CopyLibs.classpath"/> | |
152 | - <not> | |
153 | - <istrue value="${mkdist.disabled}"/> | |
154 | - </not> | |
155 | - </and> | |
156 | - </condition> | |
157 | - <condition property="manifest.available+main.class+mkdist.available"> | |
158 | - <and> | |
159 | - <istrue value="${manifest.available+main.class}"/> | |
160 | - <isset property="do.mkdist"/> | |
161 | - </and> | |
162 | - </condition> | |
163 | - <condition property="do.archive+manifest.available"> | |
164 | - <and> | |
165 | - <isset property="manifest.available"/> | |
166 | - <istrue value="${do.archive}"/> | |
167 | - </and> | |
168 | - </condition> | |
169 | - <condition property="do.archive+main.class.available"> | |
170 | - <and> | |
171 | - <isset property="main.class.available"/> | |
172 | - <istrue value="${do.archive}"/> | |
173 | - </and> | |
174 | - </condition> | |
175 | - <condition property="do.archive+splashscreen.available"> | |
176 | - <and> | |
177 | - <isset property="splashscreen.available"/> | |
178 | - <istrue value="${do.archive}"/> | |
179 | - </and> | |
180 | - </condition> | |
181 | - <condition property="do.archive+manifest.available+main.class"> | |
182 | - <and> | |
183 | - <istrue value="${manifest.available+main.class}"/> | |
184 | - <istrue value="${do.archive}"/> | |
185 | - </and> | |
186 | - </condition> | |
187 | - <condition property="manifest.available-mkdist.available"> | |
188 | - <or> | |
189 | - <istrue value="${manifest.available}"/> | |
190 | - <isset property="do.mkdist"/> | |
191 | - </or> | |
192 | - </condition> | |
193 | - <condition property="manifest.available+main.class-mkdist.available"> | |
194 | - <or> | |
195 | - <istrue value="${manifest.available+main.class}"/> | |
196 | - <isset property="do.mkdist"/> | |
197 | - </or> | |
198 | - </condition> | |
199 | - <condition property="have.tests"> | |
200 | - <or> | |
201 | - <available file="${test.src.dir}"/> | |
202 | - </or> | |
203 | - </condition> | |
204 | - <condition property="have.sources"> | |
205 | - <or> | |
206 | - <available file="${src.dir}"/> | |
207 | - </or> | |
208 | - </condition> | |
209 | - <condition property="netbeans.home+have.tests"> | |
210 | - <and> | |
211 | - <isset property="netbeans.home"/> | |
212 | - <isset property="have.tests"/> | |
213 | - </and> | |
214 | - </condition> | |
215 | - <condition property="no.javadoc.preview"> | |
216 | - <and> | |
217 | - <isset property="javadoc.preview"/> | |
218 | - <isfalse value="${javadoc.preview}"/> | |
219 | - </and> | |
220 | - </condition> | |
221 | - <property name="run.jvmargs" value=""/> | |
222 | - <property name="javac.compilerargs" value=""/> | |
223 | - <property name="work.dir" value="${basedir}"/> | |
224 | - <condition property="no.deps"> | |
225 | - <and> | |
226 | - <istrue value="${no.dependencies}"/> | |
227 | - </and> | |
228 | - </condition> | |
229 | - <property name="javac.debug" value="true"/> | |
230 | - <property name="javadoc.preview" value="true"/> | |
231 | - <property name="application.args" value=""/> | |
232 | - <property name="source.encoding" value="${file.encoding}"/> | |
233 | - <property name="runtime.encoding" value="${source.encoding}"/> | |
234 | - <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | |
235 | - <and> | |
236 | - <isset property="javadoc.encoding"/> | |
237 | - <not> | |
238 | - <equals arg1="${javadoc.encoding}" arg2=""/> | |
239 | - </not> | |
240 | - </and> | |
241 | - </condition> | |
242 | - <property name="javadoc.encoding.used" value="${source.encoding}"/> | |
243 | - <property name="includes" value="**"/> | |
244 | - <property name="excludes" value=""/> | |
245 | - <property name="do.depend" value="false"/> | |
246 | - <condition property="do.depend.true"> | |
247 | - <istrue value="${do.depend}"/> | |
248 | - </condition> | |
249 | - <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> | |
250 | - <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> | |
251 | - <length length="0" string="${endorsed.classpath}" when="greater"/> | |
252 | - </condition> | |
253 | - <property name="jar.index" value="false"/> | |
254 | - <property name="jar.index.metainf" value="${jar.index}"/> | |
255 | - <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> | |
256 | - </target> | |
257 | - <target name="-post-init"> | |
258 | - <!-- Empty placeholder for easier customization. --> | |
259 | - <!-- You can override this target in the ../build.xml file. --> | |
260 | - </target> | |
261 | - <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check"> | |
262 | - <fail unless="src.dir">Must set src.dir</fail> | |
263 | - <fail unless="test.src.dir">Must set test.src.dir</fail> | |
264 | - <fail unless="build.dir">Must set build.dir</fail> | |
265 | - <fail unless="dist.dir">Must set dist.dir</fail> | |
266 | - <fail unless="build.classes.dir">Must set build.classes.dir</fail> | |
267 | - <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> | |
268 | - <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> | |
269 | - <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> | |
270 | - <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> | |
271 | - <fail unless="dist.jar">Must set dist.jar</fail> | |
272 | - </target> | |
273 | - <target name="-init-macrodef-property"> | |
274 | - <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
275 | - <attribute name="name"/> | |
276 | - <attribute name="value"/> | |
277 | - <sequential> | |
278 | - <property name="@{name}" value="${@{value}}"/> | |
279 | - </sequential> | |
280 | - </macrodef> | |
281 | - </target> | |
282 | - <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> | |
283 | - <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
284 | - <attribute default="${src.dir}" name="srcdir"/> | |
285 | - <attribute default="${build.classes.dir}" name="destdir"/> | |
286 | - <attribute default="${javac.classpath}" name="classpath"/> | |
287 | - <attribute default="${javac.processorpath}" name="processorpath"/> | |
288 | - <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
289 | - <attribute default="${includes}" name="includes"/> | |
290 | - <attribute default="${excludes}" name="excludes"/> | |
291 | - <attribute default="${javac.debug}" name="debug"/> | |
292 | - <attribute default="${empty.dir}" name="sourcepath"/> | |
293 | - <attribute default="${empty.dir}" name="gensrcdir"/> | |
294 | - <element name="customize" optional="true"/> | |
295 | - <sequential> | |
296 | - <property location="${build.dir}/empty" name="empty.dir"/> | |
297 | - <mkdir dir="${empty.dir}"/> | |
298 | - <mkdir dir="@{apgeneratedsrcdir}"/> | |
299 | - <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
300 | - <src> | |
301 | - <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
302 | - <include name="*"/> | |
303 | - </dirset> | |
304 | - </src> | |
305 | - <classpath> | |
306 | - <path path="@{classpath}"/> | |
307 | - </classpath> | |
308 | - <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
309 | - <compilerarg line="${javac.compilerargs}"/> | |
310 | - <compilerarg value="-processorpath"/> | |
311 | - <compilerarg path="@{processorpath}:${empty.dir}"/> | |
312 | - <compilerarg line="${ap.processors.internal}"/> | |
313 | - <compilerarg line="${annotation.processing.processor.options}"/> | |
314 | - <compilerarg value="-s"/> | |
315 | - <compilerarg path="@{apgeneratedsrcdir}"/> | |
316 | - <compilerarg line="${ap.proc.none.internal}"/> | |
317 | - <customize/> | |
318 | - </javac> | |
319 | - </sequential> | |
320 | - </macrodef> | |
321 | - </target> | |
322 | - <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> | |
323 | - <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
324 | - <attribute default="${src.dir}" name="srcdir"/> | |
325 | - <attribute default="${build.classes.dir}" name="destdir"/> | |
326 | - <attribute default="${javac.classpath}" name="classpath"/> | |
327 | - <attribute default="${javac.processorpath}" name="processorpath"/> | |
328 | - <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
329 | - <attribute default="${includes}" name="includes"/> | |
330 | - <attribute default="${excludes}" name="excludes"/> | |
331 | - <attribute default="${javac.debug}" name="debug"/> | |
332 | - <attribute default="${empty.dir}" name="sourcepath"/> | |
333 | - <attribute default="${empty.dir}" name="gensrcdir"/> | |
334 | - <element name="customize" optional="true"/> | |
335 | - <sequential> | |
336 | - <property location="${build.dir}/empty" name="empty.dir"/> | |
337 | - <mkdir dir="${empty.dir}"/> | |
338 | - <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
339 | - <src> | |
340 | - <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
341 | - <include name="*"/> | |
342 | - </dirset> | |
343 | - </src> | |
344 | - <classpath> | |
345 | - <path path="@{classpath}"/> | |
346 | - </classpath> | |
347 | - <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
348 | - <compilerarg line="${javac.compilerargs}"/> | |
349 | - <customize/> | |
350 | - </javac> | |
351 | - </sequential> | |
352 | - </macrodef> | |
353 | - </target> | |
354 | - <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> | |
355 | - <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
356 | - <attribute default="${src.dir}" name="srcdir"/> | |
357 | - <attribute default="${build.classes.dir}" name="destdir"/> | |
358 | - <attribute default="${javac.classpath}" name="classpath"/> | |
359 | - <sequential> | |
360 | - <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> | |
361 | - <classpath> | |
362 | - <path path="@{classpath}"/> | |
363 | - </classpath> | |
364 | - </depend> | |
365 | - </sequential> | |
366 | - </macrodef> | |
367 | - <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
368 | - <attribute default="${build.classes.dir}" name="destdir"/> | |
369 | - <sequential> | |
370 | - <fail unless="javac.includes">Must set javac.includes</fail> | |
371 | - <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> | |
372 | - <path> | |
373 | - <filelist dir="@{destdir}" files="${javac.includes}"/> | |
374 | - </path> | |
375 | - <globmapper from="*.java" to="*.class"/> | |
376 | - </pathconvert> | |
377 | - <tempfile deleteonexit="true" property="javac.includesfile.binary"/> | |
378 | - <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> | |
379 | - <delete> | |
380 | - <files includesfile="${javac.includesfile.binary}"/> | |
381 | - </delete> | |
382 | - <delete> | |
383 | - <fileset file="${javac.includesfile.binary}"/> | |
384 | - </delete> | |
385 | - </sequential> | |
386 | - </macrodef> | |
387 | - </target> | |
388 | - <target name="-init-macrodef-junit"> | |
389 | - <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
390 | - <attribute default="${includes}" name="includes"/> | |
391 | - <attribute default="${excludes}" name="excludes"/> | |
392 | - <attribute default="**" name="testincludes"/> | |
393 | - <sequential> | |
394 | - <property name="junit.forkmode" value="perTest"/> | |
395 | - <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> | |
396 | - <batchtest todir="${build.test.results.dir}"> | |
397 | - <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | |
398 | - <filename name="@{testincludes}"/> | |
399 | - </fileset> | |
400 | - </batchtest> | |
401 | - <classpath> | |
402 | - <path path="${run.test.classpath}"/> | |
403 | - </classpath> | |
404 | - <syspropertyset> | |
405 | - <propertyref prefix="test-sys-prop."/> | |
406 | - <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
407 | - </syspropertyset> | |
408 | - <formatter type="brief" usefile="false"/> | |
409 | - <formatter type="xml"/> | |
410 | - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
411 | - <jvmarg value="-ea"/> | |
412 | - <jvmarg line="${run.jvmargs}"/> | |
413 | - </junit> | |
414 | - </sequential> | |
415 | - </macrodef> | |
416 | - </target> | |
417 | - <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/> | |
418 | - <target name="-profile-pre-init"> | |
419 | - <!-- Empty placeholder for easier customization. --> | |
420 | - <!-- You can override this target in the ../build.xml file. --> | |
421 | - </target> | |
422 | - <target name="-profile-post-init"> | |
423 | - <!-- Empty placeholder for easier customization. --> | |
424 | - <!-- You can override this target in the ../build.xml file. --> | |
425 | - </target> | |
426 | - <target name="-profile-init-macrodef-profile"> | |
427 | - <macrodef name="resolve"> | |
428 | - <attribute name="name"/> | |
429 | - <attribute name="value"/> | |
430 | - <sequential> | |
431 | - <property name="@{name}" value="${env.@{value}}"/> | |
432 | - </sequential> | |
433 | - </macrodef> | |
434 | - <macrodef name="profile"> | |
435 | - <attribute default="${main.class}" name="classname"/> | |
436 | - <element name="customize" optional="true"/> | |
437 | - <sequential> | |
438 | - <property environment="env"/> | |
439 | - <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> | |
440 | - <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> | |
441 | - <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
442 | - <jvmarg line="${profiler.info.jvmargs}"/> | |
443 | - <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
444 | - <arg line="${application.args}"/> | |
445 | - <classpath> | |
446 | - <path path="${run.classpath}"/> | |
447 | - </classpath> | |
448 | - <syspropertyset> | |
449 | - <propertyref prefix="run-sys-prop."/> | |
450 | - <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
451 | - </syspropertyset> | |
452 | - <customize/> | |
453 | - </java> | |
454 | - </sequential> | |
455 | - </macrodef> | |
456 | - </target> | |
457 | - <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check"> | |
458 | - <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> | |
459 | - <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> | |
460 | - </target> | |
461 | - <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> | |
462 | - <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
463 | - <attribute default="${main.class}" name="name"/> | |
464 | - <attribute default="${debug.classpath}" name="classpath"/> | |
465 | - <attribute default="" name="stopclassname"/> | |
466 | - <sequential> | |
467 | - <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> | |
468 | - <classpath> | |
469 | - <path path="@{classpath}"/> | |
470 | - </classpath> | |
471 | - <bootclasspath> | |
472 | - <path path="${platform.bootcp}"/> | |
473 | - </bootclasspath> | |
474 | - </nbjpdastart> | |
475 | - </sequential> | |
476 | - </macrodef> | |
477 | - <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
478 | - <attribute default="${build.classes.dir}" name="dir"/> | |
479 | - <sequential> | |
480 | - <nbjpdareload> | |
481 | - <fileset dir="@{dir}" includes="${fix.classes}"> | |
482 | - <include name="${fix.includes}*.class"/> | |
483 | - </fileset> | |
484 | - </nbjpdareload> | |
485 | - </sequential> | |
486 | - </macrodef> | |
487 | - </target> | |
488 | - <target name="-init-debug-args"> | |
489 | - <exec executable="${platform.java}" outputproperty="version-output"> | |
490 | - <arg value="-version"/> | |
491 | - </exec> | |
492 | - <condition property="have-jdk-older-than-1.4"> | |
493 | - <or> | |
494 | - <contains string="${version-output}" substring="java version "1.0"/> | |
495 | - <contains string="${version-output}" substring="java version "1.1"/> | |
496 | - <contains string="${version-output}" substring="java version "1.2"/> | |
497 | - <contains string="${version-output}" substring="java version "1.3"/> | |
498 | - </or> | |
499 | - </condition> | |
500 | - <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> | |
501 | - <istrue value="${have-jdk-older-than-1.4}"/> | |
502 | - </condition> | |
503 | - <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> | |
504 | - <os family="windows"/> | |
505 | - </condition> | |
506 | - <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> | |
507 | - <isset property="debug.transport"/> | |
508 | - </condition> | |
509 | - </target> | |
510 | - <target depends="-init-debug-args" name="-init-macrodef-debug"> | |
511 | - <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
512 | - <attribute default="${main.class}" name="classname"/> | |
513 | - <attribute default="${debug.classpath}" name="classpath"/> | |
514 | - <element name="customize" optional="true"/> | |
515 | - <sequential> | |
516 | - <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> | |
517 | - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
518 | - <jvmarg line="${debug-args-line}"/> | |
519 | - <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
520 | - <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
521 | - <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
522 | - <jvmarg line="${run.jvmargs}"/> | |
523 | - <classpath> | |
524 | - <path path="@{classpath}"/> | |
525 | - </classpath> | |
526 | - <syspropertyset> | |
527 | - <propertyref prefix="run-sys-prop."/> | |
528 | - <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
529 | - </syspropertyset> | |
530 | - <customize/> | |
531 | - </java> | |
532 | - </sequential> | |
533 | - </macrodef> | |
534 | - </target> | |
535 | - <target name="-init-macrodef-java"> | |
536 | - <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
537 | - <attribute default="${main.class}" name="classname"/> | |
538 | - <attribute default="${run.classpath}" name="classpath"/> | |
539 | - <element name="customize" optional="true"/> | |
540 | - <sequential> | |
541 | - <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> | |
542 | - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
543 | - <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
544 | - <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
545 | - <jvmarg line="${run.jvmargs}"/> | |
546 | - <classpath> | |
547 | - <path path="@{classpath}"/> | |
548 | - </classpath> | |
549 | - <syspropertyset> | |
550 | - <propertyref prefix="run-sys-prop."/> | |
551 | - <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
552 | - </syspropertyset> | |
553 | - <customize/> | |
554 | - </java> | |
555 | - </sequential> | |
556 | - </macrodef> | |
557 | - </target> | |
558 | - <target name="-init-macrodef-copylibs"> | |
559 | - <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
560 | - <attribute default="${manifest.file}" name="manifest"/> | |
561 | - <element name="customize" optional="true"/> | |
562 | - <sequential> | |
563 | - <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
564 | - <pathconvert property="run.classpath.without.build.classes.dir"> | |
565 | - <path path="${run.classpath}"/> | |
566 | - <map from="${build.classes.dir.resolved}" to=""/> | |
567 | - </pathconvert> | |
568 | - <pathconvert pathsep=" " property="jar.classpath"> | |
569 | - <path path="${run.classpath.without.build.classes.dir}"/> | |
570 | - <chainedmapper> | |
571 | - <flattenmapper/> | |
572 | - <globmapper from="*" to="lib/*"/> | |
573 | - </chainedmapper> | |
574 | - </pathconvert> | |
575 | - <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | |
576 | - <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | |
577 | - <fileset dir="${build.classes.dir}"/> | |
578 | - <manifest> | |
579 | - <attribute name="Class-Path" value="${jar.classpath}"/> | |
580 | - <customize/> | |
581 | - </manifest> | |
582 | - </copylibs> | |
583 | - </sequential> | |
584 | - </macrodef> | |
585 | - </target> | |
586 | - <target name="-init-presetdef-jar"> | |
587 | - <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
588 | - <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> | |
589 | - <j2seproject1:fileset dir="${build.classes.dir}"/> | |
590 | - </jar> | |
591 | - </presetdef> | |
592 | - </target> | |
593 | - <target name="-init-ap-cmdline-properties"> | |
594 | - <property name="annotation.processing.enabled" value="true"/> | |
595 | - <property name="annotation.processing.processors.list" value=""/> | |
596 | - <property name="annotation.processing.processor.options" value=""/> | |
597 | - <property name="annotation.processing.run.all.processors" value="true"/> | |
598 | - <property name="javac.processorpath" value="${javac.classpath}"/> | |
599 | - <property name="javac.test.processorpath" value="${javac.test.classpath}"/> | |
600 | - <condition property="ap.supported.internal" value="true"> | |
601 | - <not> | |
602 | - <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> | |
603 | - </not> | |
604 | - </condition> | |
605 | - </target> | |
606 | - <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> | |
607 | - <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> | |
608 | - <isfalse value="${annotation.processing.run.all.processors}"/> | |
609 | - </condition> | |
610 | - <condition else="" property="ap.proc.none.internal" value="-proc:none"> | |
611 | - <isfalse value="${annotation.processing.enabled}"/> | |
612 | - </condition> | |
613 | - </target> | |
614 | - <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> | |
615 | - <property name="ap.cmd.line.internal" value=""/> | |
616 | - </target> | |
617 | - <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/> | |
618 | - <!-- | |
619 | - =================== | |
620 | - COMPILATION SECTION | |
621 | - =================== | |
622 | - --> | |
623 | - <target name="-deps-jar-init" unless="built-jar.properties"> | |
624 | - <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> | |
625 | - <delete file="${built-jar.properties}" quiet="true"/> | |
626 | - </target> | |
627 | - <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> | |
628 | - <echo level="warn" message="Cycle detected: TextKeyMatcher was already built"/> | |
629 | - </target> | |
630 | - <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> | |
631 | - <mkdir dir="${build.dir}"/> | |
632 | - <touch file="${built-jar.properties}" verbose="false"/> | |
633 | - <property file="${built-jar.properties}" prefix="already.built.jar."/> | |
634 | - <antcall target="-warn-already-built-jar"/> | |
635 | - <propertyfile file="${built-jar.properties}"> | |
636 | - <entry key="${basedir}" value=""/> | |
637 | - </propertyfile> | |
638 | - </target> | |
639 | - <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | |
640 | - <target depends="init" name="-check-automatic-build"> | |
641 | - <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> | |
642 | - </target> | |
643 | - <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> | |
644 | - <antcall target="clean"/> | |
645 | - </target> | |
646 | - <target depends="init,deps-jar" name="-pre-pre-compile"> | |
647 | - <mkdir dir="${build.classes.dir}"/> | |
648 | - </target> | |
649 | - <target name="-pre-compile"> | |
650 | - <!-- Empty placeholder for easier customization. --> | |
651 | - <!-- You can override this target in the ../build.xml file. --> | |
652 | - </target> | |
653 | - <target if="do.depend.true" name="-compile-depend"> | |
654 | - <pathconvert property="build.generated.subdirs"> | |
655 | - <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
656 | - <include name="*"/> | |
657 | - </dirset> | |
658 | - </pathconvert> | |
659 | - <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> | |
660 | - </target> | |
661 | - <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> | |
662 | - <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> | |
663 | - <copy todir="${build.classes.dir}"> | |
664 | - <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
665 | - </copy> | |
666 | - </target> | |
667 | - <target if="has.persistence.xml" name="-copy-persistence-xml"> | |
668 | - <mkdir dir="${build.classes.dir}/META-INF"/> | |
669 | - <copy todir="${build.classes.dir}/META-INF"> | |
670 | - <fileset dir="${meta.inf.dir}" includes="persistence.xml"/> | |
671 | - </copy> | |
672 | - </target> | |
673 | - <target name="-post-compile"> | |
674 | - <!-- Empty placeholder for easier customization. --> | |
675 | - <!-- You can override this target in the ../build.xml file. --> | |
676 | - </target> | |
677 | - <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | |
678 | - <target name="-pre-compile-single"> | |
679 | - <!-- Empty placeholder for easier customization. --> | |
680 | - <!-- You can override this target in the ../build.xml file. --> | |
681 | - </target> | |
682 | - <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> | |
683 | - <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
684 | - <j2seproject3:force-recompile/> | |
685 | - <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> | |
686 | - </target> | |
687 | - <target name="-post-compile-single"> | |
688 | - <!-- Empty placeholder for easier customization. --> | |
689 | - <!-- You can override this target in the ../build.xml file. --> | |
690 | - </target> | |
691 | - <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> | |
692 | - <!-- | |
693 | - ==================== | |
694 | - JAR BUILDING SECTION | |
695 | - ==================== | |
696 | - --> | |
697 | - <target depends="init" name="-pre-pre-jar"> | |
698 | - <dirname file="${dist.jar}" property="dist.jar.dir"/> | |
699 | - <mkdir dir="${dist.jar.dir}"/> | |
700 | - </target> | |
701 | - <target name="-pre-jar"> | |
702 | - <!-- Empty placeholder for easier customization. --> | |
703 | - <!-- You can override this target in the ../build.xml file. --> | |
704 | - </target> | |
705 | - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available"> | |
706 | - <j2seproject1:jar/> | |
707 | - </target> | |
708 | - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available"> | |
709 | - <j2seproject1:jar manifest="${manifest.file}"/> | |
710 | - </target> | |
711 | - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> | |
712 | - <j2seproject1:jar manifest="${manifest.file}"> | |
713 | - <j2seproject1:manifest> | |
714 | - <j2seproject1:attribute name="Main-Class" value="${main.class}"/> | |
715 | - </j2seproject1:manifest> | |
716 | - </j2seproject1:jar> | |
717 | - <echo level="info">To run this application from the command line without Ant, try:</echo> | |
718 | - <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
719 | - <property location="${dist.jar}" name="dist.jar.resolved"/> | |
720 | - <pathconvert property="run.classpath.with.dist.jar"> | |
721 | - <path path="${run.classpath}"/> | |
722 | - <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | |
723 | - </pathconvert> | |
724 | - <echo level="info">${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> | |
725 | - </target> | |
726 | - <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available"> | |
727 | - <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
728 | - <touch file="${tmp.manifest.file}" verbose="false"/> | |
729 | - </target> | |
730 | - <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest"> | |
731 | - <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
732 | - <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> | |
733 | - </target> | |
734 | - <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main"> | |
735 | - <manifest file="${tmp.manifest.file}" mode="update"> | |
736 | - <attribute name="Main-Class" value="${main.class}"/> | |
737 | - </manifest> | |
738 | - </target> | |
739 | - <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen"> | |
740 | - <basename file="${application.splash}" property="splashscreen.basename"/> | |
741 | - <mkdir dir="${build.classes.dir}/META-INF"/> | |
742 | - <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> | |
743 | - <manifest file="${tmp.manifest.file}" mode="update"> | |
744 | - <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> | |
745 | - </manifest> | |
746 | - </target> | |
747 | - <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack"> | |
748 | - <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> | |
749 | - <echo level="info">To run this application from the command line without Ant, try:</echo> | |
750 | - <property location="${dist.jar}" name="dist.jar.resolved"/> | |
751 | - <echo level="info">${platform.java} -jar "${dist.jar.resolved}"</echo> | |
752 | - </target> | |
753 | - <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest"> | |
754 | - <delete> | |
755 | - <fileset file="${tmp.manifest.file}"/> | |
756 | - </delete> | |
757 | - </target> | |
758 | - <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/> | |
759 | - <target depends="jnlp" name="-post-jar"> | |
760 | - <!-- Empty placeholder for easier customization. --> | |
761 | - <!-- You can override this target in the ../build.xml file. --> | |
762 | - </target> | |
763 | - <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar,jnlp" description="Build JAR." name="jar"/> | |
764 | - <!-- | |
765 | - ================= | |
766 | - EXECUTION SECTION | |
767 | - ================= | |
768 | - --> | |
769 | - <target depends="init,compile" description="Run a main class." name="run"> | |
770 | - <j2seproject1:java> | |
771 | - <customize> | |
772 | - <arg line="${application.args}"/> | |
773 | - </customize> | |
774 | - </j2seproject1:java> | |
775 | - </target> | |
776 | - <target name="-do-not-recompile"> | |
777 | - <property name="javac.includes.binary" value=""/> | |
778 | - </target> | |
779 | - <target depends="init,compile-single" name="run-single"> | |
780 | - <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
781 | - <j2seproject1:java classname="${run.class}"/> | |
782 | - </target> | |
783 | - <target depends="init,compile-test-single" name="run-test-with-main"> | |
784 | - <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
785 | - <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> | |
786 | - </target> | |
787 | - <!-- | |
788 | - ================= | |
789 | - DEBUGGING SECTION | |
790 | - ================= | |
791 | - --> | |
792 | - <target depends="init" if="netbeans.home" name="-debug-start-debugger"> | |
793 | - <j2seproject1:nbjpdastart name="${debug.class}"/> | |
794 | - </target> | |
795 | - <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> | |
796 | - <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> | |
797 | - </target> | |
798 | - <target depends="init,compile" name="-debug-start-debuggee"> | |
799 | - <j2seproject3:debug> | |
800 | - <customize> | |
801 | - <arg line="${application.args}"/> | |
802 | - </customize> | |
803 | - </j2seproject3:debug> | |
804 | - </target> | |
805 | - <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> | |
806 | - <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> | |
807 | - <j2seproject1:nbjpdastart stopclassname="${main.class}"/> | |
808 | - </target> | |
809 | - <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | |
810 | - <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | |
811 | - <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
812 | - <j2seproject3:debug classname="${debug.class}"/> | |
813 | - </target> | |
814 | - <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | |
815 | - <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> | |
816 | - <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
817 | - <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> | |
818 | - </target> | |
819 | - <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> | |
820 | - <target depends="init" name="-pre-debug-fix"> | |
821 | - <fail unless="fix.includes">Must set fix.includes</fail> | |
822 | - <property name="javac.includes" value="${fix.includes}.java"/> | |
823 | - </target> | |
824 | - <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | |
825 | - <j2seproject1:nbjpdareload/> | |
826 | - </target> | |
827 | - <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | |
828 | - <!-- | |
829 | - ================= | |
830 | - PROFILING SECTION | |
831 | - ================= | |
832 | - --> | |
833 | - <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile"> | |
834 | - <nbprofiledirect> | |
835 | - <classpath> | |
836 | - <path path="${run.classpath}"/> | |
837 | - </classpath> | |
838 | - </nbprofiledirect> | |
839 | - <profile/> | |
840 | - </target> | |
841 | - <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single"> | |
842 | - <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> | |
843 | - <nbprofiledirect> | |
844 | - <classpath> | |
845 | - <path path="${run.classpath}"/> | |
846 | - </classpath> | |
847 | - </nbprofiledirect> | |
848 | - <profile classname="${profile.class}"/> | |
849 | - </target> | |
850 | - <!-- | |
851 | - ========================= | |
852 | - APPLET PROFILING SECTION | |
853 | - ========================= | |
854 | - --> | |
855 | - <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet"> | |
856 | - <nbprofiledirect> | |
857 | - <classpath> | |
858 | - <path path="${run.classpath}"/> | |
859 | - </classpath> | |
860 | - </nbprofiledirect> | |
861 | - <profile classname="sun.applet.AppletViewer"> | |
862 | - <customize> | |
863 | - <arg value="${applet.url}"/> | |
864 | - </customize> | |
865 | - </profile> | |
866 | - </target> | |
867 | - <!-- | |
868 | - ========================= | |
869 | - TESTS PROFILING SECTION | |
870 | - ========================= | |
871 | - --> | |
872 | - <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single"> | |
873 | - <nbprofiledirect> | |
874 | - <classpath> | |
875 | - <path path="${run.test.classpath}"/> | |
876 | - </classpath> | |
877 | - </nbprofiledirect> | |
878 | - <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true"> | |
879 | - <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
880 | - <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
881 | - <jvmarg line="${profiler.info.jvmargs}"/> | |
882 | - <test name="${profile.class}"/> | |
883 | - <classpath> | |
884 | - <path path="${run.test.classpath}"/> | |
885 | - </classpath> | |
886 | - <syspropertyset> | |
887 | - <propertyref prefix="test-sys-prop."/> | |
888 | - <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
889 | - </syspropertyset> | |
890 | - <formatter type="brief" usefile="false"/> | |
891 | - <formatter type="xml"/> | |
892 | - </junit> | |
893 | - </target> | |
894 | - <!-- | |
895 | - =============== | |
896 | - JAVADOC SECTION | |
897 | - =============== | |
898 | - --> | |
899 | - <target depends="init" if="have.sources" name="-javadoc-build"> | |
900 | - <mkdir dir="${dist.javadoc.dir}"/> | |
901 | - <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" 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}"> | |
902 | - <classpath> | |
903 | - <path path="${javac.classpath}"/> | |
904 | - </classpath> | |
905 | - <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}"> | |
906 | - <filename name="**/*.java"/> | |
907 | - </fileset> | |
908 | - <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
909 | - <include name="**/*.java"/> | |
910 | - <exclude name="*.java"/> | |
911 | - </fileset> | |
912 | - </javadoc> | |
913 | - <copy todir="${dist.javadoc.dir}"> | |
914 | - <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | |
915 | - <filename name="**/doc-files/**"/> | |
916 | - </fileset> | |
917 | - <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
918 | - <include name="**/doc-files/**"/> | |
919 | - </fileset> | |
920 | - </copy> | |
921 | - </target> | |
922 | - <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | |
923 | - <nbbrowse file="${dist.javadoc.dir}/index.html"/> | |
924 | - </target> | |
925 | - <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | |
926 | - <!-- | |
927 | - ========================= | |
928 | - JUNIT COMPILATION SECTION | |
929 | - ========================= | |
930 | - --> | |
931 | - <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> | |
932 | - <mkdir dir="${build.test.classes.dir}"/> | |
933 | - </target> | |
934 | - <target name="-pre-compile-test"> | |
935 | - <!-- Empty placeholder for easier customization. --> | |
936 | - <!-- You can override this target in the ../build.xml file. --> | |
937 | - </target> | |
938 | - <target if="do.depend.true" name="-compile-test-depend"> | |
939 | - <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | |
940 | - </target> | |
941 | - <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | |
942 | - <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/> | |
943 | - <copy todir="${build.test.classes.dir}"> | |
944 | - <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
945 | - </copy> | |
946 | - </target> | |
947 | - <target name="-post-compile-test"> | |
948 | - <!-- Empty placeholder for easier customization. --> | |
949 | - <!-- You can override this target in the ../build.xml file. --> | |
950 | - </target> | |
951 | - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | |
952 | - <target name="-pre-compile-test-single"> | |
953 | - <!-- Empty placeholder for easier customization. --> | |
954 | - <!-- You can override this target in the ../build.xml file. --> | |
955 | - </target> | |
956 | - <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | |
957 | - <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
958 | - <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | |
959 | - <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> | |
960 | - <copy todir="${build.test.classes.dir}"> | |
961 | - <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
962 | - </copy> | |
963 | - </target> | |
964 | - <target name="-post-compile-test-single"> | |
965 | - <!-- Empty placeholder for easier customization. --> | |
966 | - <!-- You can override this target in the ../build.xml file. --> | |
967 | - </target> | |
968 | - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> | |
969 | - <!-- | |
970 | - ======================= | |
971 | - JUNIT EXECUTION SECTION | |
972 | - ======================= | |
973 | - --> | |
974 | - <target depends="init" if="have.tests" name="-pre-test-run"> | |
975 | - <mkdir dir="${build.test.results.dir}"/> | |
976 | - </target> | |
977 | - <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> | |
978 | - <j2seproject3:junit testincludes="**/*Test.java"/> | |
979 | - </target> | |
980 | - <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> | |
981 | - <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
982 | - </target> | |
983 | - <target depends="init" if="have.tests" name="test-report"/> | |
984 | - <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> | |
985 | - <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> | |
986 | - <target depends="init" if="have.tests" name="-pre-test-run-single"> | |
987 | - <mkdir dir="${build.test.results.dir}"/> | |
988 | - </target> | |
989 | - <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> | |
990 | - <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | |
991 | - <j2seproject3:junit excludes="" includes="${test.includes}"/> | |
992 | - </target> | |
993 | - <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | |
994 | - <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
995 | - </target> | |
996 | - <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> | |
997 | - <!-- | |
998 | - ======================= | |
999 | - JUNIT DEBUGGING SECTION | |
1000 | - ======================= | |
1001 | - --> | |
1002 | - <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> | |
1003 | - <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | |
1004 | - <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> | |
1005 | - <delete file="${test.report.file}"/> | |
1006 | - <mkdir dir="${build.test.results.dir}"/> | |
1007 | - <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}"> | |
1008 | - <customize> | |
1009 | - <syspropertyset> | |
1010 | - <propertyref prefix="test-sys-prop."/> | |
1011 | - <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
1012 | - </syspropertyset> | |
1013 | - <arg value="${test.class}"/> | |
1014 | - <arg value="showoutput=true"/> | |
1015 | - <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> | |
1016 | - <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> | |
1017 | - </customize> | |
1018 | - </j2seproject3:debug> | |
1019 | - </target> | |
1020 | - <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | |
1021 | - <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | |
1022 | - </target> | |
1023 | - <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | |
1024 | - <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> | |
1025 | - <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | |
1026 | - </target> | |
1027 | - <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | |
1028 | - <!-- | |
1029 | - ========================= | |
1030 | - APPLET EXECUTION SECTION | |
1031 | - ========================= | |
1032 | - --> | |
1033 | - <target depends="init,compile-single" name="run-applet"> | |
1034 | - <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1035 | - <j2seproject1:java classname="sun.applet.AppletViewer"> | |
1036 | - <customize> | |
1037 | - <arg value="${applet.url}"/> | |
1038 | - </customize> | |
1039 | - </j2seproject1:java> | |
1040 | - </target> | |
1041 | - <!-- | |
1042 | - ========================= | |
1043 | - APPLET DEBUGGING SECTION | |
1044 | - ========================= | |
1045 | - --> | |
1046 | - <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> | |
1047 | - <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1048 | - <j2seproject3:debug classname="sun.applet.AppletViewer"> | |
1049 | - <customize> | |
1050 | - <arg value="${applet.url}"/> | |
1051 | - </customize> | |
1052 | - </j2seproject3:debug> | |
1053 | - </target> | |
1054 | - <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> | |
1055 | - <!-- | |
1056 | - =============== | |
1057 | - CLEANUP SECTION | |
1058 | - =============== | |
1059 | - --> | |
1060 | - <target name="-deps-clean-init" unless="built-clean.properties"> | |
1061 | - <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> | |
1062 | - <delete file="${built-clean.properties}" quiet="true"/> | |
1063 | - </target> | |
1064 | - <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> | |
1065 | - <echo level="warn" message="Cycle detected: TextKeyMatcher was already built"/> | |
1066 | - </target> | |
1067 | - <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> | |
1068 | - <mkdir dir="${build.dir}"/> | |
1069 | - <touch file="${built-clean.properties}" verbose="false"/> | |
1070 | - <property file="${built-clean.properties}" prefix="already.built.clean."/> | |
1071 | - <antcall target="-warn-already-built-clean"/> | |
1072 | - <propertyfile file="${built-clean.properties}"> | |
1073 | - <entry key="${basedir}" value=""/> | |
1074 | - </propertyfile> | |
1075 | - </target> | |
1076 | - <target depends="init" name="-do-clean"> | |
1077 | - <delete dir="${build.dir}"/> | |
1078 | - <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> | |
1079 | - </target> | |
1080 | - <target name="-post-clean"> | |
1081 | - <!-- Empty placeholder for easier customization. --> | |
1082 | - <!-- You can override this target in the ../build.xml file. --> | |
1083 | - </target> | |
1084 | - <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | |
1085 | - <target name="-check-call-dep"> | |
1086 | - <property file="${call.built.properties}" prefix="already.built."/> | |
1087 | - <condition property="should.call.dep"> | |
1088 | - <not> | |
1089 | - <isset property="already.built.${call.subproject}"/> | |
1090 | - </not> | |
1091 | - </condition> | |
1092 | - </target> | |
1093 | - <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> | |
1094 | - <ant antfile="${call.script}" inheritall="false" target="${call.target}"> | |
1095 | - <propertyset> | |
1096 | - <propertyref prefix="transfer."/> | |
1097 | - <mapper from="transfer.*" to="*" type="glob"/> | |
1098 | - </propertyset> | |
1099 | - </ant> | |
1100 | - </target> | |
1101 | -</project> | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!-- | |
3 | +*** GENERATED FROM project.xml - DO NOT EDIT *** | |
4 | +*** EDIT ../build.xml INSTEAD *** | |
5 | + | |
6 | +For the purpose of easier reading the script | |
7 | +is divided into following sections: | |
8 | + | |
9 | + - initialization | |
10 | + - compilation | |
11 | + - jar | |
12 | + - execution | |
13 | + - debugging | |
14 | + - javadoc | |
15 | + - junit compilation | |
16 | + - junit execution | |
17 | + - junit debugging | |
18 | + - applet | |
19 | + - cleanup | |
20 | + | |
21 | + --> | |
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="TextKeyMatcher-impl"> | |
23 | + <import file="jnlp-impl.xml"/> | |
24 | + <fail message="Please build using Ant 1.7.1 or higher."> | |
25 | + <condition> | |
26 | + <not> | |
27 | + <antversion atleast="1.7.1"/> | |
28 | + </not> | |
29 | + </condition> | |
30 | + </fail> | |
31 | + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> | |
32 | + <!-- | |
33 | + ====================== | |
34 | + INITIALIZATION SECTION | |
35 | + ====================== | |
36 | + --> | |
37 | + <target name="-pre-init"> | |
38 | + <!-- Empty placeholder for easier customization. --> | |
39 | + <!-- You can override this target in the ../build.xml file. --> | |
40 | + </target> | |
41 | + <target depends="-pre-init" name="-init-private"> | |
42 | + <property file="nbproject/private/config.properties"/> | |
43 | + <property file="nbproject/private/configs/${config}.properties"/> | |
44 | + <property file="nbproject/private/private.properties"/> | |
45 | + </target> | |
46 | + <target name="-pre-init-libraries"> | |
47 | + <property location="./lib/nblibraries.properties" name="libraries.path"/> | |
48 | + <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/> | |
49 | + <pathconvert dirsep="/" property="libraries.dir"> | |
50 | + <path path="${libraries.dir.nativedirsep}"/> | |
51 | + </pathconvert> | |
52 | + <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/> | |
53 | + <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/> | |
54 | + </target> | |
55 | + <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries"> | |
56 | + <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties"> | |
57 | + <filterchain> | |
58 | + <replacestring from="$${base}" to="${libraries.dir}"/> | |
59 | + <escapeunicode/> | |
60 | + </filterchain> | |
61 | + </loadproperties> | |
62 | + </target> | |
63 | + <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries"> | |
64 | + <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}"> | |
65 | + <filterchain> | |
66 | + <replacestring from="$${base}" to="${libraries.dir}"/> | |
67 | + <escapeunicode/> | |
68 | + </filterchain> | |
69 | + </loadproperties> | |
70 | + </target> | |
71 | + <target depends="-pre-init,-init-private,-init-libraries" name="-init-user"> | |
72 | + <property file="${user.properties.file}"/> | |
73 | + <!-- The two properties below are usually overridden --> | |
74 | + <!-- by the active platform. Just a fallback. --> | |
75 | + <property name="default.javac.source" value="1.4"/> | |
76 | + <property name="default.javac.target" value="1.4"/> | |
77 | + </target> | |
78 | + <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project"> | |
79 | + <property file="nbproject/configs/${config}.properties"/> | |
80 | + <property file="nbproject/project.properties"/> | |
81 | + </target> | |
82 | + <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init"> | |
83 | + <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/> | |
84 | + <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/> | |
85 | + <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/> | |
86 | + <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/> | |
87 | + <condition property="platform.javac" value="${platform.home}/bin/javac"> | |
88 | + <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/> | |
89 | + </condition> | |
90 | + <property name="platform.javac" value="${platform.javac.tmp}"/> | |
91 | + <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/> | |
92 | + <condition property="platform.java" value="${platform.home}/bin/java"> | |
93 | + <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/> | |
94 | + </condition> | |
95 | + <property name="platform.java" value="${platform.java.tmp}"/> | |
96 | + <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/> | |
97 | + <condition property="platform.javadoc" value="${platform.home}/bin/javadoc"> | |
98 | + <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/> | |
99 | + </condition> | |
100 | + <property name="platform.javadoc" value="${platform.javadoc.tmp}"/> | |
101 | + <condition property="platform.invalid" value="true"> | |
102 | + <or> | |
103 | + <contains string="${platform.javac}" substring="$${platforms."/> | |
104 | + <contains string="${platform.java}" substring="$${platforms."/> | |
105 | + <contains string="${platform.javadoc}" substring="$${platforms."/> | |
106 | + </or> | |
107 | + </condition> | |
108 | + <fail unless="platform.home">Must set platform.home</fail> | |
109 | + <fail unless="platform.bootcp">Must set platform.bootcp</fail> | |
110 | + <fail unless="platform.java">Must set platform.java</fail> | |
111 | + <fail unless="platform.javac">Must set platform.javac</fail> | |
112 | + <fail if="platform.invalid"> | |
113 | + The J2SE Platform is not correctly set up. | |
114 | + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. | |
115 | + Either open the project in the IDE and setup the Platform with the same name or add it manually. | |
116 | + For example like this: | |
117 | + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) | |
118 | + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) | |
119 | + </fail> | |
120 | + <available file="${manifest.file}" property="manifest.available"/> | |
121 | + <condition property="splashscreen.available"> | |
122 | + <and> | |
123 | + <not> | |
124 | + <equals arg1="${application.splash}" arg2="" trim="true"/> | |
125 | + </not> | |
126 | + <available file="${application.splash}"/> | |
127 | + </and> | |
128 | + </condition> | |
129 | + <condition property="main.class.available"> | |
130 | + <and> | |
131 | + <isset property="main.class"/> | |
132 | + <not> | |
133 | + <equals arg1="${main.class}" arg2="" trim="true"/> | |
134 | + </not> | |
135 | + </and> | |
136 | + </condition> | |
137 | + <condition property="manifest.available+main.class"> | |
138 | + <and> | |
139 | + <isset property="manifest.available"/> | |
140 | + <isset property="main.class.available"/> | |
141 | + </and> | |
142 | + </condition> | |
143 | + <condition property="do.archive"> | |
144 | + <not> | |
145 | + <istrue value="${jar.archive.disabled}"/> | |
146 | + </not> | |
147 | + </condition> | |
148 | + <condition property="do.mkdist"> | |
149 | + <and> | |
150 | + <isset property="do.archive"/> | |
151 | + <isset property="libs.CopyLibs.classpath"/> | |
152 | + <not> | |
153 | + <istrue value="${mkdist.disabled}"/> | |
154 | + </not> | |
155 | + </and> | |
156 | + </condition> | |
157 | + <condition property="manifest.available+main.class+mkdist.available"> | |
158 | + <and> | |
159 | + <istrue value="${manifest.available+main.class}"/> | |
160 | + <isset property="do.mkdist"/> | |
161 | + </and> | |
162 | + </condition> | |
163 | + <condition property="do.archive+manifest.available"> | |
164 | + <and> | |
165 | + <isset property="manifest.available"/> | |
166 | + <istrue value="${do.archive}"/> | |
167 | + </and> | |
168 | + </condition> | |
169 | + <condition property="do.archive+main.class.available"> | |
170 | + <and> | |
171 | + <isset property="main.class.available"/> | |
172 | + <istrue value="${do.archive}"/> | |
173 | + </and> | |
174 | + </condition> | |
175 | + <condition property="do.archive+splashscreen.available"> | |
176 | + <and> | |
177 | + <isset property="splashscreen.available"/> | |
178 | + <istrue value="${do.archive}"/> | |
179 | + </and> | |
180 | + </condition> | |
181 | + <condition property="do.archive+manifest.available+main.class"> | |
182 | + <and> | |
183 | + <istrue value="${manifest.available+main.class}"/> | |
184 | + <istrue value="${do.archive}"/> | |
185 | + </and> | |
186 | + </condition> | |
187 | + <condition property="manifest.available-mkdist.available"> | |
188 | + <or> | |
189 | + <istrue value="${manifest.available}"/> | |
190 | + <isset property="do.mkdist"/> | |
191 | + </or> | |
192 | + </condition> | |
193 | + <condition property="manifest.available+main.class-mkdist.available"> | |
194 | + <or> | |
195 | + <istrue value="${manifest.available+main.class}"/> | |
196 | + <isset property="do.mkdist"/> | |
197 | + </or> | |
198 | + </condition> | |
199 | + <condition property="have.tests"> | |
200 | + <or> | |
201 | + <available file="${test.src.dir}"/> | |
202 | + </or> | |
203 | + </condition> | |
204 | + <condition property="have.sources"> | |
205 | + <or> | |
206 | + <available file="${src.dir}"/> | |
207 | + </or> | |
208 | + </condition> | |
209 | + <condition property="netbeans.home+have.tests"> | |
210 | + <and> | |
211 | + <isset property="netbeans.home"/> | |
212 | + <isset property="have.tests"/> | |
213 | + </and> | |
214 | + </condition> | |
215 | + <condition property="no.javadoc.preview"> | |
216 | + <and> | |
217 | + <isset property="javadoc.preview"/> | |
218 | + <isfalse value="${javadoc.preview}"/> | |
219 | + </and> | |
220 | + </condition> | |
221 | + <property name="run.jvmargs" value=""/> | |
222 | + <property name="javac.compilerargs" value=""/> | |
223 | + <property name="work.dir" value="${basedir}"/> | |
224 | + <condition property="no.deps"> | |
225 | + <and> | |
226 | + <istrue value="${no.dependencies}"/> | |
227 | + </and> | |
228 | + </condition> | |
229 | + <property name="javac.debug" value="true"/> | |
230 | + <property name="javadoc.preview" value="true"/> | |
231 | + <property name="application.args" value=""/> | |
232 | + <property name="source.encoding" value="${file.encoding}"/> | |
233 | + <property name="runtime.encoding" value="${source.encoding}"/> | |
234 | + <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | |
235 | + <and> | |
236 | + <isset property="javadoc.encoding"/> | |
237 | + <not> | |
238 | + <equals arg1="${javadoc.encoding}" arg2=""/> | |
239 | + </not> | |
240 | + </and> | |
241 | + </condition> | |
242 | + <property name="javadoc.encoding.used" value="${source.encoding}"/> | |
243 | + <property name="includes" value="**"/> | |
244 | + <property name="excludes" value=""/> | |
245 | + <property name="do.depend" value="false"/> | |
246 | + <condition property="do.depend.true"> | |
247 | + <istrue value="${do.depend}"/> | |
248 | + </condition> | |
249 | + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> | |
250 | + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> | |
251 | + <length length="0" string="${endorsed.classpath}" when="greater"/> | |
252 | + </condition> | |
253 | + <property name="jar.index" value="false"/> | |
254 | + <property name="jar.index.metainf" value="${jar.index}"/> | |
255 | + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> | |
256 | + </target> | |
257 | + <target name="-post-init"> | |
258 | + <!-- Empty placeholder for easier customization. --> | |
259 | + <!-- You can override this target in the ../build.xml file. --> | |
260 | + </target> | |
261 | + <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check"> | |
262 | + <fail unless="src.dir">Must set src.dir</fail> | |
263 | + <fail unless="test.src.dir">Must set test.src.dir</fail> | |
264 | + <fail unless="build.dir">Must set build.dir</fail> | |
265 | + <fail unless="dist.dir">Must set dist.dir</fail> | |
266 | + <fail unless="build.classes.dir">Must set build.classes.dir</fail> | |
267 | + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> | |
268 | + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> | |
269 | + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> | |
270 | + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> | |
271 | + <fail unless="dist.jar">Must set dist.jar</fail> | |
272 | + </target> | |
273 | + <target name="-init-macrodef-property"> | |
274 | + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
275 | + <attribute name="name"/> | |
276 | + <attribute name="value"/> | |
277 | + <sequential> | |
278 | + <property name="@{name}" value="${@{value}}"/> | |
279 | + </sequential> | |
280 | + </macrodef> | |
281 | + </target> | |
282 | + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> | |
283 | + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
284 | + <attribute default="${src.dir}" name="srcdir"/> | |
285 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
286 | + <attribute default="${javac.classpath}" name="classpath"/> | |
287 | + <attribute default="${javac.processorpath}" name="processorpath"/> | |
288 | + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
289 | + <attribute default="${includes}" name="includes"/> | |
290 | + <attribute default="${excludes}" name="excludes"/> | |
291 | + <attribute default="${javac.debug}" name="debug"/> | |
292 | + <attribute default="${empty.dir}" name="sourcepath"/> | |
293 | + <attribute default="${empty.dir}" name="gensrcdir"/> | |
294 | + <element name="customize" optional="true"/> | |
295 | + <sequential> | |
296 | + <property location="${build.dir}/empty" name="empty.dir"/> | |
297 | + <mkdir dir="${empty.dir}"/> | |
298 | + <mkdir dir="@{apgeneratedsrcdir}"/> | |
299 | + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
300 | + <src> | |
301 | + <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
302 | + <include name="*"/> | |
303 | + </dirset> | |
304 | + </src> | |
305 | + <classpath> | |
306 | + <path path="@{classpath}"/> | |
307 | + </classpath> | |
308 | + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
309 | + <compilerarg line="${javac.compilerargs}"/> | |
310 | + <compilerarg value="-processorpath"/> | |
311 | + <compilerarg path="@{processorpath}:${empty.dir}"/> | |
312 | + <compilerarg line="${ap.processors.internal}"/> | |
313 | + <compilerarg line="${annotation.processing.processor.options}"/> | |
314 | + <compilerarg value="-s"/> | |
315 | + <compilerarg path="@{apgeneratedsrcdir}"/> | |
316 | + <compilerarg line="${ap.proc.none.internal}"/> | |
317 | + <customize/> | |
318 | + </javac> | |
319 | + </sequential> | |
320 | + </macrodef> | |
321 | + </target> | |
322 | + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> | |
323 | + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
324 | + <attribute default="${src.dir}" name="srcdir"/> | |
325 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
326 | + <attribute default="${javac.classpath}" name="classpath"/> | |
327 | + <attribute default="${javac.processorpath}" name="processorpath"/> | |
328 | + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
329 | + <attribute default="${includes}" name="includes"/> | |
330 | + <attribute default="${excludes}" name="excludes"/> | |
331 | + <attribute default="${javac.debug}" name="debug"/> | |
332 | + <attribute default="${empty.dir}" name="sourcepath"/> | |
333 | + <attribute default="${empty.dir}" name="gensrcdir"/> | |
334 | + <element name="customize" optional="true"/> | |
335 | + <sequential> | |
336 | + <property location="${build.dir}/empty" name="empty.dir"/> | |
337 | + <mkdir dir="${empty.dir}"/> | |
338 | + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
339 | + <src> | |
340 | + <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
341 | + <include name="*"/> | |
342 | + </dirset> | |
343 | + </src> | |
344 | + <classpath> | |
345 | + <path path="@{classpath}"/> | |
346 | + </classpath> | |
347 | + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
348 | + <compilerarg line="${javac.compilerargs}"/> | |
349 | + <customize/> | |
350 | + </javac> | |
351 | + </sequential> | |
352 | + </macrodef> | |
353 | + </target> | |
354 | + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> | |
355 | + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
356 | + <attribute default="${src.dir}" name="srcdir"/> | |
357 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
358 | + <attribute default="${javac.classpath}" name="classpath"/> | |
359 | + <sequential> | |
360 | + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> | |
361 | + <classpath> | |
362 | + <path path="@{classpath}"/> | |
363 | + </classpath> | |
364 | + </depend> | |
365 | + </sequential> | |
366 | + </macrodef> | |
367 | + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
368 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
369 | + <sequential> | |
370 | + <fail unless="javac.includes">Must set javac.includes</fail> | |
371 | + <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> | |
372 | + <path> | |
373 | + <filelist dir="@{destdir}" files="${javac.includes}"/> | |
374 | + </path> | |
375 | + <globmapper from="*.java" to="*.class"/> | |
376 | + </pathconvert> | |
377 | + <tempfile deleteonexit="true" property="javac.includesfile.binary"/> | |
378 | + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> | |
379 | + <delete> | |
380 | + <files includesfile="${javac.includesfile.binary}"/> | |
381 | + </delete> | |
382 | + <delete> | |
383 | + <fileset file="${javac.includesfile.binary}"/> | |
384 | + </delete> | |
385 | + </sequential> | |
386 | + </macrodef> | |
387 | + </target> | |
388 | + <target name="-init-macrodef-junit"> | |
389 | + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
390 | + <attribute default="${includes}" name="includes"/> | |
391 | + <attribute default="${excludes}" name="excludes"/> | |
392 | + <attribute default="**" name="testincludes"/> | |
393 | + <sequential> | |
394 | + <property name="junit.forkmode" value="perTest"/> | |
395 | + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> | |
396 | + <batchtest todir="${build.test.results.dir}"> | |
397 | + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | |
398 | + <filename name="@{testincludes}"/> | |
399 | + </fileset> | |
400 | + </batchtest> | |
401 | + <classpath> | |
402 | + <path path="${run.test.classpath}"/> | |
403 | + </classpath> | |
404 | + <syspropertyset> | |
405 | + <propertyref prefix="test-sys-prop."/> | |
406 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
407 | + </syspropertyset> | |
408 | + <formatter type="brief" usefile="false"/> | |
409 | + <formatter type="xml"/> | |
410 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
411 | + <jvmarg value="-ea"/> | |
412 | + <jvmarg line="${run.jvmargs}"/> | |
413 | + </junit> | |
414 | + </sequential> | |
415 | + </macrodef> | |
416 | + </target> | |
417 | + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/> | |
418 | + <target name="-profile-pre-init"> | |
419 | + <!-- Empty placeholder for easier customization. --> | |
420 | + <!-- You can override this target in the ../build.xml file. --> | |
421 | + </target> | |
422 | + <target name="-profile-post-init"> | |
423 | + <!-- Empty placeholder for easier customization. --> | |
424 | + <!-- You can override this target in the ../build.xml file. --> | |
425 | + </target> | |
426 | + <target name="-profile-init-macrodef-profile"> | |
427 | + <macrodef name="resolve"> | |
428 | + <attribute name="name"/> | |
429 | + <attribute name="value"/> | |
430 | + <sequential> | |
431 | + <property name="@{name}" value="${env.@{value}}"/> | |
432 | + </sequential> | |
433 | + </macrodef> | |
434 | + <macrodef name="profile"> | |
435 | + <attribute default="${main.class}" name="classname"/> | |
436 | + <element name="customize" optional="true"/> | |
437 | + <sequential> | |
438 | + <property environment="env"/> | |
439 | + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> | |
440 | + <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> | |
441 | + <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
442 | + <jvmarg line="${profiler.info.jvmargs}"/> | |
443 | + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
444 | + <arg line="${application.args}"/> | |
445 | + <classpath> | |
446 | + <path path="${run.classpath}"/> | |
447 | + </classpath> | |
448 | + <syspropertyset> | |
449 | + <propertyref prefix="run-sys-prop."/> | |
450 | + <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
451 | + </syspropertyset> | |
452 | + <customize/> | |
453 | + </java> | |
454 | + </sequential> | |
455 | + </macrodef> | |
456 | + </target> | |
457 | + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check"> | |
458 | + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> | |
459 | + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> | |
460 | + </target> | |
461 | + <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> | |
462 | + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
463 | + <attribute default="${main.class}" name="name"/> | |
464 | + <attribute default="${debug.classpath}" name="classpath"/> | |
465 | + <attribute default="" name="stopclassname"/> | |
466 | + <sequential> | |
467 | + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> | |
468 | + <classpath> | |
469 | + <path path="@{classpath}"/> | |
470 | + </classpath> | |
471 | + <bootclasspath> | |
472 | + <path path="${platform.bootcp}"/> | |
473 | + </bootclasspath> | |
474 | + </nbjpdastart> | |
475 | + </sequential> | |
476 | + </macrodef> | |
477 | + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
478 | + <attribute default="${build.classes.dir}" name="dir"/> | |
479 | + <sequential> | |
480 | + <nbjpdareload> | |
481 | + <fileset dir="@{dir}" includes="${fix.classes}"> | |
482 | + <include name="${fix.includes}*.class"/> | |
483 | + </fileset> | |
484 | + </nbjpdareload> | |
485 | + </sequential> | |
486 | + </macrodef> | |
487 | + </target> | |
488 | + <target name="-init-debug-args"> | |
489 | + <exec executable="${platform.java}" outputproperty="version-output"> | |
490 | + <arg value="-version"/> | |
491 | + </exec> | |
492 | + <condition property="have-jdk-older-than-1.4"> | |
493 | + <or> | |
494 | + <contains string="${version-output}" substring="java version "1.0"/> | |
495 | + <contains string="${version-output}" substring="java version "1.1"/> | |
496 | + <contains string="${version-output}" substring="java version "1.2"/> | |
497 | + <contains string="${version-output}" substring="java version "1.3"/> | |
498 | + </or> | |
499 | + </condition> | |
500 | + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> | |
501 | + <istrue value="${have-jdk-older-than-1.4}"/> | |
502 | + </condition> | |
503 | + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> | |
504 | + <os family="windows"/> | |
505 | + </condition> | |
506 | + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> | |
507 | + <isset property="debug.transport"/> | |
508 | + </condition> | |
509 | + </target> | |
510 | + <target depends="-init-debug-args" name="-init-macrodef-debug"> | |
511 | + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
512 | + <attribute default="${main.class}" name="classname"/> | |
513 | + <attribute default="${debug.classpath}" name="classpath"/> | |
514 | + <element name="customize" optional="true"/> | |
515 | + <sequential> | |
516 | + <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> | |
517 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
518 | + <jvmarg line="${debug-args-line}"/> | |
519 | + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
520 | + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
521 | + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
522 | + <jvmarg line="${run.jvmargs}"/> | |
523 | + <classpath> | |
524 | + <path path="@{classpath}"/> | |
525 | + </classpath> | |
526 | + <syspropertyset> | |
527 | + <propertyref prefix="run-sys-prop."/> | |
528 | + <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
529 | + </syspropertyset> | |
530 | + <customize/> | |
531 | + </java> | |
532 | + </sequential> | |
533 | + </macrodef> | |
534 | + </target> | |
535 | + <target name="-init-macrodef-java"> | |
536 | + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
537 | + <attribute default="${main.class}" name="classname"/> | |
538 | + <attribute default="${run.classpath}" name="classpath"/> | |
539 | + <element name="customize" optional="true"/> | |
540 | + <sequential> | |
541 | + <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> | |
542 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
543 | + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
544 | + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
545 | + <jvmarg line="${run.jvmargs}"/> | |
546 | + <classpath> | |
547 | + <path path="@{classpath}"/> | |
548 | + </classpath> | |
549 | + <syspropertyset> | |
550 | + <propertyref prefix="run-sys-prop."/> | |
551 | + <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
552 | + </syspropertyset> | |
553 | + <customize/> | |
554 | + </java> | |
555 | + </sequential> | |
556 | + </macrodef> | |
557 | + </target> | |
558 | + <target name="-init-macrodef-copylibs"> | |
559 | + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
560 | + <attribute default="${manifest.file}" name="manifest"/> | |
561 | + <element name="customize" optional="true"/> | |
562 | + <sequential> | |
563 | + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
564 | + <pathconvert property="run.classpath.without.build.classes.dir"> | |
565 | + <path path="${run.classpath}"/> | |
566 | + <map from="${build.classes.dir.resolved}" to=""/> | |
567 | + </pathconvert> | |
568 | + <pathconvert pathsep=" " property="jar.classpath"> | |
569 | + <path path="${run.classpath.without.build.classes.dir}"/> | |
570 | + <chainedmapper> | |
571 | + <flattenmapper/> | |
572 | + <globmapper from="*" to="lib/*"/> | |
573 | + </chainedmapper> | |
574 | + </pathconvert> | |
575 | + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | |
576 | + <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | |
577 | + <fileset dir="${build.classes.dir}"/> | |
578 | + <manifest> | |
579 | + <attribute name="Class-Path" value="${jar.classpath}"/> | |
580 | + <customize/> | |
581 | + </manifest> | |
582 | + </copylibs> | |
583 | + </sequential> | |
584 | + </macrodef> | |
585 | + </target> | |
586 | + <target name="-init-presetdef-jar"> | |
587 | + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
588 | + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> | |
589 | + <j2seproject1:fileset dir="${build.classes.dir}"/> | |
590 | + </jar> | |
591 | + </presetdef> | |
592 | + </target> | |
593 | + <target name="-init-ap-cmdline-properties"> | |
594 | + <property name="annotation.processing.enabled" value="true"/> | |
595 | + <property name="annotation.processing.processors.list" value=""/> | |
596 | + <property name="annotation.processing.processor.options" value=""/> | |
597 | + <property name="annotation.processing.run.all.processors" value="true"/> | |
598 | + <property name="javac.processorpath" value="${javac.classpath}"/> | |
599 | + <property name="javac.test.processorpath" value="${javac.test.classpath}"/> | |
600 | + <condition property="ap.supported.internal" value="true"> | |
601 | + <not> | |
602 | + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> | |
603 | + </not> | |
604 | + </condition> | |
605 | + </target> | |
606 | + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> | |
607 | + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> | |
608 | + <isfalse value="${annotation.processing.run.all.processors}"/> | |
609 | + </condition> | |
610 | + <condition else="" property="ap.proc.none.internal" value="-proc:none"> | |
611 | + <isfalse value="${annotation.processing.enabled}"/> | |
612 | + </condition> | |
613 | + </target> | |
614 | + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> | |
615 | + <property name="ap.cmd.line.internal" value=""/> | |
616 | + </target> | |
617 | + <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/> | |
618 | + <!-- | |
619 | + =================== | |
620 | + COMPILATION SECTION | |
621 | + =================== | |
622 | + --> | |
623 | + <target name="-deps-jar-init" unless="built-jar.properties"> | |
624 | + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> | |
625 | + <delete file="${built-jar.properties}" quiet="true"/> | |
626 | + </target> | |
627 | + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> | |
628 | + <echo level="warn" message="Cycle detected: TextKeyMatcher was already built"/> | |
629 | + </target> | |
630 | + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> | |
631 | + <mkdir dir="${build.dir}"/> | |
632 | + <touch file="${built-jar.properties}" verbose="false"/> | |
633 | + <property file="${built-jar.properties}" prefix="already.built.jar."/> | |
634 | + <antcall target="-warn-already-built-jar"/> | |
635 | + <propertyfile file="${built-jar.properties}"> | |
636 | + <entry key="${basedir}" value=""/> | |
637 | + </propertyfile> | |
638 | + </target> | |
639 | + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | |
640 | + <target depends="init" name="-check-automatic-build"> | |
641 | + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> | |
642 | + </target> | |
643 | + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> | |
644 | + <antcall target="clean"/> | |
645 | + </target> | |
646 | + <target depends="init,deps-jar" name="-pre-pre-compile"> | |
647 | + <mkdir dir="${build.classes.dir}"/> | |
648 | + </target> | |
649 | + <target name="-pre-compile"> | |
650 | + <!-- Empty placeholder for easier customization. --> | |
651 | + <!-- You can override this target in the ../build.xml file. --> | |
652 | + </target> | |
653 | + <target if="do.depend.true" name="-compile-depend"> | |
654 | + <pathconvert property="build.generated.subdirs"> | |
655 | + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
656 | + <include name="*"/> | |
657 | + </dirset> | |
658 | + </pathconvert> | |
659 | + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> | |
660 | + </target> | |
661 | + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> | |
662 | + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> | |
663 | + <copy todir="${build.classes.dir}"> | |
664 | + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
665 | + </copy> | |
666 | + </target> | |
667 | + <target if="has.persistence.xml" name="-copy-persistence-xml"> | |
668 | + <mkdir dir="${build.classes.dir}/META-INF"/> | |
669 | + <copy todir="${build.classes.dir}/META-INF"> | |
670 | + <fileset dir="${meta.inf.dir}" includes="persistence.xml"/> | |
671 | + </copy> | |
672 | + </target> | |
673 | + <target name="-post-compile"> | |
674 | + <!-- Empty placeholder for easier customization. --> | |
675 | + <!-- You can override this target in the ../build.xml file. --> | |
676 | + </target> | |
677 | + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | |
678 | + <target name="-pre-compile-single"> | |
679 | + <!-- Empty placeholder for easier customization. --> | |
680 | + <!-- You can override this target in the ../build.xml file. --> | |
681 | + </target> | |
682 | + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> | |
683 | + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
684 | + <j2seproject3:force-recompile/> | |
685 | + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> | |
686 | + </target> | |
687 | + <target name="-post-compile-single"> | |
688 | + <!-- Empty placeholder for easier customization. --> | |
689 | + <!-- You can override this target in the ../build.xml file. --> | |
690 | + </target> | |
691 | + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> | |
692 | + <!-- | |
693 | + ==================== | |
694 | + JAR BUILDING SECTION | |
695 | + ==================== | |
696 | + --> | |
697 | + <target depends="init" name="-pre-pre-jar"> | |
698 | + <dirname file="${dist.jar}" property="dist.jar.dir"/> | |
699 | + <mkdir dir="${dist.jar.dir}"/> | |
700 | + </target> | |
701 | + <target name="-pre-jar"> | |
702 | + <!-- Empty placeholder for easier customization. --> | |
703 | + <!-- You can override this target in the ../build.xml file. --> | |
704 | + </target> | |
705 | + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available"> | |
706 | + <j2seproject1:jar/> | |
707 | + </target> | |
708 | + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available"> | |
709 | + <j2seproject1:jar manifest="${manifest.file}"/> | |
710 | + </target> | |
711 | + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> | |
712 | + <j2seproject1:jar manifest="${manifest.file}"> | |
713 | + <j2seproject1:manifest> | |
714 | + <j2seproject1:attribute name="Main-Class" value="${main.class}"/> | |
715 | + </j2seproject1:manifest> | |
716 | + </j2seproject1:jar> | |
717 | + <echo level="info">To run this application from the command line without Ant, try:</echo> | |
718 | + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
719 | + <property location="${dist.jar}" name="dist.jar.resolved"/> | |
720 | + <pathconvert property="run.classpath.with.dist.jar"> | |
721 | + <path path="${run.classpath}"/> | |
722 | + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | |
723 | + </pathconvert> | |
724 | + <echo level="info">${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> | |
725 | + </target> | |
726 | + <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available"> | |
727 | + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
728 | + <touch file="${tmp.manifest.file}" verbose="false"/> | |
729 | + </target> | |
730 | + <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest"> | |
731 | + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
732 | + <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> | |
733 | + </target> | |
734 | + <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main"> | |
735 | + <manifest file="${tmp.manifest.file}" mode="update"> | |
736 | + <attribute name="Main-Class" value="${main.class}"/> | |
737 | + </manifest> | |
738 | + </target> | |
739 | + <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen"> | |
740 | + <basename file="${application.splash}" property="splashscreen.basename"/> | |
741 | + <mkdir dir="${build.classes.dir}/META-INF"/> | |
742 | + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> | |
743 | + <manifest file="${tmp.manifest.file}" mode="update"> | |
744 | + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> | |
745 | + </manifest> | |
746 | + </target> | |
747 | + <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack"> | |
748 | + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> | |
749 | + <echo level="info">To run this application from the command line without Ant, try:</echo> | |
750 | + <property location="${dist.jar}" name="dist.jar.resolved"/> | |
751 | + <echo level="info">${platform.java} -jar "${dist.jar.resolved}"</echo> | |
752 | + </target> | |
753 | + <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest"> | |
754 | + <delete> | |
755 | + <fileset file="${tmp.manifest.file}"/> | |
756 | + </delete> | |
757 | + </target> | |
758 | + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/> | |
759 | + <target depends="jnlp" name="-post-jar"> | |
760 | + <!-- Empty placeholder for easier customization. --> | |
761 | + <!-- You can override this target in the ../build.xml file. --> | |
762 | + </target> | |
763 | + <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar,jnlp" description="Build JAR." name="jar"/> | |
764 | + <!-- | |
765 | + ================= | |
766 | + EXECUTION SECTION | |
767 | + ================= | |
768 | + --> | |
769 | + <target depends="init,compile" description="Run a main class." name="run"> | |
770 | + <j2seproject1:java> | |
771 | + <customize> | |
772 | + <arg line="${application.args}"/> | |
773 | + </customize> | |
774 | + </j2seproject1:java> | |
775 | + </target> | |
776 | + <target name="-do-not-recompile"> | |
777 | + <property name="javac.includes.binary" value=""/> | |
778 | + </target> | |
779 | + <target depends="init,compile-single" name="run-single"> | |
780 | + <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
781 | + <j2seproject1:java classname="${run.class}"/> | |
782 | + </target> | |
783 | + <target depends="init,compile-test-single" name="run-test-with-main"> | |
784 | + <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
785 | + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> | |
786 | + </target> | |
787 | + <!-- | |
788 | + ================= | |
789 | + DEBUGGING SECTION | |
790 | + ================= | |
791 | + --> | |
792 | + <target depends="init" if="netbeans.home" name="-debug-start-debugger"> | |
793 | + <j2seproject1:nbjpdastart name="${debug.class}"/> | |
794 | + </target> | |
795 | + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> | |
796 | + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> | |
797 | + </target> | |
798 | + <target depends="init,compile" name="-debug-start-debuggee"> | |
799 | + <j2seproject3:debug> | |
800 | + <customize> | |
801 | + <arg line="${application.args}"/> | |
802 | + </customize> | |
803 | + </j2seproject3:debug> | |
804 | + </target> | |
805 | + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> | |
806 | + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> | |
807 | + <j2seproject1:nbjpdastart stopclassname="${main.class}"/> | |
808 | + </target> | |
809 | + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | |
810 | + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | |
811 | + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
812 | + <j2seproject3:debug classname="${debug.class}"/> | |
813 | + </target> | |
814 | + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | |
815 | + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> | |
816 | + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
817 | + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> | |
818 | + </target> | |
819 | + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> | |
820 | + <target depends="init" name="-pre-debug-fix"> | |
821 | + <fail unless="fix.includes">Must set fix.includes</fail> | |
822 | + <property name="javac.includes" value="${fix.includes}.java"/> | |
823 | + </target> | |
824 | + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | |
825 | + <j2seproject1:nbjpdareload/> | |
826 | + </target> | |
827 | + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | |
828 | + <!-- | |
829 | + ================= | |
830 | + PROFILING SECTION | |
831 | + ================= | |
832 | + --> | |
833 | + <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile"> | |
834 | + <nbprofiledirect> | |
835 | + <classpath> | |
836 | + <path path="${run.classpath}"/> | |
837 | + </classpath> | |
838 | + </nbprofiledirect> | |
839 | + <profile/> | |
840 | + </target> | |
841 | + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single"> | |
842 | + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> | |
843 | + <nbprofiledirect> | |
844 | + <classpath> | |
845 | + <path path="${run.classpath}"/> | |
846 | + </classpath> | |
847 | + </nbprofiledirect> | |
848 | + <profile classname="${profile.class}"/> | |
849 | + </target> | |
850 | + <!-- | |
851 | + ========================= | |
852 | + APPLET PROFILING SECTION | |
853 | + ========================= | |
854 | + --> | |
855 | + <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet"> | |
856 | + <nbprofiledirect> | |
857 | + <classpath> | |
858 | + <path path="${run.classpath}"/> | |
859 | + </classpath> | |
860 | + </nbprofiledirect> | |
861 | + <profile classname="sun.applet.AppletViewer"> | |
862 | + <customize> | |
863 | + <arg value="${applet.url}"/> | |
864 | + </customize> | |
865 | + </profile> | |
866 | + </target> | |
867 | + <!-- | |
868 | + ========================= | |
869 | + TESTS PROFILING SECTION | |
870 | + ========================= | |
871 | + --> | |
872 | + <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single"> | |
873 | + <nbprofiledirect> | |
874 | + <classpath> | |
875 | + <path path="${run.test.classpath}"/> | |
876 | + </classpath> | |
877 | + </nbprofiledirect> | |
878 | + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true"> | |
879 | + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
880 | + <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
881 | + <jvmarg line="${profiler.info.jvmargs}"/> | |
882 | + <test name="${profile.class}"/> | |
883 | + <classpath> | |
884 | + <path path="${run.test.classpath}"/> | |
885 | + </classpath> | |
886 | + <syspropertyset> | |
887 | + <propertyref prefix="test-sys-prop."/> | |
888 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
889 | + </syspropertyset> | |
890 | + <formatter type="brief" usefile="false"/> | |
891 | + <formatter type="xml"/> | |
892 | + </junit> | |
893 | + </target> | |
894 | + <!-- | |
895 | + =============== | |
896 | + JAVADOC SECTION | |
897 | + =============== | |
898 | + --> | |
899 | + <target depends="init" if="have.sources" name="-javadoc-build"> | |
900 | + <mkdir dir="${dist.javadoc.dir}"/> | |
901 | + <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" 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}"> | |
902 | + <classpath> | |
903 | + <path path="${javac.classpath}"/> | |
904 | + </classpath> | |
905 | + <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}"> | |
906 | + <filename name="**/*.java"/> | |
907 | + </fileset> | |
908 | + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
909 | + <include name="**/*.java"/> | |
910 | + <exclude name="*.java"/> | |
911 | + </fileset> | |
912 | + </javadoc> | |
913 | + <copy todir="${dist.javadoc.dir}"> | |
914 | + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | |
915 | + <filename name="**/doc-files/**"/> | |
916 | + </fileset> | |
917 | + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
918 | + <include name="**/doc-files/**"/> | |
919 | + </fileset> | |
920 | + </copy> | |
921 | + </target> | |
922 | + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | |
923 | + <nbbrowse file="${dist.javadoc.dir}/index.html"/> | |
924 | + </target> | |
925 | + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | |
926 | + <!-- | |
927 | + ========================= | |
928 | + JUNIT COMPILATION SECTION | |
929 | + ========================= | |
930 | + --> | |
931 | + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> | |
932 | + <mkdir dir="${build.test.classes.dir}"/> | |
933 | + </target> | |
934 | + <target name="-pre-compile-test"> | |
935 | + <!-- Empty placeholder for easier customization. --> | |
936 | + <!-- You can override this target in the ../build.xml file. --> | |
937 | + </target> | |
938 | + <target if="do.depend.true" name="-compile-test-depend"> | |
939 | + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | |
940 | + </target> | |
941 | + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | |
942 | + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/> | |
943 | + <copy todir="${build.test.classes.dir}"> | |
944 | + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
945 | + </copy> | |
946 | + </target> | |
947 | + <target name="-post-compile-test"> | |
948 | + <!-- Empty placeholder for easier customization. --> | |
949 | + <!-- You can override this target in the ../build.xml file. --> | |
950 | + </target> | |
951 | + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | |
952 | + <target name="-pre-compile-test-single"> | |
953 | + <!-- Empty placeholder for easier customization. --> | |
954 | + <!-- You can override this target in the ../build.xml file. --> | |
955 | + </target> | |
956 | + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | |
957 | + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
958 | + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | |
959 | + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> | |
960 | + <copy todir="${build.test.classes.dir}"> | |
961 | + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
962 | + </copy> | |
963 | + </target> | |
964 | + <target name="-post-compile-test-single"> | |
965 | + <!-- Empty placeholder for easier customization. --> | |
966 | + <!-- You can override this target in the ../build.xml file. --> | |
967 | + </target> | |
968 | + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> | |
969 | + <!-- | |
970 | + ======================= | |
971 | + JUNIT EXECUTION SECTION | |
972 | + ======================= | |
973 | + --> | |
974 | + <target depends="init" if="have.tests" name="-pre-test-run"> | |
975 | + <mkdir dir="${build.test.results.dir}"/> | |
976 | + </target> | |
977 | + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> | |
978 | + <j2seproject3:junit testincludes="**/*Test.java"/> | |
979 | + </target> | |
980 | + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> | |
981 | + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
982 | + </target> | |
983 | + <target depends="init" if="have.tests" name="test-report"/> | |
984 | + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> | |
985 | + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> | |
986 | + <target depends="init" if="have.tests" name="-pre-test-run-single"> | |
987 | + <mkdir dir="${build.test.results.dir}"/> | |
988 | + </target> | |
989 | + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> | |
990 | + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | |
991 | + <j2seproject3:junit excludes="" includes="${test.includes}"/> | |
992 | + </target> | |
993 | + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | |
994 | + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
995 | + </target> | |
996 | + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> | |
997 | + <!-- | |
998 | + ======================= | |
999 | + JUNIT DEBUGGING SECTION | |
1000 | + ======================= | |
1001 | + --> | |
1002 | + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> | |
1003 | + <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | |
1004 | + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> | |
1005 | + <delete file="${test.report.file}"/> | |
1006 | + <mkdir dir="${build.test.results.dir}"/> | |
1007 | + <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}"> | |
1008 | + <customize> | |
1009 | + <syspropertyset> | |
1010 | + <propertyref prefix="test-sys-prop."/> | |
1011 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
1012 | + </syspropertyset> | |
1013 | + <arg value="${test.class}"/> | |
1014 | + <arg value="showoutput=true"/> | |
1015 | + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> | |
1016 | + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> | |
1017 | + </customize> | |
1018 | + </j2seproject3:debug> | |
1019 | + </target> | |
1020 | + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | |
1021 | + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | |
1022 | + </target> | |
1023 | + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | |
1024 | + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> | |
1025 | + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | |
1026 | + </target> | |
1027 | + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | |
1028 | + <!-- | |
1029 | + ========================= | |
1030 | + APPLET EXECUTION SECTION | |
1031 | + ========================= | |
1032 | + --> | |
1033 | + <target depends="init,compile-single" name="run-applet"> | |
1034 | + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1035 | + <j2seproject1:java classname="sun.applet.AppletViewer"> | |
1036 | + <customize> | |
1037 | + <arg value="${applet.url}"/> | |
1038 | + </customize> | |
1039 | + </j2seproject1:java> | |
1040 | + </target> | |
1041 | + <!-- | |
1042 | + ========================= | |
1043 | + APPLET DEBUGGING SECTION | |
1044 | + ========================= | |
1045 | + --> | |
1046 | + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> | |
1047 | + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1048 | + <j2seproject3:debug classname="sun.applet.AppletViewer"> | |
1049 | + <customize> | |
1050 | + <arg value="${applet.url}"/> | |
1051 | + </customize> | |
1052 | + </j2seproject3:debug> | |
1053 | + </target> | |
1054 | + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> | |
1055 | + <!-- | |
1056 | + =============== | |
1057 | + CLEANUP SECTION | |
1058 | + =============== | |
1059 | + --> | |
1060 | + <target name="-deps-clean-init" unless="built-clean.properties"> | |
1061 | + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> | |
1062 | + <delete file="${built-clean.properties}" quiet="true"/> | |
1063 | + </target> | |
1064 | + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> | |
1065 | + <echo level="warn" message="Cycle detected: TextKeyMatcher was already built"/> | |
1066 | + </target> | |
1067 | + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> | |
1068 | + <mkdir dir="${build.dir}"/> | |
1069 | + <touch file="${built-clean.properties}" verbose="false"/> | |
1070 | + <property file="${built-clean.properties}" prefix="already.built.clean."/> | |
1071 | + <antcall target="-warn-already-built-clean"/> | |
1072 | + <propertyfile file="${built-clean.properties}"> | |
1073 | + <entry key="${basedir}" value=""/> | |
1074 | + </propertyfile> | |
1075 | + </target> | |
1076 | + <target depends="init" name="-do-clean"> | |
1077 | + <delete dir="${build.dir}"/> | |
1078 | + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> | |
1079 | + </target> | |
1080 | + <target name="-post-clean"> | |
1081 | + <!-- Empty placeholder for easier customization. --> | |
1082 | + <!-- You can override this target in the ../build.xml file. --> | |
1083 | + </target> | |
1084 | + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | |
1085 | + <target name="-check-call-dep"> | |
1086 | + <property file="${call.built.properties}" prefix="already.built."/> | |
1087 | + <condition property="should.call.dep"> | |
1088 | + <not> | |
1089 | + <isset property="already.built.${call.subproject}"/> | |
1090 | + </not> | |
1091 | + </condition> | |
1092 | + </target> | |
1093 | + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> | |
1094 | + <ant antfile="${call.script}" inheritall="false" target="${call.target}"> | |
1095 | + <propertyset> | |
1096 | + <propertyref prefix="transfer."/> | |
1097 | + <mapper from="transfer.*" to="*" type="glob"/> | |
1098 | + </propertyset> | |
1099 | + </ant> | |
1100 | + </target> | |
1101 | +</project> |
@@ -1,8 +1,8 @@ | ||
1 | -build.xml.data.CRC32=6017bbec | |
2 | -build.xml.script.CRC32=269ca5bc | |
3 | -build.xml.stylesheet.CRC32=28e38971@1.44.1.45 | |
4 | -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. | |
5 | -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. | |
6 | -nbproject/build-impl.xml.data.CRC32=6017bbec | |
7 | -nbproject/build-impl.xml.script.CRC32=5c8c3d02 | |
8 | -nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45 | |
1 | +build.xml.data.CRC32=6017bbec | |
2 | +build.xml.script.CRC32=269ca5bc | |
3 | +build.xml.stylesheet.CRC32=28e38971@1.44.1.45 | |
4 | +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. | |
5 | +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. | |
6 | +nbproject/build-impl.xml.data.CRC32=6017bbec | |
7 | +nbproject/build-impl.xml.script.CRC32=5c8c3d02 | |
8 | +nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45 |
@@ -1,91 +1,91 @@ | ||
1 | -annotation.processing.enabled=true | |
2 | -annotation.processing.enabled.in.editor=false | |
3 | -annotation.processing.run.all.processors=true | |
4 | -ant.customtasks.libs=JWSAntTasks | |
5 | -application.desc=Text Key Matcher | |
6 | -application.homepage=http://sourceforge.jp/users/seraphy/pf/ | |
7 | -application.title=TextKeyMatcher | |
8 | -application.vendor=seraphyware | |
9 | -build.classes.dir=${build.dir}/classes | |
10 | -build.classes.excludes=**/*.java,**/*.form | |
11 | -# This directory is removed when the project is cleaned: | |
12 | -build.dir=build | |
13 | -build.generated.dir=${build.dir}/generated | |
14 | -build.generated.sources.dir=${build.dir}/generated-sources | |
15 | -# Only compile against the classpath explicitly listed here: | |
16 | -build.sysclasspath=ignore | |
17 | -build.test.classes.dir=${build.dir}/test/classes | |
18 | -build.test.results.dir=${build.dir}/test/results | |
19 | -debug.classpath=\ | |
20 | - ${run.classpath} | |
21 | -debug.test.classpath=\ | |
22 | - ${run.test.classpath} | |
23 | -# This directory is removed when the project is cleaned: | |
24 | -dist.dir=dist | |
25 | -dist.jar=${dist.dir}/TextKeyMatcher.jar | |
26 | -dist.javadoc.dir=${dist.dir}/javadoc | |
27 | -endorsed.classpath= | |
28 | -excludes= | |
29 | -file.reference.AppleJavaExtensions.jar=lib/AppleJavaExtensions.jar | |
30 | -file.reference.commons-lang3-3.0.1.jar=lib/commons-lang3-3.0.1.jar | |
31 | -file.reference.javaws.jar=/System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/javaws.jar | |
32 | -includes=** | |
33 | -jar.archive.disabled=${jnlp.enabled} | |
34 | -jar.compress=true | |
35 | -jar.index=${jnlp.enabled} | |
36 | -javac.classpath=\ | |
37 | - ${libs.beans-binding.classpath}:\ | |
38 | - ${libs.BSAF1.9.classpath}:\ | |
39 | - ${file.reference.AppleJavaExtensions.jar}:\ | |
40 | - ${libs.swing-layout.classpath}:\ | |
41 | - ${file.reference.commons-lang3-3.0.1.jar}:\ | |
42 | - ${libs.protobuf-2.4.1.classpath} | |
43 | -# Space-separated list of extra javac options | |
44 | -javac.compilerargs=-Xlint:unchecked | |
45 | -javac.deprecation=true | |
46 | -javac.processorpath=\ | |
47 | - ${javac.classpath} | |
48 | -javac.source=1.6 | |
49 | -javac.target=1.6 | |
50 | -javac.test.classpath=\ | |
51 | - ${javac.classpath}:\ | |
52 | - ${build.classes.dir} | |
53 | -javadoc.additionalparam= | |
54 | -javadoc.author=false | |
55 | -javadoc.encoding=${source.encoding} | |
56 | -javadoc.noindex=false | |
57 | -javadoc.nonavbar=false | |
58 | -javadoc.notree=false | |
59 | -javadoc.private=false | |
60 | -javadoc.splitindex=true | |
61 | -javadoc.use=true | |
62 | -javadoc.version=false | |
63 | -javadoc.windowtitle= | |
64 | -jnlp.codebase.type=web | |
65 | -jnlp.codebase.url=$$$$codebase | |
66 | -jnlp.descriptor=application | |
67 | -jnlp.enabled=false | |
68 | -jnlp.mixed.code=default | |
69 | -jnlp.offline-allowed=true | |
70 | -jnlp.signed=false | |
71 | -jnlp.signing= | |
72 | -jnlp.signing.alias= | |
73 | -jnlp.signing.keystore= | |
74 | -main.class=textkeymatcher.TextKeyMatcherApp | |
75 | -manifest.file=manifest.mf | |
76 | -meta.inf.dir=${src.dir}/META-INF | |
77 | -mkdist.disabled=false | |
78 | -platform.active=JDK_1.6 | |
79 | -run.classpath=\ | |
80 | - ${javac.classpath}:\ | |
81 | - ${build.classes.dir} | |
82 | -# Space-separated list of JVM arguments used when running the project | |
83 | -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value | |
84 | -# or test-sys-prop.name=value to set system properties for unit tests): | |
85 | -run.jvmargs= | |
86 | -run.test.classpath=\ | |
87 | - ${javac.test.classpath}:\ | |
88 | - ${build.test.classes.dir} | |
89 | -source.encoding=UTF-8 | |
90 | -src.dir=src | |
91 | -test.src.dir=test | |
1 | +annotation.processing.enabled=true | |
2 | +annotation.processing.enabled.in.editor=false | |
3 | +annotation.processing.run.all.processors=true | |
4 | +ant.customtasks.libs=JWSAntTasks | |
5 | +application.desc=Text Key Matcher | |
6 | +application.homepage=http://sourceforge.jp/users/seraphy/pf/ | |
7 | +application.title=TextKeyMatcher | |
8 | +application.vendor=seraphyware | |
9 | +build.classes.dir=${build.dir}/classes | |
10 | +build.classes.excludes=**/*.java,**/*.form | |
11 | +# This directory is removed when the project is cleaned: | |
12 | +build.dir=build | |
13 | +build.generated.dir=${build.dir}/generated | |
14 | +build.generated.sources.dir=${build.dir}/generated-sources | |
15 | +# Only compile against the classpath explicitly listed here: | |
16 | +build.sysclasspath=ignore | |
17 | +build.test.classes.dir=${build.dir}/test/classes | |
18 | +build.test.results.dir=${build.dir}/test/results | |
19 | +debug.classpath=\ | |
20 | + ${run.classpath} | |
21 | +debug.test.classpath=\ | |
22 | + ${run.test.classpath} | |
23 | +# This directory is removed when the project is cleaned: | |
24 | +dist.dir=dist | |
25 | +dist.jar=${dist.dir}/TextKeyMatcher.jar | |
26 | +dist.javadoc.dir=${dist.dir}/javadoc | |
27 | +endorsed.classpath= | |
28 | +excludes= | |
29 | +file.reference.AppleJavaExtensions.jar=lib/AppleJavaExtensions.jar | |
30 | +file.reference.commons-lang3-3.0.1.jar=lib/commons-lang3-3.0.1.jar | |
31 | +file.reference.javaws.jar=/System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/javaws.jar | |
32 | +includes=** | |
33 | +jar.archive.disabled=${jnlp.enabled} | |
34 | +jar.compress=true | |
35 | +jar.index=${jnlp.enabled} | |
36 | +javac.classpath=\ | |
37 | + ${libs.beans-binding.classpath}:\ | |
38 | + ${libs.BSAF1.9.classpath}:\ | |
39 | + ${file.reference.AppleJavaExtensions.jar}:\ | |
40 | + ${libs.swing-layout.classpath}:\ | |
41 | + ${file.reference.commons-lang3-3.0.1.jar}:\ | |
42 | + ${libs.protobuf-2.4.1.classpath} | |
43 | +# Space-separated list of extra javac options | |
44 | +javac.compilerargs=-Xlint:unchecked | |
45 | +javac.deprecation=true | |
46 | +javac.processorpath=\ | |
47 | + ${javac.classpath} | |
48 | +javac.source=1.6 | |
49 | +javac.target=1.6 | |
50 | +javac.test.classpath=\ | |
51 | + ${javac.classpath}:\ | |
52 | + ${build.classes.dir} | |
53 | +javadoc.additionalparam= | |
54 | +javadoc.author=false | |
55 | +javadoc.encoding=${source.encoding} | |
56 | +javadoc.noindex=false | |
57 | +javadoc.nonavbar=false | |
58 | +javadoc.notree=false | |
59 | +javadoc.private=false | |
60 | +javadoc.splitindex=true | |
61 | +javadoc.use=true | |
62 | +javadoc.version=false | |
63 | +javadoc.windowtitle= | |
64 | +jnlp.codebase.type=web | |
65 | +jnlp.codebase.url=$$$$codebase | |
66 | +jnlp.descriptor=application | |
67 | +jnlp.enabled=false | |
68 | +jnlp.mixed.code=default | |
69 | +jnlp.offline-allowed=true | |
70 | +jnlp.signed=false | |
71 | +jnlp.signing= | |
72 | +jnlp.signing.alias= | |
73 | +jnlp.signing.keystore= | |
74 | +main.class=textkeymatcher.TextKeyMatcherApp | |
75 | +manifest.file=manifest.mf | |
76 | +meta.inf.dir=${src.dir}/META-INF | |
77 | +mkdist.disabled=false | |
78 | +platform.active=JDK_1.6 | |
79 | +run.classpath=\ | |
80 | + ${javac.classpath}:\ | |
81 | + ${build.classes.dir} | |
82 | +# Space-separated list of JVM arguments used when running the project | |
83 | +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value | |
84 | +# or test-sys-prop.name=value to set system properties for unit tests): | |
85 | +run.jvmargs= | |
86 | +run.test.classpath=\ | |
87 | + ${javac.test.classpath}:\ | |
88 | + ${build.test.classes.dir} | |
89 | +source.encoding=UTF-8 | |
90 | +src.dir=src | |
91 | +test.src.dir=test |
@@ -1,29 +1,29 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<project xmlns="http://www.netbeans.org/ns/project/1"> | |
3 | - <type>org.netbeans.modules.java.j2seproject</type> | |
4 | - <configuration> | |
5 | - <buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1"> | |
6 | - <extension file="jnlp-impl.xml" id="jws"> | |
7 | - <dependency dependsOn="jnlp" target="-post-jar"/> | |
8 | - <dependency dependsOn="jnlp" target="jar"/> | |
9 | - </extension> | |
10 | - </buildExtensions> | |
11 | - <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> | |
12 | - <name>TextKeyMatcher</name> | |
13 | - <minimum-ant-version>1.6.5</minimum-ant-version> | |
14 | - <explicit-platform explicit-source-supported="true"/> | |
15 | - <source-roots> | |
16 | - <root id="src.dir"/> | |
17 | - </source-roots> | |
18 | - <test-roots> | |
19 | - <root id="test.src.dir"/> | |
20 | - </test-roots> | |
21 | - </data> | |
22 | - <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1"> | |
23 | - <definitions>./lib/nblibraries.properties</definitions> | |
24 | - </libraries> | |
25 | - <swingapp xmlns="http://www.netbeans.org/ns/form-swingapp/1"> | |
26 | - <application-class name="textkeymatcher.TextKeyMatcherApp"/> | |
27 | - </swingapp> | |
28 | - </configuration> | |
29 | -</project> | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project xmlns="http://www.netbeans.org/ns/project/1"> | |
3 | + <type>org.netbeans.modules.java.j2seproject</type> | |
4 | + <configuration> | |
5 | + <buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1"> | |
6 | + <extension file="jnlp-impl.xml" id="jws"> | |
7 | + <dependency dependsOn="jnlp" target="-post-jar"/> | |
8 | + <dependency dependsOn="jnlp" target="jar"/> | |
9 | + </extension> | |
10 | + </buildExtensions> | |
11 | + <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> | |
12 | + <name>TextKeyMatcher</name> | |
13 | + <minimum-ant-version>1.6.5</minimum-ant-version> | |
14 | + <explicit-platform explicit-source-supported="true"/> | |
15 | + <source-roots> | |
16 | + <root id="src.dir"/> | |
17 | + </source-roots> | |
18 | + <test-roots> | |
19 | + <root id="test.src.dir"/> | |
20 | + </test-roots> | |
21 | + </data> | |
22 | + <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1"> | |
23 | + <definitions>./lib/nblibraries.properties</definitions> | |
24 | + </libraries> | |
25 | + <swingapp xmlns="http://www.netbeans.org/ns/form-swingapp/1"> | |
26 | + <application-class name="textkeymatcher.TextKeyMatcherApp"/> | |
27 | + </swingapp> | |
28 | + </configuration> | |
29 | +</project> |