summaryrefslogtreecommitdiff
path: root/qpid/java/management/eclipse-plugin/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/management/eclipse-plugin/build.xml')
-rw-r--r--qpid/java/management/eclipse-plugin/build.xml55
1 files changed, 55 insertions, 0 deletions
diff --git a/qpid/java/management/eclipse-plugin/build.xml b/qpid/java/management/eclipse-plugin/build.xml
index 492783e574..5cfd13f2a5 100644
--- a/qpid/java/management/eclipse-plugin/build.xml
+++ b/qpid/java/management/eclipse-plugin/build.xml
@@ -24,4 +24,59 @@
<import file="../../module.xml"/>
+ <!-- module.manifest property to invoke use of 'jar.manifest' jar target when building -->
+ <property name="module.manifest" value="${module.classes}/META-INF/MANIFEST.MF"/>
+
+ <target name="copy-plugin-files" description="copy eclipse management plugin files into build tree">
+ <copy todir="${module.classes}/icons" failonerror="true">
+ <fileset dir="icons/"/>
+ </copy>
+ <copy todir="${module.classes}/META-INF/" failonerror="true">
+ <fileset dir="META-INF/"/>
+ </copy>
+ <copy todir="${module.classes}" failonerror="true">
+ <fileset file="icons/splash.bmp"/>
+ </copy>
+ <copy todir="${module.classes}" failonerror="true">
+ <fileset file="plugin.properties"/>
+ </copy>
+ <copy todir="${module.classes}" failonerror="true">
+ <fileset file="plugin.xml"/>
+ </copy>
+ </target>
+
+ <target name="create-version" description="Create the version file">
+
+ <exec executable="svnversion" spawn="false" failifexecutionfails="false"
+ dir="." outputproperty="svnversion">
+ <arg line="."/>
+ </exec>
+
+ <!-- Write the version.properties out. -->
+ <propertyfile file="${module.classes}/qpidversion.properties">
+ <entry key="qpid.version" value="${project.version}"/>
+ <entry key="qpid.svnversion" value="${svnversion}"/>
+ <entry key="qpid.name" value="${project.name}"/>
+ </propertyfile>
+
+ </target>
+
+
+ <!-- Override imported module.xml build target, create module jar containing plugin files -->
+ <target name="build" depends="prepare, compile, copy-plugin-files, create-version, jar, jar-tests"/>
+
+ <!-- Override imported module.xml release-bin target -->
+ <target name="release-bin" depends="build">
+ <!-- linux gtk x86 -->
+ <ant antfile="build-release.xml">
+ <property file="build-release-linux-gtk-x86.properties"/>
+ <property file="build-release-common.properties"/>
+ </ant>
+ <!-- win32 win32 x86 -->
+ <ant antfile="build-release.xml">
+ <property file="build-release-win32-win32-x86.properties"/>
+ <property file="build-release-common.properties"/>
+ </ant>
+ </target>
+
</project>