2005-08-04 18:09:07 +00:00
|
|
|
<project name="pmd-jdeveloper1013" default="compile" basedir="../">
|
|
|
|
|
|
|
|
<property name="config" value="config/"/>
|
|
|
|
<property name="src" value="src/"/>
|
|
|
|
<property name="etc" value="etc/"/>
|
2006-01-30 16:47:48 +00:00
|
|
|
<property name="pmdjar" value="pmd-3.5.jar"/>
|
|
|
|
<property name="pluginversion" value="1.8"/>
|
|
|
|
<property name="bundle.dirname" value="net.sourceforge.pmd.jdeveloper.${pluginversion}"/>
|
|
|
|
<property name="bundle.jarname" value="${bundle.dirname}.jar"/>
|
2005-08-04 18:09:07 +00:00
|
|
|
<property name="jdeveloper.install.dir" value="c:/data/jdev1013/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
2005-12-02 21:38:35 +00:00
|
|
|
<property name="linux.jdeveloper.install.dir" value="/home/tom/pmd/ides/jdev1013/jdev/extensions/"/>
|
2005-08-04 18:09:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
<path id="project.class.path">
|
|
|
|
<pathelement location="lib/${pmdjar}"/>
|
2005-10-18 14:21:45 +00:00
|
|
|
<pathelement location="lib/javax-ide.jar"/>
|
2005-08-04 18:09:07 +00:00
|
|
|
<pathelement location="lib/javatools.jar"/>
|
|
|
|
<pathelement location="lib/ide.jar"/>
|
2005-11-17 04:36:49 +00:00
|
|
|
<pathelement location="lib/ojc.jar"/>
|
|
|
|
<pathelement location="lib/jdev.jar"/>
|
2005-08-04 18:09:07 +00:00
|
|
|
<pathelement location="build"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="delete">
|
|
|
|
<delete file="lib/${ant.project.name}.jar"/>
|
|
|
|
<delete dir="build"/>
|
|
|
|
<mkdir dir="build"/>
|
|
|
|
</target>
|
|
|
|
|
2006-01-31 01:08:43 +00:00
|
|
|
<target name="deletedeployed">
|
|
|
|
<delete dir="${linux.jdeveloper.install.dir}/${bundle.dirname}"/>
|
|
|
|
<delete file="${linux.jdeveloper.install.dir}/${bundle.jarname}"/>
|
|
|
|
</target>
|
|
|
|
|
2005-08-04 18:09:07 +00:00
|
|
|
<target name="compile">
|
|
|
|
<javac
|
|
|
|
srcdir="${src}" destdir="build" debug="on" deprecation="on">
|
|
|
|
<classpath refid="project.class.path"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="compile">
|
2005-10-14 02:36:31 +00:00
|
|
|
<delete dir="build/META-INF/"/>
|
|
|
|
<mkdir dir="build/META-INF"/>
|
|
|
|
<copy file="etc/extension.xml" todir="build/META-INF/"/>
|
2005-10-14 01:10:40 +00:00
|
|
|
<jar jarfile="lib/${bundle.jarname}">
|
2005-08-04 18:09:07 +00:00
|
|
|
<fileset dir="build" excludes="**/*.di,**/*.i"/>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="deploy" depends="delete,jar">
|
|
|
|
<mkdir dir="${jdeveloper.install.dir}/lib"/>
|
|
|
|
<copy file="lib/${ant.project.name}-${pluginversion}.jar" todir="${jdeveloper.install.dir}/lib"/>
|
|
|
|
<copy file="lib/${pmdjar}" todir="${jdeveloper.install.dir}/lib"/>
|
2005-10-08 00:38:01 +00:00
|
|
|
<copy file="lib/jaxen-1.1-beta-7.jar" todir="${jdeveloper.install.dir}/lib"/>
|
2006-01-30 16:47:48 +00:00
|
|
|
<copy file="lib/jakarta-oro-2.0.8.jar" todir="${jdeveloper.install.dir}/lib"/>
|
2005-08-04 18:09:07 +00:00
|
|
|
</target>
|
|
|
|
|
2005-11-17 04:36:49 +00:00
|
|
|
<target name="deploylinux" depends="delete,jar">
|
2006-01-30 16:47:48 +00:00
|
|
|
<mkdir dir="${linux.jdeveloper.install.dir}"/>
|
2005-11-17 04:36:49 +00:00
|
|
|
<copy file="lib/${bundle.jarname}" todir="${linux.jdeveloper.install.dir}"/>
|
2006-01-30 16:47:48 +00:00
|
|
|
<copy file="lib/${pmdjar}" todir="${linux.jdeveloper.install.dir}/net.sourceforge.pmd.jdeveloper.${pluginversion}/lib"/>
|
|
|
|
<copy file="lib/jaxen-1.1-beta-7.jar" todir="${linux.jdeveloper.install.dir}/net.sourceforge.pmd.jdeveloper.${pluginversion}/lib"/>
|
|
|
|
<copy file="lib/jakarta-oro-2.0.8.jar" todir="${linux.jdeveloper.install.dir}/net.sourceforge.pmd.jdeveloper.${pluginversion}/lib"/>
|
2005-11-17 04:36:49 +00:00
|
|
|
</target>
|
|
|
|
|
2005-08-04 18:09:07 +00:00
|
|
|
<target name="release" depends="clean,jar">
|
2006-01-30 16:47:48 +00:00
|
|
|
<mkdir dir="tmp/${bundle.dirname}/lib"/>
|
2006-01-30 23:14:11 +00:00
|
|
|
<copy file="lib/${bundle.jarname}" todir="tmp/"/>
|
|
|
|
<copy file="lib/${pmdjar}" todir="tmp/${bundle.dirname}/lib"/>
|
2006-01-30 16:47:48 +00:00
|
|
|
<copy file="lib/jaxen-1.1-beta-7.jar" todir="tmp/${bundle.dirname}/lib"/>
|
|
|
|
<copy file="lib/jakarta-oro-2.0.8.jar" todir="tmp/${bundle.dirname}/lib"/>
|
2005-08-04 18:09:07 +00:00
|
|
|
<zip zipfile="${ant.project.name}-bin-${pluginversion}.zip" basedir="tmp/"/>
|
|
|
|
<move file="${ant.project.name}-bin-${pluginversion}.zip" todir="/home/tom/tmp"/>
|
|
|
|
<delete dir="tmp"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean" depends="delete,compile">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="tomserver" depends="release">
|
|
|
|
<echo message="Uploading zip file"/>
|
|
|
|
<exec executable="scp" os="Linux">
|
|
|
|
<arg line=" /home/tom/tmp/${ant.project.name}-bin-${pluginversion}.zip tom@infoether.com:public_html/"/>
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2006-01-31 01:08:43 +00:00
|
|
|
<target name="bundle" depends="clean,jar,deletedeployed">
|
2005-10-14 02:36:31 +00:00
|
|
|
<delete dir="update-center-bundle/"/>
|
2005-10-14 01:10:40 +00:00
|
|
|
<mkdir dir="update-center-bundle/META-INF"/>
|
2005-10-14 02:36:31 +00:00
|
|
|
<copy file="etc/bundle.xml" todir="update-center-bundle/META-INF/"/>
|
|
|
|
<copy file="etc/center.xml" todir="update-center-bundle/"/>
|
2005-10-14 01:10:40 +00:00
|
|
|
<copy file="lib/${bundle.jarname}" todir="update-center-bundle/"/>
|
2005-10-14 02:36:31 +00:00
|
|
|
<copy file="lib/${pmdjar}" todir="update-center-bundle/net.sourceforge.pmd.jdeveloper.${pluginversion}/lib/"/>
|
|
|
|
<copy file="lib/jaxen-1.1-beta-7.jar" todir="update-center-bundle/net.sourceforge.pmd.jdeveloper.${pluginversion}/lib/"/>
|
2006-01-30 16:47:48 +00:00
|
|
|
<copy file="lib/jakarta-oro-2.0.8.jar" todir="update-center-bundle/net.sourceforge.pmd.jdeveloper.${pluginversion}/lib/"/>
|
2005-10-17 21:41:42 +00:00
|
|
|
<zip destfile="update-center-bundle/pmd-jdeveloper1013-${pluginversion}.zip" basedir="update-center-bundle">
|
2005-10-14 01:10:40 +00:00
|
|
|
<exclude name="center.xml"/>
|
|
|
|
</zip>
|
2005-10-17 21:41:42 +00:00
|
|
|
<copy file="update-center-bundle/pmd-jdeveloper1013-${pluginversion}.zip" todir="/home/tom/jdevhome/"/>
|
2005-10-14 02:36:31 +00:00
|
|
|
<delete>
|
|
|
|
<fileset dir="update-center-bundle" includes="*.jar"/>
|
|
|
|
</delete>
|
|
|
|
<delete dir="update-center-bundle/net.sourceforge.pmd.jdeveloper.${pluginversion}"/>
|
|
|
|
<delete dir="update-center-bundle/lib"/>
|
2005-10-14 01:10:40 +00:00
|
|
|
<delete dir="update-center-bundle/META-INF"/>
|
|
|
|
</target>
|
|
|
|
|
2005-10-17 21:41:42 +00:00
|
|
|
<target name="uploadbundle" depends="bundle">
|
|
|
|
<echo message="Uploading center.xml file"/>
|
|
|
|
<exec executable="scp" os="Linux">
|
|
|
|
<arg line=" update-center-bundle/center.xml tomcopeland@pmd.sf.net:/home/groups/p/pm/pmd/htdocs/"/>
|
|
|
|
</exec>
|
|
|
|
<exec executable="scp" os="Linux">
|
|
|
|
<arg line=" update-center-bundle/pmd-jdeveloper1013-${pluginversion}.zip tomcopeland@pmd.sf.net:/home/groups/p/pm/pmd/htdocs/"/>
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2005-08-04 18:09:07 +00:00
|
|
|
</project>
|