2003-11-30 21:31:22 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<project name= "net.sourceforge.pmd.eclipse" default= "build.update.jar" basedir= "." >
<target name= "init" >
<property name= "feature.temp.folder" value= "${basedir}/feature.temp.folder" />
<property name= "feature.destination" value= "${basedir}" />
</target>
<target name= "all.plugins" depends= "init" >
2003-12-09 00:16:42 +00:00
<ant antfile= "build.xml" dir= "../pmd-eclipse-pmd/" target= "${target}" >
</ant>
<ant antfile= "build.xml" dir= "../pmd-eclipse/" target= "${target}" >
</ant>
</target>
<target name= "all.features" depends= "init" >
</target>
<target name= "update.feature" depends= "init" >
2003-11-30 21:31:22 +00:00
</target>
2003-12-09 00:16:42 +00:00
<target name= "all.children" depends= "init,all.features,all.plugins,update.feature" >
2003-11-30 21:31:22 +00:00
</target>
<target name= "children" if= "include.children" >
<antcall target= "all.children" />
</target>
<target name= "build.jars" depends= "init" description= "Build all the jars for the feature: net.sourceforge.pmd.eclipse." >
<antcall target= "all.children" >
<param name= "target" value= "build.jars" />
</antcall>
</target>
<target name= "build.sources" depends= "init" >
<antcall target= "all.children" >
<param name= "target" value= "build.sources" />
</antcall>
</target>
<target name= "build.zips" depends= "init" >
<antcall target= "all.children" >
<param name= "target" value= "build.zips" />
</antcall>
</target>
<target name= "build.update.jar" depends= "init" description= "Build the feature jar of: net.sourceforge.pmd.eclipse for an update site." >
<antcall target= "all.children" >
<param name= "target" value= "build.update.jar" />
</antcall>
<property name= "feature.base" value= "${feature.temp.folder}" />
<delete dir= "${feature.temp.folder}" />
<mkdir dir= "${feature.temp.folder}" />
<antcall target= "gather.bin.parts" inheritAll= "false" >
2003-12-09 00:16:42 +00:00
<param name= "arch" value= "*" />
<param name= "ws" value= "*" />
<param name= "nl" value= "*" />
<param name= "os" value= "*" />
2003-11-30 21:31:22 +00:00
<param name= "feature.base" value= "${feature.temp.folder}" />
</antcall>
2003-12-18 23:59:42 +00:00
<jar jarfile= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.jar" basedir= "${feature.temp.folder}/features/net.sourceforge.pmd.eclipse_2.0.2.v3" />
2003-11-30 21:31:22 +00:00
<delete dir= "${feature.temp.folder}" />
</target>
<target name= "gather.bin.parts" depends= "init" if= "feature.base" >
<antcall target= "children" >
<param name= "destination.temp.folder" value= "${feature.base}/plugins" />
<param name= "target" value= "gather.bin.parts" />
</antcall>
2003-12-18 23:59:42 +00:00
<mkdir dir= "${feature.base}/features/net.sourceforge.pmd.eclipse_2.0.2.v3" />
<copy todir= "${feature.base}/features/net.sourceforge.pmd.eclipse_2.0.2.v3" >
2003-12-09 00:16:42 +00:00
<fileset dir= "${basedir}" includes= "feature.xml,feature.properties,pmd_logo_small.jpg" />
2003-11-30 21:31:22 +00:00
</copy>
2003-12-18 23:59:42 +00:00
<eclipse.idReplacer featureFilePath= "${feature.base}/features/net.sourceforge.pmd.eclipse_2.0.2.v3/feature.xml" featureIds= "" pluginIds= "net.sourceforge.pmd.eclipse,2.0.2.v3,net.sourceforge.pmd.core,1.3.3," />
2003-12-09 00:16:42 +00:00
<antcall target= "ROOTFILES${os}_${ws}_${arch}" />
</target>
<target name= "ROOTFILES*_*_*" >
2003-11-30 21:31:22 +00:00
</target>
<target name= "zip.distribution" depends= "init" description= "Create a zip containing all the plug-ins and features for the feature: net.sourceforge.pmd.eclipse." >
<delete dir= "${feature.temp.folder}" />
<mkdir dir= "${feature.temp.folder}" />
<antcall target= "gather.bin.parts" >
2003-12-09 00:16:42 +00:00
<param name= "arch" value= "*" />
<param name= "ws" value= "*" />
<param name= "nl" value= "*" />
2003-11-30 21:31:22 +00:00
<param name= "include.children" value= "true" />
<param name= "feature.base" value= "${feature.temp.folder}" />
2003-12-09 00:16:42 +00:00
<param name= "os" value= "*" />
2003-11-30 21:31:22 +00:00
</antcall>
2003-12-18 23:59:42 +00:00
<zip zipfile= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.bin.dist.zip" basedir= "${feature.temp.folder}" filesonly= "false" whenempty= "skip" />
2003-11-30 21:31:22 +00:00
<delete dir= "${feature.temp.folder}" />
</target>
<target name= "zip.sources" depends= "init" >
<delete dir= "${feature.temp.folder}" />
<mkdir dir= "${feature.temp.folder}" />
<antcall target= "all.children" >
2003-12-18 23:59:42 +00:00
<param name= "destination.temp.folder" value= "${feature.temp.folder}/plugins/net.sourceforge.pmd.eclipse.source_2.0.2.v3/src" />
2003-12-09 00:16:42 +00:00
<param name= "include.children" value= "true" />
2003-11-30 21:31:22 +00:00
<param name= "target" value= "gather.sources" />
</antcall>
2003-12-18 23:59:42 +00:00
<zip zipfile= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.src.zip" basedir= "${feature.temp.folder}" filesonly= "true" whenempty= "skip" />
2003-11-30 21:31:22 +00:00
<delete dir= "${feature.temp.folder}" />
</target>
<target name= "zip.logs" depends= "init" >
<delete dir= "${feature.temp.folder}" />
<mkdir dir= "${feature.temp.folder}" />
<antcall target= "all.children" inheritAll= "false" >
<param name= "destination.temp.folder" value= "${feature.temp.folder}/plugins" />
2003-12-09 00:16:42 +00:00
<param name= "include.children" value= "true" />
2003-11-30 21:31:22 +00:00
<param name= "target" value= "gather.logs" />
</antcall>
2003-12-18 23:59:42 +00:00
<zip zipfile= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.log.zip" basedir= "${feature.temp.folder}" filesonly= "true" whenempty= "skip" />
2003-11-30 21:31:22 +00:00
<delete dir= "${feature.temp.folder}" />
</target>
<target name= "clean" depends= "init" description= "Clean the feature: net.sourceforge.pmd.eclipse of all the zips, jars and logs created." >
2003-12-18 23:59:42 +00:00
<delete file= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.jar" />
<delete file= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.bin.dist.zip" />
<delete file= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.log.zip" />
<delete file= "${feature.destination}/net.sourceforge.pmd.eclipse_2.0.2.v3.src.zip" />
2003-11-30 21:31:22 +00:00
<delete dir= "${feature.temp.folder}" />
<antcall target= "all.children" >
<param name= "target" value= "clean" />
</antcall>
</target>
2003-12-09 00:16:42 +00:00
<target name= "refresh" depends= "init" if= "eclipse.running" description= "Refresh this folder." >
<eclipse.convertPath fileSystemPath= "c:/home/phherlin/javadev/PMD_3/pmd-eclipse-feature" property= "resourcePath" />
2003-12-18 23:59:42 +00:00
<eclipse.refreshLocal resource= "${net.sourceforge.pmd.eclipse_2.0.2.v3}" depth= "infinite" />
2003-11-30 21:31:22 +00:00
<antcall target= "all.children" >
<param name= "target" value= "refresh" />
</antcall>
</target>
2003-12-09 00:16:42 +00:00
<target name= "gather.sources" >
<antcall target= "children" >
2003-12-18 23:59:42 +00:00
<param name= "destination.temp.folder" value= "${feature.temp.folder}/plugins/net.sourceforge.pmd.eclipse.source_2.0.2.v3/src" />
2003-12-09 00:16:42 +00:00
<param name= "target" value= "gather.sources" />
</antcall>
</target>
<target name= "gather.logs" depends= "init" >
<mkdir dir= "${feature.temp.folder}" />
<antcall target= "all.children" inheritAll= "false" >
<param name= "destination.temp.folder" value= "${feature.temp.folder}/plugins" />
<param name= "target" value= "gather.logs" />
</antcall>
</target>
2003-11-30 21:31:22 +00:00
</project>