summaryrefslogtreecommitdiff
path: root/qpid/java/management/eclipse-plugin/build.xml
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2008-11-26 18:23:31 +0000
committerMartin Ritchie <ritchiem@apache.org>2008-11-26 18:23:31 +0000
commit0ccd6e225d96f96c86cf85a766a3a43ab4b05648 (patch)
tree3a7b09ecd42aeed66ce6aa39822d80ca7eeefecb /qpid/java/management/eclipse-plugin/build.xml
parentf2495a5cfa78321bb21e0bd97734421c0c627024 (diff)
downloadqpid-python-0ccd6e225d96f96c86cf85a766a3a43ab4b05648.tar.gz
QPID-1243 : Applied patch from Robert Gemmell. Took a different approach for the linux binaries as the provided binaries requried a newer libc than I have. Also restored the qpidversion.properties file generation for this module that
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@720931 13f79535-47bb-0310-9956-ffa450edef68
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>