@@ -79,6 +79,7 @@ is divided into following sections:
79
79
<property file =" nbproject/project.properties" />
80
80
</target >
81
81
<target depends =" -pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name =" -do-init" >
82
+ <property name =" platform.java" value =" ${java.home}/bin/java" />
82
83
<available file =" ${manifest.file}" property =" manifest.available" />
83
84
<condition property =" splashscreen.available" >
84
85
<and >
@@ -96,10 +97,11 @@ is divided into following sections:
96
97
</not >
97
98
</and >
98
99
</condition >
99
- <condition property =" manifest .available+main.class " >
100
+ <condition property =" profile .available" >
100
101
<and >
101
- <isset property =" manifest.available" />
102
- <isset property =" main.class.available" />
102
+ <isset property =" javac.profile" />
103
+ <length length =" 0" string =" ${javac.profile}" when =" greater" />
104
+ <matches pattern =" 1\.[89](\..*)?" string =" ${javac.source}" />
103
105
</and >
104
106
</condition >
105
107
<condition property =" do.archive" >
@@ -116,12 +118,6 @@ is divided into following sections:
116
118
</not >
117
119
</and >
118
120
</condition >
119
- <condition property =" manifest.available+main.class+mkdist.available" >
120
- <and >
121
- <istrue value =" ${manifest.available+main.class}" />
122
- <isset property =" do.mkdist" />
123
- </and >
124
- </condition >
125
121
<condition property =" do.archive+manifest.available" >
126
122
<and >
127
123
<isset property =" manifest.available" />
@@ -140,24 +136,12 @@ is divided into following sections:
140
136
<istrue value =" ${do.archive}" />
141
137
</and >
142
138
</condition >
143
- <condition property =" do.archive+manifest .available+main.class " >
139
+ <condition property =" do.archive+profile .available" >
144
140
<and >
145
- <istrue value = " ${manifest .available+main.class} " />
141
+ <isset property = " profile .available" />
146
142
<istrue value =" ${do.archive}" />
147
143
</and >
148
144
</condition >
149
- <condition property =" manifest.available-mkdist.available" >
150
- <or >
151
- <istrue value =" ${manifest.available}" />
152
- <isset property =" do.mkdist" />
153
- </or >
154
- </condition >
155
- <condition property =" manifest.available+main.class-mkdist.available" >
156
- <or >
157
- <istrue value =" ${manifest.available+main.class}" />
158
- <isset property =" do.mkdist" />
159
- </or >
160
- </condition >
161
145
<condition property =" have.tests" >
162
146
<or >
163
147
<available file =" ${test.src.dir}" />
@@ -211,7 +195,15 @@ is divided into following sections:
211
195
</condition >
212
196
<path id =" endorsed.classpath.path" path =" ${endorsed.classpath}" />
213
197
<condition else =" " property =" endorsed.classpath.cmd.line.arg" value =" -Xbootclasspath/p:'${toString:endorsed.classpath.path}'" >
214
- <length length =" 0" string =" ${endorsed.classpath}" when =" greater" />
198
+ <and >
199
+ <isset property =" endorsed.classpath" />
200
+ <not >
201
+ <equals arg1 =" ${endorsed.classpath}" arg2 =" " trim =" true" />
202
+ </not >
203
+ </and >
204
+ </condition >
205
+ <condition else =" " property =" javac.profile.cmd.line.arg" value =" -profile ${javac.profile}" >
206
+ <isset property =" profile.available" />
215
207
</condition >
216
208
<condition else =" false" property =" jdkBug6558476" >
217
209
<and >
@@ -300,6 +292,7 @@ is divided into following sections:
300
292
<path path =" @{classpath}" />
301
293
</classpath >
302
294
<compilerarg line =" ${endorsed.classpath.cmd.line.arg}" />
295
+ <compilerarg line =" ${javac.profile.cmd.line.arg}" />
303
296
<compilerarg line =" ${javac.compilerargs}" />
304
297
<compilerarg value =" -processorpath" />
305
298
<compilerarg path =" @{processorpath}:${empty.dir}" />
@@ -339,6 +332,7 @@ is divided into following sections:
339
332
<path path =" @{classpath}" />
340
333
</classpath >
341
334
<compilerarg line =" ${endorsed.classpath.cmd.line.arg}" />
335
+ <compilerarg line =" ${javac.profile.cmd.line.arg}" />
342
336
<compilerarg line =" ${javac.compilerargs}" />
343
337
<customize />
344
338
</javac >
@@ -471,7 +465,7 @@ is divided into following sections:
471
465
</fileset >
472
466
</union >
473
467
<taskdef classname =" org.testng.TestNGAntTask" classpath =" ${run.test.classpath}" name =" testng" />
474
- <testng classfilesetref =" test.set" failureProperty =" tests.failed" methods =" ${testng.methods.arg}" mode =" ${testng.mode}" outputdir =" ${build.test.results.dir}" suitename =" LibLaserCut" testname =" TestNG tests" workingDir =" ${work.dir}" >
468
+ <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 =" LibLaserCut" testname =" TestNG tests" workingDir =" ${work.dir}" >
475
469
<xmlfileset dir =" ${build.test.classes.dir}" includes =" @{testincludes}" />
476
470
<propertyset >
477
471
<propertyref prefix =" test-sys-prop." />
@@ -862,8 +856,8 @@ is divided into following sections:
862
856
</chainedmapper >
863
857
</pathconvert >
864
858
<taskdef classname =" org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath =" ${libs.CopyLibs.classpath}" name =" copylibs" />
865
- <copylibs compress =" ${jar.compress}" index =" ${jar.index}" indexMetaInf =" ${jar.index.metainf}" jarfile =" ${dist.jar}" manifest =" @{manifest}" rebase =" ${copylibs.rebase}" runtimeclasspath =" ${run.classpath.without.build.classes.dir}" >
866
- <fileset dir =" ${build.classes.dir}" />
859
+ <copylibs compress =" ${jar.compress}" excludeFromCopy = " ${copylibs.excludes} " index =" ${jar.index}" indexMetaInf =" ${jar.index.metainf}" jarfile =" ${dist.jar}" manifest =" @{manifest}" rebase =" ${copylibs.rebase}" runtimeclasspath =" ${run.classpath.without.build.classes.dir}" >
860
+ <fileset dir =" ${build.classes.dir}" excludes = " ${dist.archive.excludes} " />
867
861
<manifest >
868
862
<attribute name =" Class-Path" value =" ${jar.classpath}" />
869
863
<customize />
@@ -875,7 +869,7 @@ is divided into following sections:
875
869
<target name =" -init-presetdef-jar" >
876
870
<presetdef name =" jar" uri =" http://www.netbeans.org/ns/j2se-project/1" >
877
871
<jar compress =" ${jar.compress}" index =" ${jar.index}" jarfile =" ${dist.jar}" >
878
- <j2seproject1 : fileset dir =" ${build.classes.dir}" />
872
+ <j2seproject1 : fileset dir =" ${build.classes.dir}" excludes = " ${dist.archive.excludes} " />
879
873
</jar >
880
874
</presetdef >
881
875
</target >
@@ -991,65 +985,67 @@ is divided into following sections:
991
985
<!-- Empty placeholder for easier customization. -->
992
986
<!-- You can override this target in the ../build.xml file. -->
993
987
</target >
994
- <target depends =" init,compile,-pre-pre-jar,-pre-jar" if =" do.archive" name =" -do-jar-without-manifest" unless =" manifest.available-mkdist.available" >
995
- <j2seproject1 : jar />
996
- </target >
997
- <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" >
998
- <j2seproject1 : jar manifest =" ${manifest.file}" />
999
- </target >
1000
- <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" >
1001
- <j2seproject1 : jar manifest =" ${manifest.file}" >
1002
- <j2seproject1 : manifest >
1003
- <j2seproject1 : attribute name =" Main-Class" value =" ${main.class}" />
1004
- </j2seproject1 : manifest >
1005
- </j2seproject1 : jar >
1006
- <echo level =" info" >To run this application from the command line without Ant, try:</echo >
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
- <echo level =" info" >java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo >
1014
- </target >
1015
- <target depends =" init" if =" do.archive" name =" -do-jar-with-libraries-create-manifest" unless =" manifest.available" >
988
+ <target depends =" init" if =" do.archive" name =" -do-jar-create-manifest" unless =" manifest.available" >
1016
989
<tempfile deleteonexit =" true" destdir =" ${build.dir}" property =" tmp.manifest.file" />
1017
990
<touch file =" ${tmp.manifest.file}" verbose =" false" />
1018
991
</target >
1019
- <target depends =" init" if =" do.archive+manifest.available" name =" -do-jar-with-libraries- copy-manifest" >
992
+ <target depends =" init" if =" do.archive+manifest.available" name =" -do-jar-copy-manifest" >
1020
993
<tempfile deleteonexit =" true" destdir =" ${build.dir}" property =" tmp.manifest.file" />
1021
994
<copy file =" ${manifest.file}" tofile =" ${tmp.manifest.file}" />
1022
995
</target >
1023
- <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 " >
996
+ <target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+main.class.available" name =" -do-jar-set-mainclass " >
1024
997
<manifest file =" ${tmp.manifest.file}" mode =" update" >
1025
998
<attribute name =" Main-Class" value =" ${main.class}" />
1026
999
</manifest >
1027
1000
</target >
1028
- <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" >
1001
+ <target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+profile.available" name =" -do-jar-set-profile" >
1002
+ <manifest file =" ${tmp.manifest.file}" mode =" update" >
1003
+ <attribute name =" Profile" value =" ${javac.profile}" />
1004
+ </manifest >
1005
+ </target >
1006
+ <target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+splashscreen.available" name =" -do-jar-set-splashscreen" >
1029
1007
<basename file =" ${application.splash}" property =" splashscreen.basename" />
1030
1008
<mkdir dir =" ${build.classes.dir}/META-INF" />
1031
1009
<copy failonerror =" false" file =" ${application.splash}" todir =" ${build.classes.dir}/META-INF" />
1032
1010
<manifest file =" ${tmp.manifest.file}" mode =" update" >
1033
1011
<attribute name =" SplashScreen-Image" value =" META-INF/${splashscreen.basename}" />
1034
1012
</manifest >
1035
1013
</target >
1036
- <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 " >
1014
+ <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 " >
1037
1015
<j2seproject3 : copylibs manifest =" ${tmp.manifest.file}" />
1038
1016
<echo level =" info" >To run this application from the command line without Ant, try:</echo >
1039
1017
<property location =" ${dist.jar}" name =" dist.jar.resolved" />
1040
1018
<echo level =" info" >java -jar "${dist.jar.resolved}"</echo >
1041
1019
</target >
1042
- <target depends =" -do-jar-with-libraries-pack" if =" do.archive" name =" -do-jar-with-libraries-delete-manifest" >
1020
+ <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" >
1021
+ <j2seproject1 : jar manifest =" ${tmp.manifest.file}" />
1022
+ <property location =" ${build.classes.dir}" name =" build.classes.dir.resolved" />
1023
+ <property location =" ${dist.jar}" name =" dist.jar.resolved" />
1024
+ <pathconvert property =" run.classpath.with.dist.jar" >
1025
+ <path path =" ${run.classpath}" />
1026
+ <map from =" ${build.classes.dir.resolved}" to =" ${dist.jar.resolved}" />
1027
+ </pathconvert >
1028
+ <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}" >
1029
+ <isset property =" main.class.available" />
1030
+ </condition >
1031
+ <condition else =" debug" property =" jar.usage.level" value =" info" >
1032
+ <isset property =" main.class.available" />
1033
+ </condition >
1034
+ <echo level =" ${jar.usage.level}" message =" ${jar.usage.message}" />
1035
+ </target >
1036
+ <target depends =" -do-jar-copylibs" if =" do.archive" name =" -do-jar-delete-manifest" >
1043
1037
<delete >
1044
1038
<fileset file =" ${tmp.manifest.file}" />
1045
1039
</delete >
1046
1040
</target >
1047
- <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" />
1041
+ <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" />
1042
+ <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" />
1048
1043
<target name =" -post-jar" >
1049
1044
<!-- Empty placeholder for easier customization. -->
1050
1045
<!-- You can override this target in the ../build.xml file. -->
1051
1046
</target >
1052
- <target depends =" init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description =" Build JAR." name =" jar" />
1047
+ <target depends =" init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name =" -do-jar" />
1048
+ <target depends =" init,compile,-pre-jar,-do-jar,-post-jar" description =" Build JAR." name =" jar" />
1053
1049
<!--
1054
1050
=================
1055
1051
EXECUTION SECTION
0 commit comments