hayashi lib.
java
Revisión | b30356bf0b80e45e100dbcf3a16b317bf1bd7b88 (tree) |
---|---|
Tiempo | 2017-11-03 10:44:22 |
Autor | ![]() |
Commiter | hayashi |
JavaMail
@@ -0,0 +1,3 @@ | ||
1 | +Manifest-Version: 1.0 | |
2 | +X-COMMENT: Main-Class will be added automatically by build | |
3 | + |
@@ -0,0 +1,73 @@ | ||
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="hayashi" default="default" basedir="."> | |
11 | + <description>Builds, tests, and runs the project hayashi.</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: JAR building | |
55 | + run: execution of project | |
56 | + -javadoc-build: Javadoc generation | |
57 | + test-report: JUnit report generation | |
58 | + | |
59 | + An example of overriding the target for project execution could look like this: | |
60 | + | |
61 | + <target name="run" depends="hayashi-impl.jar"> | |
62 | + <exec dir="bin" executable="launcher.exe"> | |
63 | + <arg file="${dist.jar}"/> | |
64 | + </exec> | |
65 | + </target> | |
66 | + | |
67 | + Notice that the overridden target depends on the jar target and not only on | |
68 | + the compile target as the regular run target does. Again, for a list of available | |
69 | + properties which you can use, check the target you are overriding in the | |
70 | + nbproject/build-impl.xml file. | |
71 | + | |
72 | + --> | |
73 | +</project> |
@@ -0,0 +1,1420 @@ | ||
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 | + - test compilation | |
16 | + - test execution | |
17 | + - test 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="hayashi-impl"> | |
23 | + <fail message="Please build using Ant 1.8.0 or higher."> | |
24 | + <condition> | |
25 | + <not> | |
26 | + <antversion atleast="1.8.0"/> | |
27 | + </not> | |
28 | + </condition> | |
29 | + </fail> | |
30 | + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> | |
31 | + <!-- | |
32 | + ====================== | |
33 | + INITIALIZATION SECTION | |
34 | + ====================== | |
35 | + --> | |
36 | + <target name="-pre-init"> | |
37 | + <!-- Empty placeholder for easier customization. --> | |
38 | + <!-- You can override this target in the ../build.xml file. --> | |
39 | + </target> | |
40 | + <target depends="-pre-init" name="-init-private"> | |
41 | + <property file="nbproject/private/config.properties"/> | |
42 | + <property file="nbproject/private/configs/${config}.properties"/> | |
43 | + <property file="nbproject/private/private.properties"/> | |
44 | + </target> | |
45 | + <target depends="-pre-init,-init-private" name="-init-user"> | |
46 | + <property file="${user.properties.file}"/> | |
47 | + <!-- The two properties below are usually overridden --> | |
48 | + <!-- by the active platform. Just a fallback. --> | |
49 | + <property name="default.javac.source" value="1.6"/> | |
50 | + <property name="default.javac.target" value="1.6"/> | |
51 | + </target> | |
52 | + <target depends="-pre-init,-init-private,-init-user" name="-init-project"> | |
53 | + <property file="nbproject/configs/${config}.properties"/> | |
54 | + <property file="nbproject/project.properties"/> | |
55 | + </target> | |
56 | + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> | |
57 | + <property name="platform.java" value="${java.home}/bin/java"/> | |
58 | + <available file="${manifest.file}" property="manifest.available"/> | |
59 | + <condition property="splashscreen.available"> | |
60 | + <and> | |
61 | + <not> | |
62 | + <equals arg1="${application.splash}" arg2="" trim="true"/> | |
63 | + </not> | |
64 | + <available file="${application.splash}"/> | |
65 | + </and> | |
66 | + </condition> | |
67 | + <condition property="main.class.available"> | |
68 | + <and> | |
69 | + <isset property="main.class"/> | |
70 | + <not> | |
71 | + <equals arg1="${main.class}" arg2="" trim="true"/> | |
72 | + </not> | |
73 | + </and> | |
74 | + </condition> | |
75 | + <condition property="profile.available"> | |
76 | + <and> | |
77 | + <isset property="javac.profile"/> | |
78 | + <length length="0" string="${javac.profile}" when="greater"/> | |
79 | + <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/> | |
80 | + </and> | |
81 | + </condition> | |
82 | + <condition property="do.archive"> | |
83 | + <or> | |
84 | + <not> | |
85 | + <istrue value="${jar.archive.disabled}"/> | |
86 | + </not> | |
87 | + <istrue value="${not.archive.disabled}"/> | |
88 | + </or> | |
89 | + </condition> | |
90 | + <condition property="do.mkdist"> | |
91 | + <and> | |
92 | + <isset property="do.archive"/> | |
93 | + <isset property="libs.CopyLibs.classpath"/> | |
94 | + <not> | |
95 | + <istrue value="${mkdist.disabled}"/> | |
96 | + </not> | |
97 | + </and> | |
98 | + </condition> | |
99 | + <condition property="do.archive+manifest.available"> | |
100 | + <and> | |
101 | + <isset property="manifest.available"/> | |
102 | + <istrue value="${do.archive}"/> | |
103 | + </and> | |
104 | + </condition> | |
105 | + <condition property="do.archive+main.class.available"> | |
106 | + <and> | |
107 | + <isset property="main.class.available"/> | |
108 | + <istrue value="${do.archive}"/> | |
109 | + </and> | |
110 | + </condition> | |
111 | + <condition property="do.archive+splashscreen.available"> | |
112 | + <and> | |
113 | + <isset property="splashscreen.available"/> | |
114 | + <istrue value="${do.archive}"/> | |
115 | + </and> | |
116 | + </condition> | |
117 | + <condition property="do.archive+profile.available"> | |
118 | + <and> | |
119 | + <isset property="profile.available"/> | |
120 | + <istrue value="${do.archive}"/> | |
121 | + </and> | |
122 | + </condition> | |
123 | + <condition property="have.tests"> | |
124 | + <or> | |
125 | + <available file="${test.src.dir}"/> | |
126 | + </or> | |
127 | + </condition> | |
128 | + <condition property="have.sources"> | |
129 | + <or> | |
130 | + <available file="${src.dir}"/> | |
131 | + </or> | |
132 | + </condition> | |
133 | + <condition property="netbeans.home+have.tests"> | |
134 | + <and> | |
135 | + <isset property="netbeans.home"/> | |
136 | + <isset property="have.tests"/> | |
137 | + </and> | |
138 | + </condition> | |
139 | + <condition property="no.javadoc.preview"> | |
140 | + <and> | |
141 | + <isset property="javadoc.preview"/> | |
142 | + <isfalse value="${javadoc.preview}"/> | |
143 | + </and> | |
144 | + </condition> | |
145 | + <property name="run.jvmargs" value=""/> | |
146 | + <property name="run.jvmargs.ide" value=""/> | |
147 | + <property name="javac.compilerargs" value=""/> | |
148 | + <property name="work.dir" value="${basedir}"/> | |
149 | + <condition property="no.deps"> | |
150 | + <and> | |
151 | + <istrue value="${no.dependencies}"/> | |
152 | + </and> | |
153 | + </condition> | |
154 | + <property name="javac.debug" value="true"/> | |
155 | + <property name="javadoc.preview" value="true"/> | |
156 | + <property name="application.args" value=""/> | |
157 | + <property name="source.encoding" value="${file.encoding}"/> | |
158 | + <property name="runtime.encoding" value="${source.encoding}"/> | |
159 | + <property name="manifest.encoding" value="${source.encoding}"/> | |
160 | + <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | |
161 | + <and> | |
162 | + <isset property="javadoc.encoding"/> | |
163 | + <not> | |
164 | + <equals arg1="${javadoc.encoding}" arg2=""/> | |
165 | + </not> | |
166 | + </and> | |
167 | + </condition> | |
168 | + <property name="javadoc.encoding.used" value="${source.encoding}"/> | |
169 | + <property name="includes" value="**"/> | |
170 | + <property name="excludes" value=""/> | |
171 | + <property name="do.depend" value="false"/> | |
172 | + <condition property="do.depend.true"> | |
173 | + <istrue value="${do.depend}"/> | |
174 | + </condition> | |
175 | + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> | |
176 | + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> | |
177 | + <and> | |
178 | + <isset property="endorsed.classpath"/> | |
179 | + <not> | |
180 | + <equals arg1="${endorsed.classpath}" arg2="" trim="true"/> | |
181 | + </not> | |
182 | + </and> | |
183 | + </condition> | |
184 | + <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}"> | |
185 | + <isset property="profile.available"/> | |
186 | + </condition> | |
187 | + <condition else="false" property="jdkBug6558476"> | |
188 | + <and> | |
189 | + <matches pattern="1\.[56]" string="${java.specification.version}"/> | |
190 | + <not> | |
191 | + <os family="unix"/> | |
192 | + </not> | |
193 | + </and> | |
194 | + </condition> | |
195 | + <condition else="false" property="javac.fork"> | |
196 | + <or> | |
197 | + <istrue value="${jdkBug6558476}"/> | |
198 | + <istrue value="${javac.external.vm}"/> | |
199 | + </or> | |
200 | + </condition> | |
201 | + <property name="jar.index" value="false"/> | |
202 | + <property name="jar.index.metainf" value="${jar.index}"/> | |
203 | + <property name="copylibs.rebase" value="true"/> | |
204 | + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> | |
205 | + <condition property="junit.available"> | |
206 | + <or> | |
207 | + <available classname="org.junit.Test" classpath="${run.test.classpath}"/> | |
208 | + <available classname="junit.framework.Test" classpath="${run.test.classpath}"/> | |
209 | + </or> | |
210 | + </condition> | |
211 | + <condition property="testng.available"> | |
212 | + <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/> | |
213 | + </condition> | |
214 | + <condition property="junit+testng.available"> | |
215 | + <and> | |
216 | + <istrue value="${junit.available}"/> | |
217 | + <istrue value="${testng.available}"/> | |
218 | + </and> | |
219 | + </condition> | |
220 | + <condition else="testng" property="testng.mode" value="mixed"> | |
221 | + <istrue value="${junit+testng.available}"/> | |
222 | + </condition> | |
223 | + <condition else="" property="testng.debug.mode" value="-mixed"> | |
224 | + <istrue value="${junit+testng.available}"/> | |
225 | + </condition> | |
226 | + <property name="java.failonerror" value="true"/> | |
227 | + </target> | |
228 | + <target name="-post-init"> | |
229 | + <!-- Empty placeholder for easier customization. --> | |
230 | + <!-- You can override this target in the ../build.xml file. --> | |
231 | + </target> | |
232 | + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> | |
233 | + <fail unless="src.dir">Must set src.dir</fail> | |
234 | + <fail unless="test.src.dir">Must set test.src.dir</fail> | |
235 | + <fail unless="build.dir">Must set build.dir</fail> | |
236 | + <fail unless="dist.dir">Must set dist.dir</fail> | |
237 | + <fail unless="build.classes.dir">Must set build.classes.dir</fail> | |
238 | + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> | |
239 | + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> | |
240 | + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> | |
241 | + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> | |
242 | + <fail unless="dist.jar">Must set dist.jar</fail> | |
243 | + </target> | |
244 | + <target name="-init-macrodef-property"> | |
245 | + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
246 | + <attribute name="name"/> | |
247 | + <attribute name="value"/> | |
248 | + <sequential> | |
249 | + <property name="@{name}" value="${@{value}}"/> | |
250 | + </sequential> | |
251 | + </macrodef> | |
252 | + </target> | |
253 | + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> | |
254 | + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
255 | + <attribute default="${src.dir}" name="srcdir"/> | |
256 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
257 | + <attribute default="${javac.classpath}" name="classpath"/> | |
258 | + <attribute default="${javac.processorpath}" name="processorpath"/> | |
259 | + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
260 | + <attribute default="${includes}" name="includes"/> | |
261 | + <attribute default="${excludes}" name="excludes"/> | |
262 | + <attribute default="${javac.debug}" name="debug"/> | |
263 | + <attribute default="${empty.dir}" name="sourcepath"/> | |
264 | + <attribute default="${empty.dir}" name="gensrcdir"/> | |
265 | + <element name="customize" optional="true"/> | |
266 | + <sequential> | |
267 | + <property location="${build.dir}/empty" name="empty.dir"/> | |
268 | + <mkdir dir="${empty.dir}"/> | |
269 | + <mkdir dir="@{apgeneratedsrcdir}"/> | |
270 | + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
271 | + <src> | |
272 | + <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
273 | + <include name="*"/> | |
274 | + </dirset> | |
275 | + </src> | |
276 | + <classpath> | |
277 | + <path path="@{classpath}"/> | |
278 | + </classpath> | |
279 | + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
280 | + <compilerarg line="${javac.profile.cmd.line.arg}"/> | |
281 | + <compilerarg line="${javac.compilerargs}"/> | |
282 | + <compilerarg value="-processorpath"/> | |
283 | + <compilerarg path="@{processorpath}:${empty.dir}"/> | |
284 | + <compilerarg line="${ap.processors.internal}"/> | |
285 | + <compilerarg line="${annotation.processing.processor.options}"/> | |
286 | + <compilerarg value="-s"/> | |
287 | + <compilerarg path="@{apgeneratedsrcdir}"/> | |
288 | + <compilerarg line="${ap.proc.none.internal}"/> | |
289 | + <customize/> | |
290 | + </javac> | |
291 | + </sequential> | |
292 | + </macrodef> | |
293 | + </target> | |
294 | + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> | |
295 | + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
296 | + <attribute default="${src.dir}" name="srcdir"/> | |
297 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
298 | + <attribute default="${javac.classpath}" name="classpath"/> | |
299 | + <attribute default="${javac.processorpath}" name="processorpath"/> | |
300 | + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
301 | + <attribute default="${includes}" name="includes"/> | |
302 | + <attribute default="${excludes}" name="excludes"/> | |
303 | + <attribute default="${javac.debug}" name="debug"/> | |
304 | + <attribute default="${empty.dir}" name="sourcepath"/> | |
305 | + <attribute default="${empty.dir}" name="gensrcdir"/> | |
306 | + <element name="customize" optional="true"/> | |
307 | + <sequential> | |
308 | + <property location="${build.dir}/empty" name="empty.dir"/> | |
309 | + <mkdir dir="${empty.dir}"/> | |
310 | + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> | |
311 | + <src> | |
312 | + <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
313 | + <include name="*"/> | |
314 | + </dirset> | |
315 | + </src> | |
316 | + <classpath> | |
317 | + <path path="@{classpath}"/> | |
318 | + </classpath> | |
319 | + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
320 | + <compilerarg line="${javac.profile.cmd.line.arg}"/> | |
321 | + <compilerarg line="${javac.compilerargs}"/> | |
322 | + <customize/> | |
323 | + </javac> | |
324 | + </sequential> | |
325 | + </macrodef> | |
326 | + </target> | |
327 | + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> | |
328 | + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
329 | + <attribute default="${src.dir}" name="srcdir"/> | |
330 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
331 | + <attribute default="${javac.classpath}" name="classpath"/> | |
332 | + <sequential> | |
333 | + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> | |
334 | + <classpath> | |
335 | + <path path="@{classpath}"/> | |
336 | + </classpath> | |
337 | + </depend> | |
338 | + </sequential> | |
339 | + </macrodef> | |
340 | + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
341 | + <attribute default="${build.classes.dir}" name="destdir"/> | |
342 | + <sequential> | |
343 | + <fail unless="javac.includes">Must set javac.includes</fail> | |
344 | + <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> | |
345 | + <path> | |
346 | + <filelist dir="@{destdir}" files="${javac.includes}"/> | |
347 | + </path> | |
348 | + <globmapper from="*.java" to="*.class"/> | |
349 | + </pathconvert> | |
350 | + <tempfile deleteonexit="true" property="javac.includesfile.binary"/> | |
351 | + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> | |
352 | + <delete> | |
353 | + <files includesfile="${javac.includesfile.binary}"/> | |
354 | + </delete> | |
355 | + <delete> | |
356 | + <fileset file="${javac.includesfile.binary}"/> | |
357 | + </delete> | |
358 | + </sequential> | |
359 | + </macrodef> | |
360 | + </target> | |
361 | + <target if="${junit.available}" name="-init-macrodef-junit-init"> | |
362 | + <condition else="false" property="nb.junit.batch" value="true"> | |
363 | + <and> | |
364 | + <istrue value="${junit.available}"/> | |
365 | + <not> | |
366 | + <isset property="test.method"/> | |
367 | + </not> | |
368 | + </and> | |
369 | + </condition> | |
370 | + <condition else="false" property="nb.junit.single" value="true"> | |
371 | + <and> | |
372 | + <istrue value="${junit.available}"/> | |
373 | + <isset property="test.method"/> | |
374 | + </and> | |
375 | + </condition> | |
376 | + </target> | |
377 | + <target name="-init-test-properties"> | |
378 | + <property name="test.binaryincludes" value="<nothing>"/> | |
379 | + <property name="test.binarytestincludes" value=""/> | |
380 | + <property name="test.binaryexcludes" value=""/> | |
381 | + </target> | |
382 | + <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}"> | |
383 | + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
384 | + <attribute default="${includes}" name="includes"/> | |
385 | + <attribute default="${excludes}" name="excludes"/> | |
386 | + <attribute default="**" name="testincludes"/> | |
387 | + <attribute default="" name="testmethods"/> | |
388 | + <element name="customize" optional="true"/> | |
389 | + <sequential> | |
390 | + <property name="junit.forkmode" value="perTest"/> | |
391 | + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
392 | + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> | |
393 | + <syspropertyset> | |
394 | + <propertyref prefix="test-sys-prop."/> | |
395 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
396 | + </syspropertyset> | |
397 | + <formatter type="brief" usefile="false"/> | |
398 | + <formatter type="xml"/> | |
399 | + <jvmarg value="-ea"/> | |
400 | + <customize/> | |
401 | + </junit> | |
402 | + </sequential> | |
403 | + </macrodef> | |
404 | + </target> | |
405 | + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}"> | |
406 | + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
407 | + <attribute default="${includes}" name="includes"/> | |
408 | + <attribute default="${excludes}" name="excludes"/> | |
409 | + <attribute default="**" name="testincludes"/> | |
410 | + <attribute default="" name="testmethods"/> | |
411 | + <element name="customize" optional="true"/> | |
412 | + <sequential> | |
413 | + <property name="junit.forkmode" value="perTest"/> | |
414 | + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
415 | + <batchtest todir="${build.test.results.dir}"> | |
416 | + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | |
417 | + <filename name="@{testincludes}"/> | |
418 | + </fileset> | |
419 | + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}"> | |
420 | + <filename name="${test.binarytestincludes}"/> | |
421 | + </fileset> | |
422 | + </batchtest> | |
423 | + <syspropertyset> | |
424 | + <propertyref prefix="test-sys-prop."/> | |
425 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
426 | + </syspropertyset> | |
427 | + <formatter type="brief" usefile="false"/> | |
428 | + <formatter type="xml"/> | |
429 | + <jvmarg value="-ea"/> | |
430 | + <customize/> | |
431 | + </junit> | |
432 | + </sequential> | |
433 | + </macrodef> | |
434 | + </target> | |
435 | + <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/> | |
436 | + <target if="${testng.available}" name="-init-macrodef-testng"> | |
437 | + <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
438 | + <attribute default="${includes}" name="includes"/> | |
439 | + <attribute default="${excludes}" name="excludes"/> | |
440 | + <attribute default="**" name="testincludes"/> | |
441 | + <attribute default="" name="testmethods"/> | |
442 | + <element name="customize" optional="true"/> | |
443 | + <sequential> | |
444 | + <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}"> | |
445 | + <isset property="test.method"/> | |
446 | + </condition> | |
447 | + <union id="test.set"> | |
448 | + <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}"> | |
449 | + <filename name="@{testincludes}"/> | |
450 | + </fileset> | |
451 | + </union> | |
452 | + <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> | |
453 | + <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="hayashi" testname="TestNG tests" workingDir="${work.dir}"> | |
454 | + <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> | |
455 | + <propertyset> | |
456 | + <propertyref prefix="test-sys-prop."/> | |
457 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
458 | + </propertyset> | |
459 | + <customize/> | |
460 | + </testng> | |
461 | + </sequential> | |
462 | + </macrodef> | |
463 | + </target> | |
464 | + <target name="-init-macrodef-test-impl"> | |
465 | + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
466 | + <attribute default="${includes}" name="includes"/> | |
467 | + <attribute default="${excludes}" name="excludes"/> | |
468 | + <attribute default="**" name="testincludes"/> | |
469 | + <attribute default="" name="testmethods"/> | |
470 | + <element implicit="true" name="customize" optional="true"/> | |
471 | + <sequential> | |
472 | + <echo>No tests executed.</echo> | |
473 | + </sequential> | |
474 | + </macrodef> | |
475 | + </target> | |
476 | + <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl"> | |
477 | + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
478 | + <attribute default="${includes}" name="includes"/> | |
479 | + <attribute default="${excludes}" name="excludes"/> | |
480 | + <attribute default="**" name="testincludes"/> | |
481 | + <attribute default="" name="testmethods"/> | |
482 | + <element implicit="true" name="customize" optional="true"/> | |
483 | + <sequential> | |
484 | + <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
485 | + <customize/> | |
486 | + </j2seproject3:junit> | |
487 | + </sequential> | |
488 | + </macrodef> | |
489 | + </target> | |
490 | + <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl"> | |
491 | + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
492 | + <attribute default="${includes}" name="includes"/> | |
493 | + <attribute default="${excludes}" name="excludes"/> | |
494 | + <attribute default="**" name="testincludes"/> | |
495 | + <attribute default="" name="testmethods"/> | |
496 | + <element implicit="true" name="customize" optional="true"/> | |
497 | + <sequential> | |
498 | + <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
499 | + <customize/> | |
500 | + </j2seproject3:testng> | |
501 | + </sequential> | |
502 | + </macrodef> | |
503 | + </target> | |
504 | + <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test"> | |
505 | + <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
506 | + <attribute default="${includes}" name="includes"/> | |
507 | + <attribute default="${excludes}" name="excludes"/> | |
508 | + <attribute default="**" name="testincludes"/> | |
509 | + <attribute default="" name="testmethods"/> | |
510 | + <sequential> | |
511 | + <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
512 | + <customize> | |
513 | + <classpath> | |
514 | + <path path="${run.test.classpath}"/> | |
515 | + </classpath> | |
516 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
517 | + <jvmarg line="${run.jvmargs}"/> | |
518 | + <jvmarg line="${run.jvmargs.ide}"/> | |
519 | + </customize> | |
520 | + </j2seproject3:test-impl> | |
521 | + </sequential> | |
522 | + </macrodef> | |
523 | + </target> | |
524 | + <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}"> | |
525 | + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
526 | + <attribute default="${includes}" name="includes"/> | |
527 | + <attribute default="${excludes}" name="excludes"/> | |
528 | + <attribute default="**" name="testincludes"/> | |
529 | + <attribute default="" name="testmethods"/> | |
530 | + <element name="customize" optional="true"/> | |
531 | + <sequential> | |
532 | + <property name="junit.forkmode" value="perTest"/> | |
533 | + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
534 | + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> | |
535 | + <syspropertyset> | |
536 | + <propertyref prefix="test-sys-prop."/> | |
537 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
538 | + </syspropertyset> | |
539 | + <formatter type="brief" usefile="false"/> | |
540 | + <formatter type="xml"/> | |
541 | + <jvmarg value="-ea"/> | |
542 | + <jvmarg line="${debug-args-line}"/> | |
543 | + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
544 | + <customize/> | |
545 | + </junit> | |
546 | + </sequential> | |
547 | + </macrodef> | |
548 | + </target> | |
549 | + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch"> | |
550 | + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
551 | + <attribute default="${includes}" name="includes"/> | |
552 | + <attribute default="${excludes}" name="excludes"/> | |
553 | + <attribute default="**" name="testincludes"/> | |
554 | + <attribute default="" name="testmethods"/> | |
555 | + <element name="customize" optional="true"/> | |
556 | + <sequential> | |
557 | + <property name="junit.forkmode" value="perTest"/> | |
558 | + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
559 | + <batchtest todir="${build.test.results.dir}"> | |
560 | + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | |
561 | + <filename name="@{testincludes}"/> | |
562 | + </fileset> | |
563 | + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}"> | |
564 | + <filename name="${test.binarytestincludes}"/> | |
565 | + </fileset> | |
566 | + </batchtest> | |
567 | + <syspropertyset> | |
568 | + <propertyref prefix="test-sys-prop."/> | |
569 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
570 | + </syspropertyset> | |
571 | + <formatter type="brief" usefile="false"/> | |
572 | + <formatter type="xml"/> | |
573 | + <jvmarg value="-ea"/> | |
574 | + <jvmarg line="${debug-args-line}"/> | |
575 | + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
576 | + <customize/> | |
577 | + </junit> | |
578 | + </sequential> | |
579 | + </macrodef> | |
580 | + </target> | |
581 | + <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl"> | |
582 | + <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
583 | + <attribute default="${includes}" name="includes"/> | |
584 | + <attribute default="${excludes}" name="excludes"/> | |
585 | + <attribute default="**" name="testincludes"/> | |
586 | + <attribute default="" name="testmethods"/> | |
587 | + <element implicit="true" name="customize" optional="true"/> | |
588 | + <sequential> | |
589 | + <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
590 | + <customize/> | |
591 | + </j2seproject3:junit-debug> | |
592 | + </sequential> | |
593 | + </macrodef> | |
594 | + </target> | |
595 | + <target if="${testng.available}" name="-init-macrodef-testng-debug"> | |
596 | + <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
597 | + <attribute default="${main.class}" name="testClass"/> | |
598 | + <attribute default="" name="testMethod"/> | |
599 | + <element name="customize2" optional="true"/> | |
600 | + <sequential> | |
601 | + <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}"> | |
602 | + <isset property="test.method"/> | |
603 | + </condition> | |
604 | + <condition else="-suitename hayashi -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}"> | |
605 | + <matches pattern=".*\.xml" string="@{testClass}"/> | |
606 | + </condition> | |
607 | + <delete dir="${build.test.results.dir}" quiet="true"/> | |
608 | + <mkdir dir="${build.test.results.dir}"/> | |
609 | + <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}"> | |
610 | + <customize> | |
611 | + <customize2/> | |
612 | + <jvmarg value="-ea"/> | |
613 | + <arg line="${testng.debug.mode}"/> | |
614 | + <arg line="-d ${build.test.results.dir}"/> | |
615 | + <arg line="-listener org.testng.reporters.VerboseReporter"/> | |
616 | + <arg line="${testng.cmd.args}"/> | |
617 | + </customize> | |
618 | + </j2seproject3:debug> | |
619 | + </sequential> | |
620 | + </macrodef> | |
621 | + </target> | |
622 | + <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl"> | |
623 | + <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
624 | + <attribute default="${main.class}" name="testClass"/> | |
625 | + <attribute default="" name="testMethod"/> | |
626 | + <element implicit="true" name="customize2" optional="true"/> | |
627 | + <sequential> | |
628 | + <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}"> | |
629 | + <customize2/> | |
630 | + </j2seproject3:testng-debug> | |
631 | + </sequential> | |
632 | + </macrodef> | |
633 | + </target> | |
634 | + <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit"> | |
635 | + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
636 | + <attribute default="${includes}" name="includes"/> | |
637 | + <attribute default="${excludes}" name="excludes"/> | |
638 | + <attribute default="**" name="testincludes"/> | |
639 | + <attribute default="" name="testmethods"/> | |
640 | + <attribute default="${main.class}" name="testClass"/> | |
641 | + <attribute default="" name="testMethod"/> | |
642 | + <sequential> | |
643 | + <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}"> | |
644 | + <customize> | |
645 | + <classpath> | |
646 | + <path path="${run.test.classpath}"/> | |
647 | + </classpath> | |
648 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
649 | + <jvmarg line="${run.jvmargs}"/> | |
650 | + <jvmarg line="${run.jvmargs.ide}"/> | |
651 | + </customize> | |
652 | + </j2seproject3:test-debug-impl> | |
653 | + </sequential> | |
654 | + </macrodef> | |
655 | + </target> | |
656 | + <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng"> | |
657 | + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
658 | + <attribute default="${includes}" name="includes"/> | |
659 | + <attribute default="${excludes}" name="excludes"/> | |
660 | + <attribute default="**" name="testincludes"/> | |
661 | + <attribute default="" name="testmethods"/> | |
662 | + <attribute default="${main.class}" name="testClass"/> | |
663 | + <attribute default="" name="testMethod"/> | |
664 | + <sequential> | |
665 | + <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}"> | |
666 | + <customize2> | |
667 | + <syspropertyset> | |
668 | + <propertyref prefix="test-sys-prop."/> | |
669 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
670 | + </syspropertyset> | |
671 | + </customize2> | |
672 | + </j2seproject3:testng-debug-impl> | |
673 | + </sequential> | |
674 | + </macrodef> | |
675 | + </target> | |
676 | + <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/> | |
677 | + <!-- | |
678 | + pre NB7.2 profiling section; consider it deprecated | |
679 | + --> | |
680 | + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/> | |
681 | + <target if="profiler.info.jvmargs.agent" name="-profile-pre-init"> | |
682 | + <!-- Empty placeholder for easier customization. --> | |
683 | + <!-- You can override this target in the ../build.xml file. --> | |
684 | + </target> | |
685 | + <target if="profiler.info.jvmargs.agent" name="-profile-post-init"> | |
686 | + <!-- Empty placeholder for easier customization. --> | |
687 | + <!-- You can override this target in the ../build.xml file. --> | |
688 | + </target> | |
689 | + <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile"> | |
690 | + <macrodef name="resolve"> | |
691 | + <attribute name="name"/> | |
692 | + <attribute name="value"/> | |
693 | + <sequential> | |
694 | + <property name="@{name}" value="${env.@{value}}"/> | |
695 | + </sequential> | |
696 | + </macrodef> | |
697 | + <macrodef name="profile"> | |
698 | + <attribute default="${main.class}" name="classname"/> | |
699 | + <element name="customize" optional="true"/> | |
700 | + <sequential> | |
701 | + <property environment="env"/> | |
702 | + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> | |
703 | + <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}"> | |
704 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
705 | + <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
706 | + <jvmarg line="${profiler.info.jvmargs}"/> | |
707 | + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
708 | + <arg line="${application.args}"/> | |
709 | + <classpath> | |
710 | + <path path="${run.classpath}"/> | |
711 | + </classpath> | |
712 | + <syspropertyset> | |
713 | + <propertyref prefix="run-sys-prop."/> | |
714 | + <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
715 | + </syspropertyset> | |
716 | + <customize/> | |
717 | + </java> | |
718 | + </sequential> | |
719 | + </macrodef> | |
720 | + </target> | |
721 | + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check"> | |
722 | + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> | |
723 | + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> | |
724 | + </target> | |
725 | + <!-- | |
726 | + end of pre NB7.2 profiling section | |
727 | + --> | |
728 | + <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> | |
729 | + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
730 | + <attribute default="${main.class}" name="name"/> | |
731 | + <attribute default="${debug.classpath}" name="classpath"/> | |
732 | + <attribute default="" name="stopclassname"/> | |
733 | + <sequential> | |
734 | + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> | |
735 | + <classpath> | |
736 | + <path path="@{classpath}"/> | |
737 | + </classpath> | |
738 | + </nbjpdastart> | |
739 | + </sequential> | |
740 | + </macrodef> | |
741 | + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
742 | + <attribute default="${build.classes.dir}" name="dir"/> | |
743 | + <sequential> | |
744 | + <nbjpdareload> | |
745 | + <fileset dir="@{dir}" includes="${fix.classes}"> | |
746 | + <include name="${fix.includes}*.class"/> | |
747 | + </fileset> | |
748 | + </nbjpdareload> | |
749 | + </sequential> | |
750 | + </macrodef> | |
751 | + </target> | |
752 | + <target name="-init-debug-args"> | |
753 | + <property name="version-output" value="java version "${ant.java.version}"/> | |
754 | + <condition property="have-jdk-older-than-1.4"> | |
755 | + <or> | |
756 | + <contains string="${version-output}" substring="java version "1.0"/> | |
757 | + <contains string="${version-output}" substring="java version "1.1"/> | |
758 | + <contains string="${version-output}" substring="java version "1.2"/> | |
759 | + <contains string="${version-output}" substring="java version "1.3"/> | |
760 | + </or> | |
761 | + </condition> | |
762 | + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> | |
763 | + <istrue value="${have-jdk-older-than-1.4}"/> | |
764 | + </condition> | |
765 | + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> | |
766 | + <os family="windows"/> | |
767 | + </condition> | |
768 | + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> | |
769 | + <isset property="debug.transport"/> | |
770 | + </condition> | |
771 | + </target> | |
772 | + <target depends="-init-debug-args" name="-init-macrodef-debug"> | |
773 | + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
774 | + <attribute default="${main.class}" name="classname"/> | |
775 | + <attribute default="${debug.classpath}" name="classpath"/> | |
776 | + <element name="customize" optional="true"/> | |
777 | + <sequential> | |
778 | + <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> | |
779 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
780 | + <jvmarg line="${debug-args-line}"/> | |
781 | + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
782 | + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
783 | + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
784 | + <jvmarg line="${run.jvmargs}"/> | |
785 | + <jvmarg line="${run.jvmargs.ide}"/> | |
786 | + <classpath> | |
787 | + <path path="@{classpath}"/> | |
788 | + </classpath> | |
789 | + <syspropertyset> | |
790 | + <propertyref prefix="run-sys-prop."/> | |
791 | + <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
792 | + </syspropertyset> | |
793 | + <customize/> | |
794 | + </java> | |
795 | + </sequential> | |
796 | + </macrodef> | |
797 | + </target> | |
798 | + <target name="-init-macrodef-java"> | |
799 | + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
800 | + <attribute default="${main.class}" name="classname"/> | |
801 | + <attribute default="${run.classpath}" name="classpath"/> | |
802 | + <attribute default="jvm" name="jvm"/> | |
803 | + <element name="customize" optional="true"/> | |
804 | + <sequential> | |
805 | + <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> | |
806 | + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
807 | + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
808 | + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
809 | + <jvmarg line="${run.jvmargs}"/> | |
810 | + <jvmarg line="${run.jvmargs.ide}"/> | |
811 | + <classpath> | |
812 | + <path path="@{classpath}"/> | |
813 | + </classpath> | |
814 | + <syspropertyset> | |
815 | + <propertyref prefix="run-sys-prop."/> | |
816 | + <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
817 | + </syspropertyset> | |
818 | + <customize/> | |
819 | + </java> | |
820 | + </sequential> | |
821 | + </macrodef> | |
822 | + </target> | |
823 | + <target name="-init-macrodef-copylibs"> | |
824 | + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
825 | + <attribute default="${manifest.file}" name="manifest"/> | |
826 | + <element name="customize" optional="true"/> | |
827 | + <sequential> | |
828 | + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
829 | + <pathconvert property="run.classpath.without.build.classes.dir"> | |
830 | + <path path="${run.classpath}"/> | |
831 | + <map from="${build.classes.dir.resolved}" to=""/> | |
832 | + </pathconvert> | |
833 | + <pathconvert pathsep=" " property="jar.classpath"> | |
834 | + <path path="${run.classpath.without.build.classes.dir}"/> | |
835 | + <chainedmapper> | |
836 | + <flattenmapper/> | |
837 | + <filtermapper> | |
838 | + <replacestring from=" " to="%20"/> | |
839 | + </filtermapper> | |
840 | + <globmapper from="*" to="lib/*"/> | |
841 | + </chainedmapper> | |
842 | + </pathconvert> | |
843 | + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | |
844 | + <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | |
845 | + <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> | |
846 | + <manifest> | |
847 | + <attribute name="Class-Path" value="${jar.classpath}"/> | |
848 | + <customize/> | |
849 | + </manifest> | |
850 | + </copylibs> | |
851 | + </sequential> | |
852 | + </macrodef> | |
853 | + </target> | |
854 | + <target name="-init-presetdef-jar"> | |
855 | + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
856 | + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8"> | |
857 | + <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> | |
858 | + </jar> | |
859 | + </presetdef> | |
860 | + </target> | |
861 | + <target name="-init-ap-cmdline-properties"> | |
862 | + <property name="annotation.processing.enabled" value="true"/> | |
863 | + <property name="annotation.processing.processors.list" value=""/> | |
864 | + <property name="annotation.processing.processor.options" value=""/> | |
865 | + <property name="annotation.processing.run.all.processors" value="true"/> | |
866 | + <property name="javac.processorpath" value="${javac.classpath}"/> | |
867 | + <property name="javac.test.processorpath" value="${javac.test.classpath}"/> | |
868 | + <condition property="ap.supported.internal" value="true"> | |
869 | + <not> | |
870 | + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> | |
871 | + </not> | |
872 | + </condition> | |
873 | + </target> | |
874 | + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> | |
875 | + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> | |
876 | + <isfalse value="${annotation.processing.run.all.processors}"/> | |
877 | + </condition> | |
878 | + <condition else="" property="ap.proc.none.internal" value="-proc:none"> | |
879 | + <isfalse value="${annotation.processing.enabled}"/> | |
880 | + </condition> | |
881 | + </target> | |
882 | + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> | |
883 | + <property name="ap.cmd.line.internal" value=""/> | |
884 | + </target> | |
885 | + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/> | |
886 | + <!-- | |
887 | + =================== | |
888 | + COMPILATION SECTION | |
889 | + =================== | |
890 | + --> | |
891 | + <target name="-deps-jar-init" unless="built-jar.properties"> | |
892 | + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> | |
893 | + <delete file="${built-jar.properties}" quiet="true"/> | |
894 | + </target> | |
895 | + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> | |
896 | + <echo level="warn" message="Cycle detected: hayashi was already built"/> | |
897 | + </target> | |
898 | + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> | |
899 | + <mkdir dir="${build.dir}"/> | |
900 | + <touch file="${built-jar.properties}" verbose="false"/> | |
901 | + <property file="${built-jar.properties}" prefix="already.built.jar."/> | |
902 | + <antcall target="-warn-already-built-jar"/> | |
903 | + <propertyfile file="${built-jar.properties}"> | |
904 | + <entry key="${basedir}" value=""/> | |
905 | + </propertyfile> | |
906 | + </target> | |
907 | + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | |
908 | + <target depends="init" name="-check-automatic-build"> | |
909 | + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> | |
910 | + </target> | |
911 | + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> | |
912 | + <antcall target="clean"/> | |
913 | + </target> | |
914 | + <target depends="init,deps-jar" name="-pre-pre-compile"> | |
915 | + <mkdir dir="${build.classes.dir}"/> | |
916 | + </target> | |
917 | + <target name="-pre-compile"> | |
918 | + <!-- Empty placeholder for easier customization. --> | |
919 | + <!-- You can override this target in the ../build.xml file. --> | |
920 | + </target> | |
921 | + <target if="do.depend.true" name="-compile-depend"> | |
922 | + <pathconvert property="build.generated.subdirs"> | |
923 | + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
924 | + <include name="*"/> | |
925 | + </dirset> | |
926 | + </pathconvert> | |
927 | + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> | |
928 | + </target> | |
929 | + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> | |
930 | + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> | |
931 | + <copy todir="${build.classes.dir}"> | |
932 | + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
933 | + </copy> | |
934 | + </target> | |
935 | + <target if="has.persistence.xml" name="-copy-persistence-xml"> | |
936 | + <mkdir dir="${build.classes.dir}/META-INF"/> | |
937 | + <copy todir="${build.classes.dir}/META-INF"> | |
938 | + <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/> | |
939 | + </copy> | |
940 | + </target> | |
941 | + <target name="-post-compile"> | |
942 | + <!-- Empty placeholder for easier customization. --> | |
943 | + <!-- You can override this target in the ../build.xml file. --> | |
944 | + </target> | |
945 | + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | |
946 | + <target name="-pre-compile-single"> | |
947 | + <!-- Empty placeholder for easier customization. --> | |
948 | + <!-- You can override this target in the ../build.xml file. --> | |
949 | + </target> | |
950 | + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> | |
951 | + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
952 | + <j2seproject3:force-recompile/> | |
953 | + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> | |
954 | + </target> | |
955 | + <target name="-post-compile-single"> | |
956 | + <!-- Empty placeholder for easier customization. --> | |
957 | + <!-- You can override this target in the ../build.xml file. --> | |
958 | + </target> | |
959 | + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> | |
960 | + <!-- | |
961 | + ==================== | |
962 | + JAR BUILDING SECTION | |
963 | + ==================== | |
964 | + --> | |
965 | + <target depends="init" name="-pre-pre-jar"> | |
966 | + <dirname file="${dist.jar}" property="dist.jar.dir"/> | |
967 | + <mkdir dir="${dist.jar.dir}"/> | |
968 | + </target> | |
969 | + <target name="-pre-jar"> | |
970 | + <!-- Empty placeholder for easier customization. --> | |
971 | + <!-- You can override this target in the ../build.xml file. --> | |
972 | + </target> | |
973 | + <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available"> | |
974 | + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
975 | + <touch file="${tmp.manifest.file}" verbose="false"/> | |
976 | + </target> | |
977 | + <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> | |
978 | + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> | |
979 | + <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/> | |
980 | + </target> | |
981 | + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> | |
982 | + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> | |
983 | + <attribute name="Main-Class" value="${main.class}"/> | |
984 | + </manifest> | |
985 | + </target> | |
986 | + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> | |
987 | + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> | |
988 | + <attribute name="Profile" value="${javac.profile}"/> | |
989 | + </manifest> | |
990 | + </target> | |
991 | + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen"> | |
992 | + <basename file="${application.splash}" property="splashscreen.basename"/> | |
993 | + <mkdir dir="${build.classes.dir}/META-INF"/> | |
994 | + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> | |
995 | + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> | |
996 | + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> | |
997 | + </manifest> | |
998 | + </target> | |
999 | + <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs"> | |
1000 | + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> | |
1001 | + <echo level="info">To run this application from the command line without Ant, try:</echo> | |
1002 | + <property location="${dist.jar}" name="dist.jar.resolved"/> | |
1003 | + <echo level="info">java -jar "${dist.jar.resolved}"</echo> | |
1004 | + </target> | |
1005 | + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist"> | |
1006 | + <j2seproject1:jar manifest="${tmp.manifest.file}"/> | |
1007 | + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
1008 | + <property location="${dist.jar}" name="dist.jar.resolved"/> | |
1009 | + <pathconvert property="run.classpath.with.dist.jar"> | |
1010 | + <path path="${run.classpath}"/> | |
1011 | + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | |
1012 | + </pathconvert> | |
1013 | + <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}"> | |
1014 | + <isset property="main.class.available"/> | |
1015 | + </condition> | |
1016 | + <condition else="debug" property="jar.usage.level" value="info"> | |
1017 | + <isset property="main.class.available"/> | |
1018 | + </condition> | |
1019 | + <echo level="${jar.usage.level}" message="${jar.usage.message}"/> | |
1020 | + </target> | |
1021 | + <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest"> | |
1022 | + <delete> | |
1023 | + <fileset file="${tmp.manifest.file}"/> | |
1024 | + </delete> | |
1025 | + </target> | |
1026 | + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/> | |
1027 | + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/> | |
1028 | + <target name="-post-jar"> | |
1029 | + <!-- Empty placeholder for easier customization. --> | |
1030 | + <!-- You can override this target in the ../build.xml file. --> | |
1031 | + </target> | |
1032 | + <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/> | |
1033 | + <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/> | |
1034 | + <!-- | |
1035 | + ================= | |
1036 | + EXECUTION SECTION | |
1037 | + ================= | |
1038 | + --> | |
1039 | + <target depends="init,compile" description="Run a main class." name="run"> | |
1040 | + <j2seproject1:java> | |
1041 | + <customize> | |
1042 | + <arg line="${application.args}"/> | |
1043 | + </customize> | |
1044 | + </j2seproject1:java> | |
1045 | + </target> | |
1046 | + <target name="-do-not-recompile"> | |
1047 | + <property name="javac.includes.binary" value=""/> | |
1048 | + </target> | |
1049 | + <target depends="init,compile-single" name="run-single"> | |
1050 | + <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1051 | + <j2seproject1:java classname="${run.class}"/> | |
1052 | + </target> | |
1053 | + <target depends="init,compile-test-single" name="run-test-with-main"> | |
1054 | + <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1055 | + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> | |
1056 | + </target> | |
1057 | + <!-- | |
1058 | + ================= | |
1059 | + DEBUGGING SECTION | |
1060 | + ================= | |
1061 | + --> | |
1062 | + <target depends="init" if="netbeans.home" name="-debug-start-debugger"> | |
1063 | + <j2seproject1:nbjpdastart name="${debug.class}"/> | |
1064 | + </target> | |
1065 | + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> | |
1066 | + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> | |
1067 | + </target> | |
1068 | + <target depends="init,compile" name="-debug-start-debuggee"> | |
1069 | + <j2seproject3:debug> | |
1070 | + <customize> | |
1071 | + <arg line="${application.args}"/> | |
1072 | + </customize> | |
1073 | + </j2seproject3:debug> | |
1074 | + </target> | |
1075 | + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> | |
1076 | + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> | |
1077 | + <j2seproject1:nbjpdastart stopclassname="${main.class}"/> | |
1078 | + </target> | |
1079 | + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | |
1080 | + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | |
1081 | + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
1082 | + <j2seproject3:debug classname="${debug.class}"/> | |
1083 | + </target> | |
1084 | + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | |
1085 | + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> | |
1086 | + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
1087 | + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> | |
1088 | + </target> | |
1089 | + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> | |
1090 | + <target depends="init" name="-pre-debug-fix"> | |
1091 | + <fail unless="fix.includes">Must set fix.includes</fail> | |
1092 | + <property name="javac.includes" value="${fix.includes}.java"/> | |
1093 | + </target> | |
1094 | + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | |
1095 | + <j2seproject1:nbjpdareload/> | |
1096 | + </target> | |
1097 | + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | |
1098 | + <!-- | |
1099 | + ================= | |
1100 | + PROFILING SECTION | |
1101 | + ================= | |
1102 | + --> | |
1103 | + <!-- | |
1104 | + pre NB7.2 profiler integration | |
1105 | + --> | |
1106 | + <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72"> | |
1107 | + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1108 | + <nbprofiledirect> | |
1109 | + <classpath> | |
1110 | + <path path="${run.classpath}"/> | |
1111 | + </classpath> | |
1112 | + </nbprofiledirect> | |
1113 | + <profile/> | |
1114 | + </target> | |
1115 | + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72"> | |
1116 | + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> | |
1117 | + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1118 | + <nbprofiledirect> | |
1119 | + <classpath> | |
1120 | + <path path="${run.classpath}"/> | |
1121 | + </classpath> | |
1122 | + </nbprofiledirect> | |
1123 | + <profile classname="${profile.class}"/> | |
1124 | + </target> | |
1125 | + <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72"> | |
1126 | + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1127 | + <nbprofiledirect> | |
1128 | + <classpath> | |
1129 | + <path path="${run.classpath}"/> | |
1130 | + </classpath> | |
1131 | + </nbprofiledirect> | |
1132 | + <profile classname="sun.applet.AppletViewer"> | |
1133 | + <customize> | |
1134 | + <arg value="${applet.url}"/> | |
1135 | + </customize> | |
1136 | + </profile> | |
1137 | + </target> | |
1138 | + <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72"> | |
1139 | + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail> | |
1140 | + <nbprofiledirect> | |
1141 | + <classpath> | |
1142 | + <path path="${run.test.classpath}"/> | |
1143 | + </classpath> | |
1144 | + </nbprofiledirect> | |
1145 | + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true"> | |
1146 | + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
1147 | + <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
1148 | + <jvmarg line="${profiler.info.jvmargs}"/> | |
1149 | + <test name="${profile.class}"/> | |
1150 | + <classpath> | |
1151 | + <path path="${run.test.classpath}"/> | |
1152 | + </classpath> | |
1153 | + <syspropertyset> | |
1154 | + <propertyref prefix="test-sys-prop."/> | |
1155 | + <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
1156 | + </syspropertyset> | |
1157 | + <formatter type="brief" usefile="false"/> | |
1158 | + <formatter type="xml"/> | |
1159 | + </junit> | |
1160 | + </target> | |
1161 | + <!-- | |
1162 | + end of pre NB72 profiling section | |
1163 | + --> | |
1164 | + <target if="netbeans.home" name="-profile-check"> | |
1165 | + <condition property="profiler.configured"> | |
1166 | + <or> | |
1167 | + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/> | |
1168 | + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/> | |
1169 | + </or> | |
1170 | + </condition> | |
1171 | + </target> | |
1172 | + <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent"> | |
1173 | + <startprofiler/> | |
1174 | + <antcall target="run"/> | |
1175 | + </target> | |
1176 | + <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent"> | |
1177 | + <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1178 | + <startprofiler/> | |
1179 | + <antcall target="run-single"/> | |
1180 | + </target> | |
1181 | + <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/> | |
1182 | + <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs"> | |
1183 | + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | |
1184 | + <startprofiler/> | |
1185 | + <antcall target="test-single"/> | |
1186 | + </target> | |
1187 | + <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main"> | |
1188 | + <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
1189 | + <startprofiler/> | |
1190 | + <antcall target="run-test-with-main"/> | |
1191 | + </target> | |
1192 | + <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> | |
1193 | + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1194 | + <startprofiler/> | |
1195 | + <antcall target="run-applet"/> | |
1196 | + </target> | |
1197 | + <!-- | |
1198 | + =============== | |
1199 | + JAVADOC SECTION | |
1200 | + =============== | |
1201 | + --> | |
1202 | + <target depends="init" if="have.sources" name="-javadoc-build"> | |
1203 | + <mkdir dir="${dist.javadoc.dir}"/> | |
1204 | + <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}"> | |
1205 | + <and> | |
1206 | + <isset property="endorsed.classpath.cmd.line.arg"/> | |
1207 | + <not> | |
1208 | + <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/> | |
1209 | + </not> | |
1210 | + </and> | |
1211 | + </condition> | |
1212 | + <condition else="" property="bug5101868workaround" value="*.java"> | |
1213 | + <matches pattern="1\.[56](\..*)?" string="${java.version}"/> | |
1214 | + </condition> | |
1215 | + <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> | |
1216 | + <classpath> | |
1217 | + <path path="${javac.classpath}"/> | |
1218 | + </classpath> | |
1219 | + <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}"> | |
1220 | + <filename name="**/*.java"/> | |
1221 | + </fileset> | |
1222 | + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
1223 | + <include name="**/*.java"/> | |
1224 | + <exclude name="*.java"/> | |
1225 | + </fileset> | |
1226 | + <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/> | |
1227 | + </javadoc> | |
1228 | + <copy todir="${dist.javadoc.dir}"> | |
1229 | + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | |
1230 | + <filename name="**/doc-files/**"/> | |
1231 | + </fileset> | |
1232 | + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
1233 | + <include name="**/doc-files/**"/> | |
1234 | + </fileset> | |
1235 | + </copy> | |
1236 | + </target> | |
1237 | + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | |
1238 | + <nbbrowse file="${dist.javadoc.dir}/index.html"/> | |
1239 | + </target> | |
1240 | + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | |
1241 | + <!-- | |
1242 | + ========================= | |
1243 | + TEST COMPILATION SECTION | |
1244 | + ========================= | |
1245 | + --> | |
1246 | + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> | |
1247 | + <mkdir dir="${build.test.classes.dir}"/> | |
1248 | + </target> | |
1249 | + <target name="-pre-compile-test"> | |
1250 | + <!-- Empty placeholder for easier customization. --> | |
1251 | + <!-- You can override this target in the ../build.xml file. --> | |
1252 | + </target> | |
1253 | + <target if="do.depend.true" name="-compile-test-depend"> | |
1254 | + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | |
1255 | + </target> | |
1256 | + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | |
1257 | + <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}"/> | |
1258 | + <copy todir="${build.test.classes.dir}"> | |
1259 | + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
1260 | + </copy> | |
1261 | + </target> | |
1262 | + <target name="-post-compile-test"> | |
1263 | + <!-- Empty placeholder for easier customization. --> | |
1264 | + <!-- You can override this target in the ../build.xml file. --> | |
1265 | + </target> | |
1266 | + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | |
1267 | + <target name="-pre-compile-test-single"> | |
1268 | + <!-- Empty placeholder for easier customization. --> | |
1269 | + <!-- You can override this target in the ../build.xml file. --> | |
1270 | + </target> | |
1271 | + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | |
1272 | + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
1273 | + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | |
1274 | + <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}"/> | |
1275 | + <copy todir="${build.test.classes.dir}"> | |
1276 | + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
1277 | + </copy> | |
1278 | + </target> | |
1279 | + <target name="-post-compile-test-single"> | |
1280 | + <!-- Empty placeholder for easier customization. --> | |
1281 | + <!-- You can override this target in the ../build.xml file. --> | |
1282 | + </target> | |
1283 | + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> | |
1284 | + <!-- | |
1285 | + ======================= | |
1286 | + TEST EXECUTION SECTION | |
1287 | + ======================= | |
1288 | + --> | |
1289 | + <target depends="init" if="have.tests" name="-pre-test-run"> | |
1290 | + <mkdir dir="${build.test.results.dir}"/> | |
1291 | + </target> | |
1292 | + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> | |
1293 | + <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/> | |
1294 | + </target> | |
1295 | + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> | |
1296 | + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
1297 | + </target> | |
1298 | + <target depends="init" if="have.tests" name="test-report"/> | |
1299 | + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> | |
1300 | + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> | |
1301 | + <target depends="init" if="have.tests" name="-pre-test-run-single"> | |
1302 | + <mkdir dir="${build.test.results.dir}"/> | |
1303 | + </target> | |
1304 | + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> | |
1305 | + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | |
1306 | + <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/> | |
1307 | + </target> | |
1308 | + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | |
1309 | + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
1310 | + </target> | |
1311 | + <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"/> | |
1312 | + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method"> | |
1313 | + <fail unless="test.class">Must select some files in the IDE or set test.class</fail> | |
1314 | + <fail unless="test.method">Must select some method in the IDE or set test.method</fail> | |
1315 | + <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/> | |
1316 | + </target> | |
1317 | + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method"> | |
1318 | + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
1319 | + </target> | |
1320 | + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/> | |
1321 | + <!-- | |
1322 | + ======================= | |
1323 | + TEST DEBUGGING SECTION | |
1324 | + ======================= | |
1325 | + --> | |
1326 | + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test"> | |
1327 | + <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | |
1328 | + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/> | |
1329 | + </target> | |
1330 | + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method"> | |
1331 | + <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | |
1332 | + <fail unless="test.method">Must select some method in the IDE or set test.method</fail> | |
1333 | + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/> | |
1334 | + </target> | |
1335 | + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | |
1336 | + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | |
1337 | + </target> | |
1338 | + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | |
1339 | + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/> | |
1340 | + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> | |
1341 | + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | |
1342 | + </target> | |
1343 | + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | |
1344 | + <!-- | |
1345 | + ========================= | |
1346 | + APPLET EXECUTION SECTION | |
1347 | + ========================= | |
1348 | + --> | |
1349 | + <target depends="init,compile-single" name="run-applet"> | |
1350 | + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1351 | + <j2seproject1:java classname="sun.applet.AppletViewer"> | |
1352 | + <customize> | |
1353 | + <arg value="${applet.url}"/> | |
1354 | + </customize> | |
1355 | + </j2seproject1:java> | |
1356 | + </target> | |
1357 | + <!-- | |
1358 | + ========================= | |
1359 | + APPLET DEBUGGING SECTION | |
1360 | + ========================= | |
1361 | + --> | |
1362 | + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> | |
1363 | + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
1364 | + <j2seproject3:debug classname="sun.applet.AppletViewer"> | |
1365 | + <customize> | |
1366 | + <arg value="${applet.url}"/> | |
1367 | + </customize> | |
1368 | + </j2seproject3:debug> | |
1369 | + </target> | |
1370 | + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> | |
1371 | + <!-- | |
1372 | + =============== | |
1373 | + CLEANUP SECTION | |
1374 | + =============== | |
1375 | + --> | |
1376 | + <target name="-deps-clean-init" unless="built-clean.properties"> | |
1377 | + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> | |
1378 | + <delete file="${built-clean.properties}" quiet="true"/> | |
1379 | + </target> | |
1380 | + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> | |
1381 | + <echo level="warn" message="Cycle detected: hayashi was already built"/> | |
1382 | + </target> | |
1383 | + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> | |
1384 | + <mkdir dir="${build.dir}"/> | |
1385 | + <touch file="${built-clean.properties}" verbose="false"/> | |
1386 | + <property file="${built-clean.properties}" prefix="already.built.clean."/> | |
1387 | + <antcall target="-warn-already-built-clean"/> | |
1388 | + <propertyfile file="${built-clean.properties}"> | |
1389 | + <entry key="${basedir}" value=""/> | |
1390 | + </propertyfile> | |
1391 | + </target> | |
1392 | + <target depends="init" name="-do-clean"> | |
1393 | + <delete dir="${build.dir}"/> | |
1394 | + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> | |
1395 | + </target> | |
1396 | + <target name="-post-clean"> | |
1397 | + <!-- Empty placeholder for easier customization. --> | |
1398 | + <!-- You can override this target in the ../build.xml file. --> | |
1399 | + </target> | |
1400 | + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | |
1401 | + <target name="-check-call-dep"> | |
1402 | + <property file="${call.built.properties}" prefix="already.built."/> | |
1403 | + <condition property="should.call.dep"> | |
1404 | + <and> | |
1405 | + <not> | |
1406 | + <isset property="already.built.${call.subproject}"/> | |
1407 | + </not> | |
1408 | + <available file="${call.script}"/> | |
1409 | + </and> | |
1410 | + </condition> | |
1411 | + </target> | |
1412 | + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> | |
1413 | + <ant antfile="${call.script}" inheritall="false" target="${call.target}"> | |
1414 | + <propertyset> | |
1415 | + <propertyref prefix="transfer."/> | |
1416 | + <mapper from="transfer.*" to="*" type="glob"/> | |
1417 | + </propertyset> | |
1418 | + </ant> | |
1419 | + </target> | |
1420 | +</project> |
@@ -0,0 +1,8 @@ | ||
1 | +nbbuild.xml.data.CRC32=b4c081aa | |
2 | +nbbuild.xml.script.CRC32=5d5289b4 | |
3 | +nbbuild.xml.stylesheet.CRC32=8064a381@1.80.1.48 | |
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=b4c081aa | |
7 | +nbproject/build-impl.xml.script.CRC32=28c31a8a | |
8 | +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 |
@@ -0,0 +1,71 @@ | ||
1 | +application.title=hayashi | |
2 | +application.vendor=yuu | |
3 | +endorsed.classpath= | |
4 | +#Sun Sep 10 09:45:00 JST 2017 | |
5 | +excludes= | |
6 | +javac.deprecation=false | |
7 | +build.test.results.dir=${build.dir}/test/results | |
8 | +run.classpath=\ | |
9 | + ${javac.classpath}:\ | |
10 | + ${build.classes.dir} | |
11 | +javadoc.nonavbar=false | |
12 | +javac.external.vm=true | |
13 | +run.test.classpath=\ | |
14 | + ${javac.test.classpath}:\ | |
15 | + ${build.test.classes.dir} | |
16 | +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output | |
17 | +javac.processorpath=\ | |
18 | + ${javac.classpath} | |
19 | +file.reference.hayashi-src=src | |
20 | +javac.target=1.8 | |
21 | +annotation.processing.processors.list= | |
22 | +javadoc.noindex=false | |
23 | +javadoc.additionalparam= | |
24 | +includes=** | |
25 | +build.classes.dir=${build.dir}/classes | |
26 | +source.encoding=UTF-8 | |
27 | +javadoc.author=false | |
28 | +test.src.dir=${file.reference.hayashi-test} | |
29 | +build.dir=build | |
30 | +build.test.classes.dir=${build.dir}/test/classes | |
31 | +platform.active=default_platform | |
32 | +javac.compilerargs= | |
33 | +main.class= | |
34 | +dist.jar=${dist.dir}/hayashi.jar | |
35 | +javac.test.processorpath=${javac.test.classpath} | |
36 | +javadoc.use=true | |
37 | +dist.archive.excludes= | |
38 | +build.sysclasspath=ignore | |
39 | +debug.test.classpath=${run.test.classpath} | |
40 | +dist.dir=dist | |
41 | +build.classes.excludes=**/*.java,**/*.form | |
42 | +javadoc.splitindex=true | |
43 | +javadoc.encoding=${source.encoding} | |
44 | +javac.source=1.8 | |
45 | +junit.selected.version=3 | |
46 | +debug.classpath=${run.classpath} | |
47 | +run.jvmargs= | |
48 | +build.generated.dir=${build.dir}/generated | |
49 | +file.reference.hayashi-test=test | |
50 | +jar.compress=false | |
51 | +javac.test.classpath=\ | |
52 | + ${javac.classpath}:\ | |
53 | + ${build.classes.dir}:\ | |
54 | + ${libs.junit_4.classpath}:\ | |
55 | + ${libs.hamcrest.classpath} | |
56 | +javadoc.private=false | |
57 | +annotation.processing.run.all.processors=true | |
58 | +meta.inf.dir=${src.dir}/META-INF | |
59 | +manifest.file=manifest.mf | |
60 | +annotation.processing.enabled=true | |
61 | +dist.javadoc.dir=${dist.dir}/javadoc | |
62 | +src.dir=${file.reference.hayashi-src} | |
63 | +mkdist.disabled=false | |
64 | +javac.classpath=\ | |
65 | + ${libs.javaee-api-6.0.classpath} | |
66 | +annotation.processing.enabled.in.editor=false | |
67 | +build.generated.sources.dir=${build.dir}/generated-sources | |
68 | +javadoc.version=false | |
69 | +javadoc.windowtitle= | |
70 | +buildfile=nbbuild.xml | |
71 | +javadoc.notree=false |
@@ -0,0 +1,15 @@ | ||
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 | + <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> | |
6 | + <name>hayashi</name> | |
7 | + <source-roots> | |
8 | + <root id="src.dir"/> | |
9 | + </source-roots> | |
10 | + <test-roots> | |
11 | + <root id="test.src.dir"/> | |
12 | + </test-roots> | |
13 | + </data> | |
14 | + </configuration> | |
15 | +</project> |
@@ -43,17 +43,17 @@ public class SendMail | ||
43 | 43 | } |
44 | 44 | } |
45 | 45 | |
46 | - protected Vector<String> toVector = new Vector<String>(); // プロパティ 送信先(to) の値 | |
47 | - protected Vector<String> ccVector = new Vector<String>(); // プロパティ 送信先(Cc) の値 | |
48 | - protected Vector<String> bccVector = new Vector<String>(); // プロパティ 送信先(Bcc) の値 | |
46 | + protected Vector<String> toVector = new Vector<>(); // プロパティ 送信先(to) の値 | |
47 | + protected Vector<String> ccVector = new Vector<>(); // プロパティ 送信先(Cc) の値 | |
48 | + protected Vector<String> bccVector = new Vector<>(); // プロパティ 送信先(Bcc) の値 | |
49 | 49 | protected String from = null; // プロパティ 発信元(from) の値 |
50 | 50 | protected String subject; // プロパティ 題名(subject) の値 |
51 | 51 | protected String content; // プロパティ 本文(content) の値 |
52 | 52 | protected String mailHost; // プロパティ SMTP(mail.smtp.host) の値 |
53 | 53 | protected String mailHostPort; // プロパティ SMTP_PORT(mail.smtp.port) の値 |
54 | 54 | |
55 | - protected Vector<File> attachments = new Vector<File>(); // 添付ファイル | |
56 | - protected Vector<String> attachNames = new Vector<String>(); // 添付ファイル名 | |
55 | + protected Vector<File> attachments = new Vector<>(); // 添付ファイル | |
56 | + protected Vector<String> attachNames = new Vector<>(); // 添付ファイル名 | |
57 | 57 | |
58 | 58 | protected boolean POP_before_SMTP = false; |
59 | 59 | protected boolean USER_AUTH = false; |