<property file="nbproject/project.properties"/>\r
</target>\r
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">\r
+ <property name="platform.java" value="${java.home}/bin/java"/>\r
<available file="${manifest.file}" property="manifest.available"/>\r
<condition property="splashscreen.available">\r
<and>\r
</not>\r
</and>\r
</condition>\r
- <condition property="manifest.available+main.class">\r
+ <condition property="profile.available">\r
<and>\r
- <isset property="manifest.available"/>\r
- <isset property="main.class.available"/>\r
+ <isset property="javac.profile"/>\r
+ <length length="0" string="${javac.profile}" when="greater"/>\r
+ <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>\r
</and>\r
</condition>\r
<condition property="do.archive">\r
</not>\r
</and>\r
</condition>\r
- <condition property="manifest.available+main.class+mkdist.available">\r
- <and>\r
- <istrue value="${manifest.available+main.class}"/>\r
- <isset property="do.mkdist"/>\r
- </and>\r
- </condition>\r
<condition property="do.archive+manifest.available">\r
<and>\r
<isset property="manifest.available"/>\r
<istrue value="${do.archive}"/>\r
</and>\r
</condition>\r
- <condition property="do.archive+manifest.available+main.class">\r
+ <condition property="do.archive+profile.available">\r
<and>\r
- <istrue value="${manifest.available+main.class}"/>\r
+ <isset property="profile.available"/>\r
<istrue value="${do.archive}"/>\r
</and>\r
</condition>\r
- <condition property="manifest.available-mkdist.available">\r
- <or>\r
- <istrue value="${manifest.available}"/>\r
- <isset property="do.mkdist"/>\r
- </or>\r
- </condition>\r
- <condition property="manifest.available+main.class-mkdist.available">\r
- <or>\r
- <istrue value="${manifest.available+main.class}"/>\r
- <isset property="do.mkdist"/>\r
- </or>\r
- </condition>\r
<condition property="have.tests">\r
<or/>\r
</condition>\r
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">\r
<length length="0" string="${endorsed.classpath}" when="greater"/>\r
</condition>\r
+ <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">\r
+ <isset property="profile.available"/>\r
+ </condition>\r
<condition else="false" property="jdkBug6558476">\r
<and>\r
<matches pattern="1\.[56]" string="${java.specification.version}"/>\r
<path path="@{classpath}"/>\r
</classpath>\r
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
+ <compilerarg line="${javac.profile.cmd.line.arg}"/>\r
<compilerarg line="${javac.compilerargs}"/>\r
<compilerarg value="-processorpath"/>\r
<compilerarg path="@{processorpath}:${empty.dir}"/>\r
<path path="@{classpath}"/>\r
</classpath>\r
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
+ <compilerarg line="${javac.profile.cmd.line.arg}"/>\r
<compilerarg line="${javac.compilerargs}"/>\r
<customize/>\r
</javac>\r
</condition>\r
<union id="test.set"/>\r
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>\r
- <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="fwstk" testname="TestNG tests" workingDir="${work.dir}">\r
+ <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="fwstk" testname="TestNG tests" workingDir="${work.dir}">\r
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>\r
<propertyset>\r
<propertyref prefix="test-sys-prop."/>\r
</chainedmapper>\r
</pathconvert>\r
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
- <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}">\r
+ <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}">\r
<fileset dir="${build.classes.dir}"/>\r
<manifest>\r
<attribute name="Class-Path" value="${jar.classpath}"/>\r
<!-- Empty placeholder for easier customization. -->\r
<!-- You can override this target in the ../build.xml file. -->\r
</target>\r
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">\r
- <j2seproject1:jar/>\r
- </target>\r
- <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">\r
- <j2seproject1:jar manifest="${manifest.file}"/>\r
- </target>\r
- <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">\r
- <j2seproject1:jar manifest="${manifest.file}">\r
- <j2seproject1:manifest>\r
- <j2seproject1:attribute name="Main-Class" value="${main.class}"/>\r
- </j2seproject1:manifest>\r
- </j2seproject1:jar>\r
- <echo level="info">To run this application from the command line without Ant, try:</echo>\r
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
- <property location="${dist.jar}" name="dist.jar.resolved"/>\r
- <pathconvert property="run.classpath.with.dist.jar">\r
- <path path="${run.classpath}"/>\r
- <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
- </pathconvert>\r
- <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>\r
- </target>\r
- <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">\r
+ <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">\r
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
<touch file="${tmp.manifest.file}" verbose="false"/>\r
</target>\r
- <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">\r
+ <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">\r
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>\r
</target>\r
- <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">\r
+ <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">\r
<manifest file="${tmp.manifest.file}" mode="update">\r
<attribute name="Main-Class" value="${main.class}"/>\r
</manifest>\r
</target>\r
- <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">\r
+ <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">\r
+ <manifest file="${tmp.manifest.file}" mode="update">\r
+ <attribute name="Profile" value="${javac.profile}"/>\r
+ </manifest>\r
+ </target>\r
+ <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">\r
<basename file="${application.splash}" property="splashscreen.basename"/>\r
<mkdir dir="${build.classes.dir}/META-INF"/>\r
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>\r
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>\r
</manifest>\r
</target>\r
- <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">\r
+ <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">\r
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>\r
<echo level="info">To run this application from the command line without Ant, try:</echo>\r
<property location="${dist.jar}" name="dist.jar.resolved"/>\r
<echo level="info">java -jar "${dist.jar.resolved}"</echo>\r
</target>\r
- <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">\r
+ <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">\r
+ <j2seproject1:jar manifest="${tmp.manifest.file}"/>\r
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
+ <property location="${dist.jar}" name="dist.jar.resolved"/>\r
+ <pathconvert property="run.classpath.with.dist.jar">\r
+ <path path="${run.classpath}"/>\r
+ <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
+ </pathconvert>\r
+ <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}">\r
+ <isset property="main.class.available"/>\r
+ </condition>\r
+ <condition else="debug" property="jar.usage.level" value="info">\r
+ <isset property="main.class.available"/>\r
+ </condition>\r
+ <echo level="${jar.usage.level}" message="${jar.usage.message}"/>\r
+ </target>\r
+ <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">\r
<delete>\r
<fileset file="${tmp.manifest.file}"/>\r
</delete>\r
</target>\r
- <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"/>\r
+ <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"/>\r
+ <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"/>\r
<target name="-post-jar">\r
<!-- Empty placeholder for easier customization. -->\r
<!-- You can override this target in the ../build.xml file. -->\r
</target>\r
- <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"/>\r
+ <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>\r
+ <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>\r
<!--\r
=================\r
EXECUTION SECTION\r