1.1 --- a/samples/gc/nbproject/build-impl.xml Sat Jun 14 09:54:38 2008 +0200
1.2 +++ b/samples/gc/nbproject/build-impl.xml Wed Oct 15 21:22:54 2008 +0200
1.3 @@ -19,7 +19,7 @@
1.4 - cleanup
1.5
1.6 -->
1.7 -<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="gc-impl">
1.8 +<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="gc-impl">
1.9 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
1.10 <!--
1.11 ======================
1.12 @@ -218,13 +218,13 @@
1.13 </sequential>
1.14 </macrodef>
1.15 </target>
1.16 - <target name="-init-macrodef-nbjpda">
1.17 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
1.18 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
1.19 <attribute default="${main.class}" name="name"/>
1.20 <attribute default="${debug.classpath}" name="classpath"/>
1.21 <attribute default="" name="stopclassname"/>
1.22 <sequential>
1.23 - <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
1.24 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
1.25 <classpath>
1.26 <path path="@{classpath}"/>
1.27 </classpath>
1.28 @@ -235,7 +235,9 @@
1.29 <attribute default="${build.classes.dir}" name="dir"/>
1.30 <sequential>
1.31 <nbjpdareload>
1.32 - <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
1.33 + <fileset dir="@{dir}" includes="${fix.classes}">
1.34 + <include name="${fix.includes}*.class"/>
1.35 + </fileset>
1.36 </nbjpdareload>
1.37 </sequential>
1.38 </macrodef>
1.39 @@ -253,6 +255,12 @@
1.40 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
1.41 <istrue value="${have-jdk-older-than-1.4}"/>
1.42 </condition>
1.43 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
1.44 + <os family="windows"/>
1.45 + </condition>
1.46 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
1.47 + <isset property="debug.transport"/>
1.48 + </condition>
1.49 </target>
1.50 <target depends="-init-debug-args" name="-init-macrodef-debug">
1.51 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.52 @@ -262,7 +270,7 @@
1.53 <sequential>
1.54 <java classname="@{classname}" dir="${work.dir}" fork="true">
1.55 <jvmarg line="${debug-args-line}"/>
1.56 - <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
1.57 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
1.58 <jvmarg line="${run.jvmargs}"/>
1.59 <classpath>
1.60 <path path="@{classpath}"/>
1.61 @@ -309,6 +317,13 @@
1.62 ===================
1.63 -->
1.64 <target depends="init" name="deps-jar" unless="no.deps"/>
1.65 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
1.66 + <target depends="init" name="-check-automatic-build">
1.67 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
1.68 + </target>
1.69 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
1.70 + <antcall target="clean"/>
1.71 + </target>
1.72 <target depends="init,deps-jar" name="-pre-pre-compile">
1.73 <mkdir dir="${build.classes.dir}"/>
1.74 </target>
1.75 @@ -329,7 +344,7 @@
1.76 <!-- Empty placeholder for easier customization. -->
1.77 <!-- You can override this target in the ../build.xml file. -->
1.78 </target>
1.79 - <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
1.80 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
1.81 <target name="-pre-compile-single">
1.82 <!-- Empty placeholder for easier customization. -->
1.83 <!-- You can override this target in the ../build.xml file. -->
1.84 @@ -343,7 +358,7 @@
1.85 <!-- Empty placeholder for easier customization. -->
1.86 <!-- You can override this target in the ../build.xml file. -->
1.87 </target>
1.88 - <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
1.89 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
1.90 <!--
1.91 ====================
1.92 JAR BUILDING SECTION