java/sql-dk/nbproject/build-impl.xml
branchv_0
changeset 231 71439ecbe71f
parent 173 b48a82a64a02
equal deleted inserted replaced
230:8bae71482622 231:71439ecbe71f
    44     </target>
    44     </target>
    45     <target depends="-pre-init,-init-private" name="-init-user">
    45     <target depends="-pre-init,-init-private" name="-init-user">
    46         <property file="${user.properties.file}"/>
    46         <property file="${user.properties.file}"/>
    47         <!-- The two properties below are usually overridden -->
    47         <!-- The two properties below are usually overridden -->
    48         <!-- by the active platform. Just a fallback. -->
    48         <!-- by the active platform. Just a fallback. -->
    49         <property name="default.javac.source" value="1.4"/>
    49         <property name="default.javac.source" value="1.6"/>
    50         <property name="default.javac.target" value="1.4"/>
    50         <property name="default.javac.target" value="1.6"/>
    51     </target>
    51     </target>
    52     <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    52     <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    53         <property file="nbproject/configs/${config}.properties"/>
    53         <property file="nbproject/configs/${config}.properties"/>
    54         <property file="nbproject/project.properties"/>
    54         <property file="nbproject/project.properties"/>
    55     </target>
    55     </target>
    74         </condition>
    74         </condition>
    75         <condition property="profile.available">
    75         <condition property="profile.available">
    76             <and>
    76             <and>
    77                 <isset property="javac.profile"/>
    77                 <isset property="javac.profile"/>
    78                 <length length="0" string="${javac.profile}" when="greater"/>
    78                 <length length="0" string="${javac.profile}" when="greater"/>
    79                 <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
    79                 <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
    80             </and>
    80             </and>
    81         </condition>
    81         </condition>
    82         <condition property="do.archive">
    82         <condition property="do.archive">
    83             <or>
    83             <or>
    84                 <not>
    84                 <not>
   155         <property name="javac.debug" value="true"/>
   155         <property name="javac.debug" value="true"/>
   156         <property name="javadoc.preview" value="true"/>
   156         <property name="javadoc.preview" value="true"/>
   157         <property name="application.args" value=""/>
   157         <property name="application.args" value=""/>
   158         <property name="source.encoding" value="${file.encoding}"/>
   158         <property name="source.encoding" value="${file.encoding}"/>
   159         <property name="runtime.encoding" value="${source.encoding}"/>
   159         <property name="runtime.encoding" value="${source.encoding}"/>
       
   160         <property name="manifest.encoding" value="${source.encoding}"/>
   160         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   161         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   161             <and>
   162             <and>
   162                 <isset property="javadoc.encoding"/>
   163                 <isset property="javadoc.encoding"/>
   163                 <not>
   164                 <not>
   164                     <equals arg1="${javadoc.encoding}" arg2=""/>
   165                     <equals arg1="${javadoc.encoding}" arg2=""/>
   190                 <not>
   191                 <not>
   191                     <os family="unix"/>
   192                     <os family="unix"/>
   192                 </not>
   193                 </not>
   193             </and>
   194             </and>
   194         </condition>
   195         </condition>
   195         <property name="javac.fork" value="${jdkBug6558476}"/>
   196         <condition else="false" property="javac.fork">
       
   197             <or>
       
   198                 <istrue value="${jdkBug6558476}"/>
       
   199                 <istrue value="${javac.external.vm}"/>
       
   200             </or>
       
   201         </condition>
   196         <property name="jar.index" value="false"/>
   202         <property name="jar.index" value="false"/>
   197         <property name="jar.index.metainf" value="${jar.index}"/>
   203         <property name="jar.index.metainf" value="${jar.index}"/>
   198         <property name="copylibs.rebase" value="true"/>
   204         <property name="copylibs.rebase" value="true"/>
   199         <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
   205         <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
   200         <condition property="junit.available">
   206         <condition property="junit.available">
   216             <istrue value="${junit+testng.available}"/>
   222             <istrue value="${junit+testng.available}"/>
   217         </condition>
   223         </condition>
   218         <condition else="" property="testng.debug.mode" value="-mixed">
   224         <condition else="" property="testng.debug.mode" value="-mixed">
   219             <istrue value="${junit+testng.available}"/>
   225             <istrue value="${junit+testng.available}"/>
   220         </condition>
   226         </condition>
       
   227         <property name="java.failonerror" value="true"/>
   221     </target>
   228     </target>
   222     <target name="-post-init">
   229     <target name="-post-init">
   223         <!-- Empty placeholder for easier customization. -->
   230         <!-- Empty placeholder for easier customization. -->
   224         <!-- You can override this target in the ../build.xml file. -->
   231         <!-- You can override this target in the ../build.xml file. -->
   225     </target>
   232     </target>
   693             <attribute default="${main.class}" name="classname"/>
   700             <attribute default="${main.class}" name="classname"/>
   694             <element name="customize" optional="true"/>
   701             <element name="customize" optional="true"/>
   695             <sequential>
   702             <sequential>
   696                 <property environment="env"/>
   703                 <property environment="env"/>
   697                 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
   704                 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
   698                 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
   705                 <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
   699                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   706                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   700                     <jvmarg value="${profiler.info.jvmargs.agent}"/>
   707                     <jvmarg value="${profiler.info.jvmargs.agent}"/>
   701                     <jvmarg line="${profiler.info.jvmargs}"/>
   708                     <jvmarg line="${profiler.info.jvmargs}"/>
   702                     <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   709                     <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   703                     <arg line="${application.args}"/>
   710                     <arg line="${application.args}"/>
   768         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   775         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   769             <attribute default="${main.class}" name="classname"/>
   776             <attribute default="${main.class}" name="classname"/>
   770             <attribute default="${debug.classpath}" name="classpath"/>
   777             <attribute default="${debug.classpath}" name="classpath"/>
   771             <element name="customize" optional="true"/>
   778             <element name="customize" optional="true"/>
   772             <sequential>
   779             <sequential>
   773                 <java classname="@{classname}" dir="${work.dir}" fork="true">
   780                 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
   774                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   781                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   775                     <jvmarg line="${debug-args-line}"/>
   782                     <jvmarg line="${debug-args-line}"/>
   776                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   783                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   777                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   784                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   778                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   785                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   795             <attribute default="${main.class}" name="classname"/>
   802             <attribute default="${main.class}" name="classname"/>
   796             <attribute default="${run.classpath}" name="classpath"/>
   803             <attribute default="${run.classpath}" name="classpath"/>
   797             <attribute default="jvm" name="jvm"/>
   804             <attribute default="jvm" name="jvm"/>
   798             <element name="customize" optional="true"/>
   805             <element name="customize" optional="true"/>
   799             <sequential>
   806             <sequential>
   800                 <java classname="@{classname}" dir="${work.dir}" fork="true">
   807                 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
   801                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   808                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   802                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   809                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   803                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   810                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   804                     <jvmarg line="${run.jvmargs}"/>
   811                     <jvmarg line="${run.jvmargs}"/>
   805                     <jvmarg line="${run.jvmargs.ide}"/>
   812                     <jvmarg line="${run.jvmargs.ide}"/>
   834                         </filtermapper>
   841                         </filtermapper>
   835                         <globmapper from="*" to="lib/*"/>
   842                         <globmapper from="*" to="lib/*"/>
   836                     </chainedmapper>
   843                     </chainedmapper>
   837                 </pathconvert>
   844                 </pathconvert>
   838                 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   845                 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   839                 <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}">
   846                 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
   840                     <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
   847                     <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
   841                     <manifest>
   848                     <manifest>
   842                         <attribute name="Class-Path" value="${jar.classpath}"/>
   849                         <attribute name="Class-Path" value="${jar.classpath}"/>
   843                         <customize/>
   850                         <customize/>
   844                     </manifest>
   851                     </manifest>
   846             </sequential>
   853             </sequential>
   847         </macrodef>
   854         </macrodef>
   848     </target>
   855     </target>
   849     <target name="-init-presetdef-jar">
   856     <target name="-init-presetdef-jar">
   850         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   857         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   851             <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
   858             <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
   852                 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
   859                 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
   853             </jar>
   860             </jar>
   854         </presetdef>
   861         </presetdef>
   855     </target>
   862     </target>
   856     <target name="-init-ap-cmdline-properties">
   863     <target name="-init-ap-cmdline-properties">
   970         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   977         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   971         <touch file="${tmp.manifest.file}" verbose="false"/>
   978         <touch file="${tmp.manifest.file}" verbose="false"/>
   972     </target>
   979     </target>
   973     <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
   980     <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
   974         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   981         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   975         <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
   982         <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
   976     </target>
   983     </target>
   977     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
   984     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
   978         <manifest file="${tmp.manifest.file}" mode="update">
   985         <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
   979             <attribute name="Main-Class" value="${main.class}"/>
   986             <attribute name="Main-Class" value="${main.class}"/>
   980         </manifest>
   987         </manifest>
   981     </target>
   988     </target>
   982     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
   989     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
   983         <manifest file="${tmp.manifest.file}" mode="update">
   990         <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
   984             <attribute name="Profile" value="${javac.profile}"/>
   991             <attribute name="Profile" value="${javac.profile}"/>
   985         </manifest>
   992         </manifest>
   986     </target>
   993     </target>
   987     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
   994     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
   988         <basename file="${application.splash}" property="splashscreen.basename"/>
   995         <basename file="${application.splash}" property="splashscreen.basename"/>
   989         <mkdir dir="${build.classes.dir}/META-INF"/>
   996         <mkdir dir="${build.classes.dir}/META-INF"/>
   990         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
   997         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
   991         <manifest file="${tmp.manifest.file}" mode="update">
   998         <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
   992             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
   999             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
   993         </manifest>
  1000         </manifest>
   994     </target>
  1001     </target>
   995     <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">
  1002     <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">
   996         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  1003         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  1181         <antcall target="test-single"/>
  1188         <antcall target="test-single"/>
  1182     </target>
  1189     </target>
  1183     <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  1190     <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  1184         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1191         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1185         <startprofiler/>
  1192         <startprofiler/>
  1186         <antcal target="run-test-with-main"/>
  1193         <antcall target="run-test-with-main"/>
  1187     </target>
  1194     </target>
  1188     <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  1195     <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  1189         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1196         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1190         <startprofiler/>
  1197         <startprofiler/>
  1191         <antcall target="run-applet"/>
  1198         <antcall target="run-applet"/>