Putting together automated release bundle thingy

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3908 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2005-10-14 01:10:40 +00:00
parent e4c0c33c60
commit ca64fab1fd
3 changed files with 46 additions and 2 deletions

View File

@ -5,6 +5,7 @@
<property name="etc" value="etc/"/> <property name="etc" value="etc/"/>
<property name="pmdjar" value="pmd-3.3.jar"/> <property name="pmdjar" value="pmd-3.3.jar"/>
<property name="pluginversion" value="1.7"/> <property name="pluginversion" value="1.7"/>
<property name="bundle.jarname" value="oracle.jdeveloper.extensions.pmd.${pluginversion}.jar"/>
<property name="jdeveloper.install.dir" value="c:/data/jdev1013/jdev/lib/ext/${ant.project.name}-${pluginversion}"/> <property name="jdeveloper.install.dir" value="c:/data/jdev1013/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
@ -31,8 +32,7 @@
</target> </target>
<target name="jar" depends="compile"> <target name="jar" depends="compile">
<copy file="etc/jdev-ext.xml" todir="build/meta-inf"/> <jar jarfile="lib/${bundle.jarname}">
<jar jarfile="lib/${ant.project.name}-${pluginversion}.jar">
<fileset dir="build" excludes="**/*.di,**/*.i"/> <fileset dir="build" excludes="**/*.di,**/*.i"/>
</jar> </jar>
</target> </target>
@ -64,4 +64,18 @@
</exec> </exec>
</target> </target>
<target name="bundle" depends="jar">
<delete dir="update-center-bundle/"/>
<mkdir dir="update-center-bundle/META-INF"/>
<copy file="etc/bundle.xml" tofile="update-center-bundle/META-INF/bundle.xml"/>
<copy file="etc/center.xml" tofile="update-center-bundle/center.xml"/>
<copy file="lib/${bundle.jarname}" todir="update-center-bundle/"/>
<zip destfile="update-center-bundle/pmd-jdeveloper1013-1.7.zip" basedir="update-center-bundle">
<exclude name="center.xml"/>
<exclude name="*.zip"/>
</zip>
<delete file="update-center-bundle/${bundle.jarname}"/>
<delete dir="update-center-bundle/META-INF"/>
</target>
</project> </project>

View File

@ -0,0 +1,17 @@
<?xml version = '1.0'?>
<update-bundle version="1.0"
xmlns="http://xmlns.oracle.com/jdeveloper/updatebundle"
xmlns:u="http://xmlns.oracle.com/jdeveloper/update">
<u:update id="oracle.jdeveloper.extensions.pmd">
<u:name>PMD JDeveloper Extension</u:name>
<u:version>1.7</u:version>
<u:author>Tom Copeland</u:author>
<u:author-url>http://pmd.sf.net</u:author-url>
<u:description>Install the PMD extension in your instance of JDeveloper</u:description>
<u:requirements>
<u:requires-extension id="oracle.jdeveloper"
minVersion="10.1.3"
maxVersion="10.1.4" />
</u:requirements>
</u:update>
</update-bundle>

View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<updates version="1.0"
xmlns="http://xmlns.oracle.com/jdeveloper/updatecenter"
xmlns:u="http://xmlns.oracle.com/jdeveloper/update">
<u:update id="oracle.jdeveloper.extensions.pmd">
<u:name>PMD JDeveloper Extension</u:name>
<u:version>1.7</u:version>
<u:author>Tom Copeland</u:author>
<u:author-url>http://pmd.sf.net</u:author-url>
<u:description>Install the PMD extension in your instance of JDeveloper</u:description>
<u:bundle-url>http://pmd.sf.net/pmd-jdeveloper1013-1.7.zip</u:bundle-url>
</u:update>
</updates>