1.1 --- a/java/sql-vyuka/nbproject/build-impl.xml Wed Jul 01 20:58:36 2009 +0200
1.2 +++ b/java/sql-vyuka/nbproject/build-impl.xml Wed Jan 27 21:24:33 2010 +0100
1.3 @@ -126,7 +126,10 @@
1.4 <condition property="do.tmp.war.package.with.custom.manifest">
1.5 <and>
1.6 <isset property="has.custom.manifest"/>
1.7 - <isfalse value="${directory.deployment.supported}"/>
1.8 + <or>
1.9 + <isfalse value="${directory.deployment.supported}"/>
1.10 + <isset property="dist.ear.dir"/>
1.11 + </or>
1.12 </and>
1.13 </condition>
1.14 <condition property="do.tmp.war.package.without.custom.manifest">
1.15 @@ -134,11 +137,17 @@
1.16 <not>
1.17 <isset property="has.custom.manifest"/>
1.18 </not>
1.19 - <isfalse value="${directory.deployment.supported}"/>
1.20 + <or>
1.21 + <isfalse value="${directory.deployment.supported}"/>
1.22 + <isset property="dist.ear.dir"/>
1.23 + </or>
1.24 </and>
1.25 </condition>
1.26 <condition property="do.tmp.war.package">
1.27 - <isfalse value="${directory.deployment.supported}"/>
1.28 + <or>
1.29 + <isfalse value="${directory.deployment.supported}"/>
1.30 + <isset property="dist.ear.dir"/>
1.31 + </or>
1.32 </condition>
1.33 <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
1.34 <condition else="" property="application.args.param" value="${application.args}">
1.35 @@ -161,13 +170,11 @@
1.36 <property name="javadoc.encoding.used" value="${source.encoding}"/>
1.37 <property name="includes" value="**"/>
1.38 <property name="excludes" value=""/>
1.39 - <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
1.40 - <and>
1.41 - <isset property="jaxws.endorsed.dir"/>
1.42 - <available file="nbproject/jaxws-build.xml"/>
1.43 - </and>
1.44 + <property name="runmain.jvmargs" value=""/>
1.45 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
1.46 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
1.47 + <length length="0" string="${endorsed.classpath}" when="greater"/>
1.48 </condition>
1.49 - <property name="runmain.jvmargs" value=""/>
1.50 </target>
1.51 <target depends="init" name="-init-cos" unless="deploy.on.save">
1.52 <condition property="deploy.on.save" value="true">
1.53 @@ -230,7 +237,8 @@
1.54 <classpath>
1.55 <path path="@{classpath}"/>
1.56 </classpath>
1.57 - <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
1.58 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
1.59 + <compilerarg line="${javac.compilerargs}"/>
1.60 <customize/>
1.61 </javac>
1.62 </sequential>
1.63 @@ -242,14 +250,14 @@
1.64 <attribute default="${excludes}" name="excludes"/>
1.65 <attribute default="**" name="testincludes"/>
1.66 <sequential>
1.67 - <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
1.68 + <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
1.69 <batchtest todir="${build.test.results.dir}">
1.70 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
1.71 <filename name="@{testincludes}"/>
1.72 </fileset>
1.73 </batchtest>
1.74 <classpath>
1.75 - <path path="${run.test.classpath}:${j2ee.platform.classpath}"/>
1.76 + <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
1.77 </classpath>
1.78 <syspropertyset>
1.79 <propertyref prefix="test-sys-prop."/>
1.80 @@ -257,6 +265,7 @@
1.81 </syspropertyset>
1.82 <formatter type="brief" usefile="false"/>
1.83 <formatter type="xml"/>
1.84 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.85 <jvmarg line="${runmain.jvmargs}"/>
1.86 </junit>
1.87 </sequential>
1.88 @@ -269,6 +278,7 @@
1.89 <element name="customize" optional="true"/>
1.90 <sequential>
1.91 <java classname="@{classname}" fork="true">
1.92 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.93 <jvmarg line="${runmain.jvmargs}"/>
1.94 <classpath>
1.95 <path path="@{classpath}:${j2ee.platform.classpath}"/>
1.96 @@ -346,6 +356,7 @@
1.97 <element name="customize" optional="true"/>
1.98 <sequential>
1.99 <java classname="@{classname}" fork="true">
1.100 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.101 <jvmarg line="${debug-args-line}"/>
1.102 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
1.103 <jvmarg line="${runmain.jvmargs}"/>
1.104 @@ -524,16 +535,17 @@
1.105 </target>
1.106 <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
1.107 <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
1.108 - <copyfiles files="${reference.SuperDAO.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.reference.SuperDAO.jar" todir="${dist.ear.dir}"/>
1.109 + <copyfiles files="${reference.SuperDAO.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1.110 <mkdir dir="${build.web.dir}/META-INF"/>
1.111 - <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
1.112 - <attribute name="Class-Path" value="${manifest.reference.SuperDAO.jar} "/>
1.113 - </manifest>
1.114 + <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
1.115 </target>
1.116 <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
1.117 <copyfiles files="${reference.SuperDAO.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1.118 </target>
1.119 - <target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
1.120 + <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
1.121 + <delete dir="${build.web.dir}/WEB-INF/lib"/>
1.122 + </target>
1.123 + <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
1.124 <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
1.125 <mkdir dir="${dist.jar.dir}"/>
1.126 <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
1.127 @@ -545,7 +557,7 @@
1.128 <!-- You can override this target in the ../build.xml file. -->
1.129 </target>
1.130 <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
1.131 - <target depends="init,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
1.132 + <target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
1.133 <!--
1.134 EXECUTION SECTION
1.135 -->
1.136 @@ -660,7 +672,7 @@
1.137 <!--
1.138 DEBUGGING SECTION
1.139 -->
1.140 - <target depends="init,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
1.141 + <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
1.142 <nbstartserver debugmode="true"/>
1.143 <antcall target="connect-debugger"/>
1.144 <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
1.145 @@ -735,13 +747,14 @@
1.146 -->
1.147 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1.148 <mkdir dir="${build.test.classes.dir}"/>
1.149 + <property name="j2ee.platform.embeddableejb.classpath" value=""/>
1.150 </target>
1.151 <target name="-pre-compile-test">
1.152 <!-- Empty placeholder for easier customization. -->
1.153 <!-- You can override this target in the ../build.xml file. -->
1.154 </target>
1.155 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
1.156 - <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.157 + <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.158 <copy todir="${build.test.classes.dir}">
1.159 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.160 </copy>
1.161 @@ -757,7 +770,7 @@
1.162 </target>
1.163 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1.164 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.165 - <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
1.166 + <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
1.167 <copy todir="${build.test.classes.dir}">
1.168 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.169 </copy>
1.170 @@ -804,7 +817,7 @@
1.171 <delete file="${test.report.file}"/>
1.172 <!-- must exist, otherwise the XML formatter would fail -->
1.173 <mkdir dir="${build.test.results.dir}"/>
1.174 - <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
1.175 + <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
1.176 <customize>
1.177 <arg value="showoutput=true"/>
1.178 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>