Changeset 74:48066e753dd6 for java/sql-vyuka/nbproject/build-impl.xml
- Timestamp:
- 01/27/10 21:24:33 (14 years ago)
- Branch:
- default
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
java/sql-vyuka/nbproject/build-impl.xml
r46 r74 127 127 <and> 128 128 <isset property="has.custom.manifest"/> 129 <isfalse value="${directory.deployment.supported}"/> 129 <or> 130 <isfalse value="${directory.deployment.supported}"/> 131 <isset property="dist.ear.dir"/> 132 </or> 130 133 </and> 131 134 </condition> … … 135 138 <isset property="has.custom.manifest"/> 136 139 </not> 140 <or> 141 <isfalse value="${directory.deployment.supported}"/> 142 <isset property="dist.ear.dir"/> 143 </or> 144 </and> 145 </condition> 146 <condition property="do.tmp.war.package"> 147 <or> 137 148 <isfalse value="${directory.deployment.supported}"/> 138 </and> 139 </condition> 140 <condition property="do.tmp.war.package"> 141 <isfalse value="${directory.deployment.supported}"/> 149 <isset property="dist.ear.dir"/> 150 </or> 142 151 </condition> 143 152 <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/> … … 162 171 <property name="includes" value="**"/> 163 172 <property name="excludes" value=""/> 164 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">165 <and>166 <isset property="jaxws.endorsed.dir"/>167 <available file="nbproject/jaxws-build.xml"/>168 </and>169 </condition>170 173 <property name="runmain.jvmargs" value=""/> 174 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> 175 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> 176 <length length="0" string="${endorsed.classpath}" when="greater"/> 177 </condition> 171 178 </target> 172 179 <target depends="init" name="-init-cos" unless="deploy.on.save"> … … 231 238 <path path="@{classpath}"/> 232 239 </classpath> 233 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> 240 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> 241 <compilerarg line="${javac.compilerargs}"/> 234 242 <customize/> 235 243 </javac> … … 243 251 <attribute default="**" name="testincludes"/> 244 252 <sequential> 245 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" >253 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}"> 246 254 <batchtest todir="${build.test.results.dir}"> 247 255 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> … … 250 258 </batchtest> 251 259 <classpath> 252 <path path="${run.test.classpath}:${j2ee.platform.classpath} "/>260 <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/> 253 261 </classpath> 254 262 <syspropertyset> … … 258 266 <formatter type="brief" usefile="false"/> 259 267 <formatter type="xml"/> 268 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 260 269 <jvmarg line="${runmain.jvmargs}"/> 261 270 </junit> … … 270 279 <sequential> 271 280 <java classname="@{classname}" fork="true"> 281 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 272 282 <jvmarg line="${runmain.jvmargs}"/> 273 283 <classpath> … … 347 357 <sequential> 348 358 <java classname="@{classname}" fork="true"> 359 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 349 360 <jvmarg line="${debug-args-line}"/> 350 361 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> … … 525 536 <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/> 526 537 <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest"> 527 <copyfiles files="${reference.SuperDAO.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.reference.SuperDAO.jar" todir="${dist.ear.dir}"/>538 <copyfiles files="${reference.SuperDAO.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> 528 539 <mkdir dir="${build.web.dir}/META-INF"/> 529 <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"> 530 <attribute name="Class-Path" value="${manifest.reference.SuperDAO.jar} "/> 531 </manifest> 540 <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/> 532 541 </target> 533 542 <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir"> 534 543 <copyfiles files="${reference.SuperDAO.jar}" todir="${build.web.dir}/WEB-INF/lib"/> 535 544 </target> 536 <target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist"> 545 <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib"> 546 <delete dir="${build.web.dir}/WEB-INF/lib"/> 547 </target> 548 <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist"> 537 549 <dirname file="${dist.ear.war}" property="dist.jar.dir"/> 538 550 <mkdir dir="${dist.jar.dir}"/> … … 546 558 </target> 547 559 <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/> 548 <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"/>560 <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"/> 549 561 <!-- 550 562 EXECUTION SECTION … … 661 673 DEBUGGING SECTION 662 674 --> 663 <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">675 <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"> 664 676 <nbstartserver debugmode="true"/> 665 677 <antcall target="connect-debugger"/> … … 736 748 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> 737 749 <mkdir dir="${build.test.classes.dir}"/> 750 <property name="j2ee.platform.embeddableejb.classpath" value=""/> 738 751 </target> 739 752 <target name="-pre-compile-test"> … … 742 755 </target> 743 756 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test"> 744 <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath} " debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>757 <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> 745 758 <copy todir="${build.test.classes.dir}"> 746 759 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> … … 758 771 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> 759 772 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> 760 <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath} " debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>773 <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}"/> 761 774 <copy todir="${build.test.classes.dir}"> 762 775 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> … … 805 818 <!-- must exist, otherwise the XML formatter would fail --> 806 819 <mkdir dir="${build.test.results.dir}"/> 807 <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} ">820 <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}"> 808 821 <customize> 809 822 <arg value="showoutput=true"/>