make/netbeans/langtools/build.xml

Print this page
rev 1205 : 7150579: build-infra merge: Remove dependency on ant.
Summary: For the build tools, move ant specific code into a separate
package, anttasks. This makes it easy to avoid the ant dependency
when building using make.
Reviewed-by: ???
Contributed-by: fredrik.ohrstrom@oracle.com


 244             <sequential>
 245                 <nbjpdastart name="${ant.project.name}" addressproperty="jpda.address" transport="dt_socket">
 246                     <bootclasspath>
 247                         <pathelement location="${build.classes.dir}"/>
 248                         <pathelement location="${target.java.home}/jre/lib/rt.jar"/>
 249                     </bootclasspath>
 250                     <sourcepath>
 251                         <pathelement location="${src.classes.dir}"/>
 252                     </sourcepath>
 253                 </nbjpdastart>
 254                 <property
 255                     name="@{jpda.jvmargs.property}"
 256                     value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}"
 257                 />
 258             </sequential>
 259         </macrodef>
 260     </target>
 261 
 262     <target name="-def-select-tool">
 263         <mkdir dir="${build.toolclasses.dir}"/>
 264         <javac srcdir="${make.tools.dir}/SelectTool"

 265                destdir="${build.toolclasses.dir}/"
 266                classpath="${ant.core.lib}"
 267                includeantruntime="false"
 268                debug="${javac.debug}"
 269                debuglevel="${javac.debuglevel}">
 270                    <compilerarg line="-Xlint"/>
 271         </javac>
 272         <taskdef name="select-tool"
 273                  classname="SelectToolTask"
 274                  classpath="${build.toolclasses.dir}/"/>
 275     </target>
 276 
 277     <target name="select-tool" depends="-def-select-tool">
 278         <select-tool propertyfile="${langtools.properties}"/>
 279     </target>
 280 </project>


 244             <sequential>
 245                 <nbjpdastart name="${ant.project.name}" addressproperty="jpda.address" transport="dt_socket">
 246                     <bootclasspath>
 247                         <pathelement location="${build.classes.dir}"/>
 248                         <pathelement location="${target.java.home}/jre/lib/rt.jar"/>
 249                     </bootclasspath>
 250                     <sourcepath>
 251                         <pathelement location="${src.classes.dir}"/>
 252                     </sourcepath>
 253                 </nbjpdastart>
 254                 <property
 255                     name="@{jpda.jvmargs.property}"
 256                     value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}"
 257                 />
 258             </sequential>
 259         </macrodef>
 260     </target>
 261 
 262     <target name="-def-select-tool">
 263         <mkdir dir="${build.toolclasses.dir}"/>
 264         <javac srcdir="${make.tools.dir}"
 265                includes="anttasks/SelectTool*"
 266                destdir="${build.toolclasses.dir}/"
 267                classpath="${ant.core.lib}"
 268                includeantruntime="false"
 269                debug="${javac.debug}"
 270                debuglevel="${javac.debuglevel}">
 271                    <compilerarg line="-Xlint"/>
 272         </javac>
 273         <taskdef name="select-tool"
 274                  classname="anttasks.SelectToolTask"
 275                  classpath="${build.toolclasses.dir}/"/>
 276     </target>
 277 
 278     <target name="select-tool" depends="-def-select-tool">
 279         <select-tool propertyfile="${langtools.properties}"/>
 280     </target>
 281 </project>