@@ -79,6 +79,7 @@ is divided into following sections:
7979 <property file =" nbproject/project.properties" />
8080 </target >
8181 <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" />
8283 <available file =" ${manifest.file}" property =" manifest.available" />
8384 <condition property =" splashscreen.available" >
8485 <and >
@@ -96,10 +97,11 @@ is divided into following sections:
9697 </not >
9798 </and >
9899 </condition >
99- <condition property =" manifest .available+main.class " >
100+ <condition property =" profile .available" >
100101 <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}" />
103105 </and >
104106 </condition >
105107 <condition property =" do.archive" >
@@ -116,12 +118,6 @@ is divided into following sections:
116118 </not >
117119 </and >
118120 </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 >
125121 <condition property =" do.archive+manifest.available" >
126122 <and >
127123 <isset property =" manifest.available" />
@@ -140,24 +136,12 @@ is divided into following sections:
140136 <istrue value =" ${do.archive}" />
141137 </and >
142138 </condition >
143- <condition property =" do.archive+manifest .available+main.class " >
139+ <condition property =" do.archive+profile .available" >
144140 <and >
145- <istrue value = " ${manifest .available+main.class} " />
141+ <isset property = " profile .available" />
146142 <istrue value =" ${do.archive}" />
147143 </and >
148144 </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 >
161145 <condition property =" have.tests" >
162146 <or >
163147 <available file =" ${test.src.dir}" />
@@ -211,7 +195,15 @@ is divided into following sections:
211195 </condition >
212196 <path id =" endorsed.classpath.path" path =" ${endorsed.classpath}" />
213197 <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" />
215207 </condition >
216208 <condition else =" false" property =" jdkBug6558476" >
217209 <and >
@@ -300,6 +292,7 @@ is divided into following sections:
300292 <path path =" @{classpath}" />
301293 </classpath >
302294 <compilerarg line =" ${endorsed.classpath.cmd.line.arg}" />
295+ <compilerarg line =" ${javac.profile.cmd.line.arg}" />
303296 <compilerarg line =" ${javac.compilerargs}" />
304297 <compilerarg value =" -processorpath" />
305298 <compilerarg path =" @{processorpath}:${empty.dir}" />
@@ -339,6 +332,7 @@ is divided into following sections:
339332 <path path =" @{classpath}" />
340333 </classpath >
341334 <compilerarg line =" ${endorsed.classpath.cmd.line.arg}" />
335+ <compilerarg line =" ${javac.profile.cmd.line.arg}" />
342336 <compilerarg line =" ${javac.compilerargs}" />
343337 <customize />
344338 </javac >
@@ -471,7 +465,7 @@ is divided into following sections:
471465 </fileset >
472466 </union >
473467 <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 =" Essentials" 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 =" Essentials" testname =" TestNG tests" workingDir =" ${work.dir}" >
475469 <xmlfileset dir =" ${build.test.classes.dir}" includes =" @{testincludes}" />
476470 <propertyset >
477471 <propertyref prefix =" test-sys-prop." />
@@ -862,8 +856,8 @@ is divided into following sections:
862856 </chainedmapper >
863857 </pathconvert >
864858 <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} " />
867861 <manifest >
868862 <attribute name =" Class-Path" value =" ${jar.classpath}" />
869863 <customize />
@@ -875,7 +869,7 @@ is divided into following sections:
875869 <target name =" -init-presetdef-jar" >
876870 <presetdef name =" jar" uri =" http://www.netbeans.org/ns/j2se-project/1" >
877871 <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} " />
879873 </jar >
880874 </presetdef >
881875 </target >
@@ -998,65 +992,67 @@ is divided into following sections:
998992 <!-- Empty placeholder for easier customization. -->
999993 <!-- You can override this target in the ../build.xml file. -->
1000994 </target >
1001- <target depends =" init,compile,-pre-pre-jar,-pre-jar" if =" do.archive" name =" -do-jar-without-manifest" unless =" manifest.available-mkdist.available" >
1002- <j2seproject1 : jar />
1003- </target >
1004- <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" >
1005- <j2seproject1 : jar manifest =" ${manifest.file}" />
1006- </target >
1007- <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" >
1008- <j2seproject1 : jar manifest =" ${manifest.file}" >
1009- <j2seproject1 : manifest >
1010- <j2seproject1 : attribute name =" Main-Class" value =" ${main.class}" />
1011- </j2seproject1 : manifest >
1012- </j2seproject1 : jar >
1013- <echo level =" info" >To run this application from the command line without Ant, try:</echo >
1014- <property location =" ${build.classes.dir}" name =" build.classes.dir.resolved" />
1015- <property location =" ${dist.jar}" name =" dist.jar.resolved" />
1016- <pathconvert property =" run.classpath.with.dist.jar" >
1017- <path path =" ${run.classpath}" />
1018- <map from =" ${build.classes.dir.resolved}" to =" ${dist.jar.resolved}" />
1019- </pathconvert >
1020- <echo level =" info" >java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo >
1021- </target >
1022- <target depends =" init" if =" do.archive" name =" -do-jar-with-libraries-create-manifest" unless =" manifest.available" >
995+ <target depends =" init" if =" do.archive" name =" -do-jar-create-manifest" unless =" manifest.available" >
1023996 <tempfile deleteonexit =" true" destdir =" ${build.dir}" property =" tmp.manifest.file" />
1024997 <touch file =" ${tmp.manifest.file}" verbose =" false" />
1025998 </target >
1026- <target depends =" init" if =" do.archive+manifest.available" name =" -do-jar-with-libraries- copy-manifest" >
999+ <target depends =" init" if =" do.archive+manifest.available" name =" -do-jar-copy-manifest" >
10271000 <tempfile deleteonexit =" true" destdir =" ${build.dir}" property =" tmp.manifest.file" />
10281001 <copy file =" ${manifest.file}" tofile =" ${tmp.manifest.file}" />
10291002 </target >
1030- <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 " >
1003+ <target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+main.class.available" name =" -do-jar-set-mainclass " >
10311004 <manifest file =" ${tmp.manifest.file}" mode =" update" >
10321005 <attribute name =" Main-Class" value =" ${main.class}" />
10331006 </manifest >
10341007 </target >
1035- <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" >
1008+ <target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+profile.available" name =" -do-jar-set-profile" >
1009+ <manifest file =" ${tmp.manifest.file}" mode =" update" >
1010+ <attribute name =" Profile" value =" ${javac.profile}" />
1011+ </manifest >
1012+ </target >
1013+ <target depends =" init,-do-jar-create-manifest,-do-jar-copy-manifest" if =" do.archive+splashscreen.available" name =" -do-jar-set-splashscreen" >
10361014 <basename file =" ${application.splash}" property =" splashscreen.basename" />
10371015 <mkdir dir =" ${build.classes.dir}/META-INF" />
10381016 <copy failonerror =" false" file =" ${application.splash}" todir =" ${build.classes.dir}/META-INF" />
10391017 <manifest file =" ${tmp.manifest.file}" mode =" update" >
10401018 <attribute name =" SplashScreen-Image" value =" META-INF/${splashscreen.basename}" />
10411019 </manifest >
10421020 </target >
1043- <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 " >
1021+ <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 " >
10441022 <j2seproject3 : copylibs manifest =" ${tmp.manifest.file}" />
10451023 <echo level =" info" >To run this application from the command line without Ant, try:</echo >
10461024 <property location =" ${dist.jar}" name =" dist.jar.resolved" />
10471025 <echo level =" info" >java -jar "${dist.jar.resolved}"</echo >
10481026 </target >
1049- <target depends =" -do-jar-with-libraries-pack" if =" do.archive" name =" -do-jar-with-libraries-delete-manifest" >
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" if =" do.archive" name =" -do-jar-jar" unless =" do.mkdist" >
1028+ <j2seproject1 : jar manifest =" ${tmp.manifest.file}" />
1029+ <property location =" ${build.classes.dir}" name =" build.classes.dir.resolved" />
1030+ <property location =" ${dist.jar}" name =" dist.jar.resolved" />
1031+ <pathconvert property =" run.classpath.with.dist.jar" >
1032+ <path path =" ${run.classpath}" />
1033+ <map from =" ${build.classes.dir.resolved}" to =" ${dist.jar.resolved}" />
1034+ </pathconvert >
1035+ <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}" >
1036+ <isset property =" main.class.available" />
1037+ </condition >
1038+ <condition else =" debug" property =" jar.usage.level" value =" info" >
1039+ <isset property =" main.class.available" />
1040+ </condition >
1041+ <echo level =" ${jar.usage.level}" message =" ${jar.usage.message}" />
1042+ </target >
1043+ <target depends =" -do-jar-copylibs" if =" do.archive" name =" -do-jar-delete-manifest" >
10501044 <delete >
10511045 <fileset file =" ${tmp.manifest.file}" />
10521046 </delete >
10531047 </target >
1054- <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" />
1048+ <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" />
1049+ <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" />
10551050 <target name =" -post-jar" >
10561051 <!-- Empty placeholder for easier customization. -->
10571052 <!-- You can override this target in the ../build.xml file. -->
10581053 </target >
1059- <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" />
1054+ <target depends =" init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name =" -do-jar" />
1055+ <target depends =" init,compile,-pre-jar,-do-jar,-post-jar" description =" Build JAR." name =" jar" />
10601056 <!--
10611057 =================
10621058 EXECUTION SECTION
0 commit comments