@@ -50,36 +50,6 @@ |
</target> |
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/> |
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> |
- <webproject1:property name="platform.home" value="platforms.${platform.active}.home"/> |
- <webproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/> |
- <webproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/> |
- <webproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/> |
- <condition property="platform.javac" value="${platform.home}/bin/javac"> |
- <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/> |
- </condition> |
- <property name="platform.javac" value="${platform.javac.tmp}"/> |
- <webproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/> |
- <condition property="platform.java" value="${platform.home}/bin/java"> |
- <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/> |
- </condition> |
- <property name="platform.java" value="${platform.java.tmp}"/> |
- <webproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/> |
- <condition property="platform.javadoc" value="${platform.home}/bin/javadoc"> |
- <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/> |
- </condition> |
- <property name="platform.javadoc" value="${platform.javadoc.tmp}"/> |
- <fail unless="platform.home">Must set platform.home</fail> |
- <fail unless="platform.bootcp">Must set platform.bootcp</fail> |
- <fail unless="platform.java">Must set platform.java</fail> |
- <fail unless="platform.javac">Must set platform.javac</fail> |
- <fail if="platform.invalid"> |
- The J2SE Platform is not correctly set up. |
- Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. |
- Either open the project in the IDE and setup the Platform with the same name or add it manually. |
- For example like this: |
- ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) |
- or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) |
- </fail> |
<condition property="have.tests"> |
<or> |
<available file="${test.src.dir}"/> |
@@ -136,12 +106,24 @@ |
<condition property="do.display.browser"> |
<istrue value="${display.browser}"/> |
</condition> |
+ <condition property="do.display.browser.debug.old"> |
+ <and> |
+ <isset property="do.display.browser"/> |
+ <not> |
+ <isset property="do.debug.client"/> |
+ </not> |
+ <not> |
+ <isset property="browser.context"/> |
+ </not> |
+ </and> |
+ </condition> |
<condition property="do.display.browser.debug"> |
<and> |
<isset property="do.display.browser"/> |
<not> |
<isset property="do.debug.client"/> |
</not> |
+ <isset property="browser.context"/> |
</and> |
</condition> |
<available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/> |
@@ -209,6 +191,15 @@ |
<length length="0" string="${endorsed.classpath}" when="greater"/> |
</and> |
</condition> |
+ <condition else="false" property="jdkBug6558476"> |
+ <and> |
+ <matches pattern="1\.[56]" string="${java.specification.version}"/> |
+ <not> |
+ <os family="unix"/> |
+ </not> |
+ </and> |
+ </condition> |
+ <property name="javac.fork" value="${jdkBug6558476}"/> |
<condition property="junit.available"> |
<or> |
<available classname="org.junit.Test" classpath="${run.test.classpath}"/> |
@@ -303,7 +294,7 @@ |
<property location="${build.dir}/empty" name="empty.dir"/> |
<mkdir dir="${empty.dir}"/> |
<mkdir dir="@{apgeneratedsrcdir}"/> |
- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> |
+ <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}"> |
<src> |
<dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
<include name="*"/> |
@@ -340,7 +331,7 @@ |
<sequential> |
<property location="${build.dir}/empty" name="empty.dir"/> |
<mkdir dir="${empty.dir}"/> |
- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> |
+ <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}"> |
<src> |
<dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
<include name="*"/> |
@@ -417,7 +408,7 @@ |
<attribute default="" name="testmethods"/> |
<element name="customize" optional="true"/> |
<sequential> |
- <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${java.io.tmpdir}"> |
+ <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}"> |
<test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> |
<syspropertyset> |
<propertyref prefix="test-sys-prop."/> |
@@ -440,7 +431,7 @@ |
<element name="customize" optional="true"/> |
<sequential> |
<property name="run.jvmargs.ide" value=""/> |
- <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> |
+ <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}"> |
<batchtest todir="${build.test.results.dir}"> |
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> |
<filename name="@{testincludes}"/> |
@@ -480,7 +471,7 @@ |
</fileset> |
</union> |
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> |
- <testng classfilesetref="test.set" failureProperty="tests.failed" jvm="${platform.java}" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="csip-datadownload" testname="TestNG tests" workingDir="${basedir}"> |
+ <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="csip-datadownload" testname="TestNG tests" workingDir="${basedir}"> |
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> |
<propertyset> |
<propertyref prefix="test-sys-prop."/> |
@@ -558,7 +549,7 @@ |
<attribute default="" name="testmethods"/> |
<element name="customize" optional="true"/> |
<sequential> |
- <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${java.io.tmpdir}"> |
+ <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}"> |
<test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> |
<syspropertyset> |
<propertyref prefix="test-sys-prop."/> |
@@ -583,7 +574,7 @@ |
<element name="customize" optional="true"/> |
<sequential> |
<property name="run.jvmargs.ide" value=""/> |
- <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> |
+ <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}"> |
<batchtest todir="${build.test.results.dir}"> |
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> |
<filename name="@{testincludes}"/> |
@@ -707,7 +698,7 @@ |
<attribute default="${debug.classpath}" name="classpath"/> |
<element name="customize" optional="true"/> |
<sequential> |
- <java classname="@{classname}" fork="true" jvm="${platform.java}"> |
+ <java classname="@{classname}" fork="true"> |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
<jvmarg line="${runmain.jvmargs}"/> |
<classpath> |
@@ -739,9 +730,6 @@ |
<classpath> |
<path path="@{classpath}"/> |
</classpath> |
- <bootclasspath> |
- <path path="${platform.bootcp}"/> |
- </bootclasspath> |
</nbjpdastart> |
</sequential> |
</macrodef> |
@@ -762,9 +750,7 @@ |
</macrodef> |
</target> |
<target name="-init-debug-args"> |
- <exec executable="${platform.java}" outputproperty="version-output"> |
- <arg value="-version"/> |
- </exec> |
+ <property name="version-output" value="java version "${ant.java.version}"/> |
<condition property="have-jdk-older-than-1.4"> |
<or> |
<contains string="${version-output}" substring="java version "1.0"/> |
@@ -790,7 +776,7 @@ |
<attribute default="${application.args.param}" name="args"/> |
<element name="customize" optional="true"/> |
<sequential> |
- <java classname="@{classname}" fork="true" jvm="${platform.java}"> |
+ <java classname="@{classname}" fork="true"> |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
<jvmarg line="${debug-args-line}"/> |
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> |
@@ -994,28 +980,28 @@ |
<dirname file="${dist.war}" property="dist.jar.dir"/> |
<mkdir dir="${dist.jar.dir}"/> |
<jar compress="${jar.compress}" jarfile="${dist.war}"> |
- <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/> |
+ <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/> |
</jar> |
</target> |
<target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest"> |
<dirname file="${dist.war}" property="dist.jar.dir"/> |
<mkdir dir="${dist.jar.dir}"/> |
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF"> |
- <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/> |
+ <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/> |
</jar> |
</target> |
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest"> |
<dirname file="${dist.war}" property="dist.jar.dir"/> |
<mkdir dir="${dist.jar.dir}"/> |
<jar compress="${jar.compress}" jarfile="${dist.war}"> |
- <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/> |
+ <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/> |
</jar> |
</target> |
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest"> |
<dirname file="${dist.war}" property="dist.jar.dir"/> |
<mkdir dir="${dist.jar.dir}"/> |
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF"> |
- <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/> |
+ <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/> |
</jar> |
</target> |
<target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/> |
@@ -1036,6 +1022,7 @@ |
<copyfiles files="${file.reference.jedis-2.1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> |
<copyfiles files="${file.reference.json-org.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> |
<copyfiles files="${file.reference.oms-all.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> |
+ <copyfiles files="${file.reference.jersey-media-multipart-2.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> |
<copyfiles files="${file.reference.htmlunit-2.8.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> |
<copyfiles files="${file.reference.htmlunit-core-js-2.8.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> |
<mkdir dir="${build.web.dir}/META-INF"/> |
@@ -1058,6 +1045,7 @@ |
<copyfiles files="${file.reference.jedis-2.1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/> |
<copyfiles files="${file.reference.json-org.jar}" todir="${build.web.dir}/WEB-INF/lib"/> |
<copyfiles files="${file.reference.oms-all.jar}" todir="${build.web.dir}/WEB-INF/lib"/> |
+ <copyfiles files="${file.reference.jersey-media-multipart-2.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/> |
<copyfiles files="${file.reference.htmlunit-2.8.jar}" todir="${build.web.dir}/WEB-INF/lib"/> |
<copyfiles files="${file.reference.htmlunit-core-js-2.8.jar}" todir="${build.web.dir}/WEB-INF/lib"/> |
</target> |
@@ -1068,7 +1056,7 @@ |
<dirname file="${dist.ear.war}" property="dist.jar.dir"/> |
<mkdir dir="${dist.jar.dir}"/> |
<jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF"> |
- <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/> |
+ <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/> |
</jar> |
</target> |
<target name="-post-dist"> |
@@ -1117,17 +1105,31 @@ |
<target depends="init,-pre-dist,dist,-post-dist" name="verify"> |
<nbverify file="${dist.war}"/> |
</target> |
- <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/> |
+ <target depends="run-deploy,-init-display-browser,-display-browser-nb-old,-display-browser-nb,-display-browser-cl" name="run-display-browser"/> |
<target if="do.display.browser" name="-init-display-browser"> |
+ <condition property="do.display.browser.nb.old"> |
+ <and> |
+ <isset property="netbeans.home"/> |
+ <not> |
+ <isset property="browser.context"/> |
+ </not> |
+ </and> |
+ </condition> |
<condition property="do.display.browser.nb"> |
- <isset property="netbeans.home"/> |
+ <and> |
+ <isset property="netbeans.home"/> |
+ <isset property="browser.context"/> |
+ </and> |
</condition> |
<condition property="do.display.browser.cl"> |
<isset property="deploy.ant.enabled"/> |
</condition> |
</target> |
+ <target if="do.display.browser.nb.old" name="-display-browser-nb-old"> |
+ <nbbrowse url="${client.url}"/> |
+ </target> |
<target if="do.display.browser.nb" name="-display-browser-nb"> |
- <nbbrowse url="${client.url}"/> |
+ <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/> |
</target> |
<target if="do.display.browser.cl" name="-get-browser" unless="browser"> |
<condition property="browser" value="rundll32"> |
@@ -1196,6 +1198,7 @@ |
<nbstartserver debugmode="true"/> |
<antcall target="connect-debugger"/> |
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/> |
+ <antcall target="debug-display-browser-old"/> |
<antcall target="debug-display-browser"/> |
<antcall target="connect-client-debugger"/> |
</target> |
@@ -1210,13 +1213,13 @@ |
<sourcepath> |
<path path="${web.docbase.dir}"/> |
</sourcepath> |
- <bootclasspath> |
- <path path="${platform.bootcp}"/> |
- </bootclasspath> |
</nbjpdaconnect> |
</target> |
+ <target if="do.display.browser.debug.old" name="debug-display-browser-old"> |
+ <nbbrowse url="${client.url}"/> |
+ </target> |
<target if="do.display.browser.debug" name="debug-display-browser"> |
- <nbbrowse url="${client.url}"/> |
+ <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/> |
</target> |
<target if="do.debug.client" name="connect-client-debugger"> |
<webproject1:nbjsdebugstart webUrl="${client.url}"/> |
@@ -1312,6 +1315,7 @@ |
<startprofiler/> |
<nbstartserver profilemode="true"/> |
<nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true" profilemode="true"/> |
+ <antcall target="debug-display-browser-old"/> |
<antcall target="debug-display-browser"/> |
<antcall target="-profile-start-loadgen"/> |
</target> |
@@ -1331,7 +1335,7 @@ |
--> |
<target depends="init" if="have.sources" name="javadoc-build"> |
<mkdir dir="${dist.javadoc.dir}"/> |
- <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> |
+ <javadoc additionalparam="${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}"> |
<classpath> |
<path path="${javac.classpath}:${j2ee.platform.classpath}"/> |
</classpath> |