Now we can build both a 9052 and a 1012 release from here
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3946 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -5,8 +5,8 @@
|
||||
<property name="etc" value="etc/"/>
|
||||
<property name="pmdjar" value="pmd-3.3.jar"/>
|
||||
<property name="pluginversion" value="1.7"/>
|
||||
<!-- <property name="jdeveloper.install.dir" value="/home/tom/jdev9052/jdev/lib/ext/${ant.project.name}-${pluginversion}"/> -->
|
||||
<property name="jdeveloper.install.dir" value="c:/data/jdev1012/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
||||
<property name="jdeveloper9052.install.dir" value="/home/tom/jdev9052/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
||||
<property name="jdeveloper1012.install.dir" value="c:/data/jdev1012/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
||||
|
||||
|
||||
<path id="project.class.path">
|
||||
@ -19,7 +19,8 @@
|
||||
|
||||
<target name="delete">
|
||||
<delete file="lib/${ant.project.name}.jar"/>
|
||||
<delete file="${jdeveloper.install.dir}/${ant.project.name}.jar"/>
|
||||
<delete file="${jdeveloper9052.install.dir}/${ant.project.name}.jar"/>
|
||||
<delete file="${jdeveloper1012.install.dir}/${ant.project.name}.jar"/>
|
||||
<delete dir="build"/>
|
||||
<mkdir dir="build"/>
|
||||
</target>
|
||||
@ -31,37 +32,62 @@
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<copy file="etc/jdev-ext.xml" todir="build/meta-inf"/>
|
||||
<target name="jarall" depends="compile">
|
||||
<jar jarfile="lib/${ant.project.name}-${pluginversion}.jar">
|
||||
<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"/>
|
||||
<copy file="lib/jaxen-1.1-beta-7.jar" todir="${jdeveloper.install.dir}/lib"/>
|
||||
<target name="jar1012" depends="compile">
|
||||
<copy file="etc/jdev1012-ext.xml" tofile="build/meta-inf/jdev-ext.xml"/>
|
||||
<antcall target="jarall"/>
|
||||
</target>
|
||||
|
||||
<target name="jar9052" depends="compile">
|
||||
<copy file="etc/jdev9052-ext.xml" tofile="build/meta-inf/jdev-ext.xml"/>
|
||||
<antcall target="jarall"/>
|
||||
</target>
|
||||
|
||||
<target name="deploy1012" depends="delete,jar1012">
|
||||
<mkdir dir="${jdeveloper1012.install.dir}/lib"/>
|
||||
<copy file="lib/${ant.project.name}-${pluginversion}.jar" todir="${jdeveloper1012.install.dir}/lib"/>
|
||||
<copy file="lib/${pmdjar}" todir="${jdeveloper1012.install.dir}/lib"/>
|
||||
<copy file="lib/jaxen-1.1-beta-7.jar" todir="${jdeveloper1012.install.dir}/lib"/>
|
||||
</target>
|
||||
|
||||
<target name="release" depends="clean,jar">
|
||||
<target name="deploy9052" depends="delete,jar9052">
|
||||
<mkdir dir="${jdeveloper9052.install.dir}/lib"/>
|
||||
<copy file="lib/${ant.project.name}-${pluginversion}.jar" todir="${jdeveloper9052.install.dir}/lib"/>
|
||||
<copy file="lib/${pmdjar}" todir="${jdeveloper9052.install.dir}/lib"/>
|
||||
<copy file="lib/jaxen-1.1-beta-7.jar" todir="${jdeveloper9052.install.dir}/lib"/>
|
||||
</target>
|
||||
|
||||
<target name="releaseall">
|
||||
<mkdir dir="tmp/${ant.project.name}-${pluginversion}/lib"/>
|
||||
<copy file="lib/${ant.project.name}-${pluginversion}.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
|
||||
<copy file="lib/${pmdjar}" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
|
||||
<copy file="lib/jaxen-1.1-beta-7.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib"/>
|
||||
<zip zipfile="pmd-jdeveloper-bin-${pluginversion}.zip" basedir="tmp/"/>
|
||||
<move file="pmd-jdeveloper-bin-${pluginversion}.zip" todir="/home/tom/tmp"/>
|
||||
</target>
|
||||
|
||||
<target name="release1012" depends="clean,jar1012,releaseall">
|
||||
<zip zipfile="pmd-jdeveloper1012-bin-${pluginversion}.zip" basedir="tmp/"/>
|
||||
<move file="pmd-jdeveloper1012-bin-${pluginversion}.zip" todir="/home/tom/tmp"/>
|
||||
<delete dir="tmp"/>
|
||||
</target>
|
||||
|
||||
<target name="release9052" depends="clean,jar9052,releaseall">
|
||||
<zip zipfile="pmd-jdeveloper9052-bin-${pluginversion}.zip" basedir="tmp/"/>
|
||||
<move file="pmd-jdeveloper9052-bin-${pluginversion}.zip" todir="/home/tom/tmp"/>
|
||||
<delete dir="tmp"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="delete,compile">
|
||||
</target>
|
||||
|
||||
<target name="tomserver" depends="release">
|
||||
<target name="tomserver1012" depends="release1012">
|
||||
<echo message="Uploading zip file"/>
|
||||
<exec executable="scp" os="Linux">
|
||||
<arg line=" /home/tom/tmp/pmd-jdeveloper-bin-${pluginversion}.zip tom@infoether.com:public_html/"/>
|
||||
<arg line=" /home/tom/tmp/pmd-jdeveloper1012-bin-${pluginversion}.zip tom@infoether.com:public_html/"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
19
pmd-jdeveloper/etc/jdev9052-ext.xml
Normal file
19
pmd-jdeveloper/etc/jdev9052-ext.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version = '1.0' encoding = 'windows-1252'?>
|
||||
<extensions xmlns="http://xmlns.oracle.com/jdeveloper/905/extensions">
|
||||
<feature>
|
||||
<group name="" nlsclass="" exclusive="false">
|
||||
<description>PMD static analysis plugin</description>
|
||||
<extension>
|
||||
<addin>net.sourceforge.pmd.jdeveloper.Plugin</addin>
|
||||
<dependency_addin>oracle.jdeveloper.library.JLibraryManager</dependency_addin>
|
||||
<gallery>
|
||||
<name>net.sourceforge.pmd.jdeveloper.Plugin</name>
|
||||
<description>PMD static analysis</description>
|
||||
<help>PMD static analysis</help>
|
||||
<category>General</category>
|
||||
<folder>PMD</folder>
|
||||
</gallery>
|
||||
</extension>
|
||||
</group>
|
||||
</feature>
|
||||
</extensions>
|
Reference in New Issue
Block a user