Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2014-11-20 11:18:28 +0000
committerLakshmi Shanmugam2014-11-20 11:18:28 +0000
commit088094c59594de08a44f4c1da402de40f6c20495 (patch)
tree82d80eb8d53921f4419e275b35d3caece86f5efb /bundles/org.eclipse.swt/buildInternal.xml
parentc269a884b77ac6742fe2364bcb21b18e68bdf22e (diff)
downloadeclipse.platform.swt-088094c59594de08a44f4c1da402de40f6c20495.tar.gz
eclipse.platform.swt-088094c59594de08a44f4c1da402de40f6c20495.tar.xz
eclipse.platform.swt-088094c59594de08a44f4c1da402de40f6c20495.zip
Bug 452439 - Hardcoded path to xmltasks.jar breaks user builds
Moving the tasks that generate and write the qualifiers to pom to separate build file - buildInternal.xml
Diffstat (limited to 'bundles/org.eclipse.swt/buildInternal.xml')
-rw-r--r--bundles/org.eclipse.swt/buildInternal.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/buildInternal.xml b/bundles/org.eclipse.swt/buildInternal.xml
new file mode 100644
index 0000000000..99361f3977
--- /dev/null
+++ b/bundles/org.eclipse.swt/buildInternal.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Copyright (c) 2009, 2014 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ IBM Corporation - initial API and implementation
+ -->
+
+<!--
+ Build file used only by internal SWT build that generates the libraries & tags.
+
+ lib.dir is set to point to xmltask.jar on the internal hudson used to build SWT libraries.
+ This can be overriden by setting the property on commandline.
+ -->
+
+<project name="swtinternalbuild" basedir=".">
+
+ <property name="repo.src" value="../../../eclipse.platform.swt"/>
+ <property name="repo.bin" value="../../../eclipse.platform.swt.binaries"/>
+ <property name="file_src_pom" value="bundles/org.eclipse.swt/pom.xml"/>
+ <property name="file_bin_parent_pom" value="bundles/binaries-parent/pom.xml"/>
+ <property name="lib.dir" value="/var/lib/hudson/antlib"/>
+
+ <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask">
+ <classpath>
+ <pathelement location="${lib.dir}/xmltask.jar"/>
+ </classpath>
+ </taskdef>
+
+ <!-- generates the time-stamp qualifiers and updates the pom files in source and binaries repo-->
+ <target name="generate_qualifier">
+ <tstamp><format property="build.qualifier" pattern="yyyyMMdd-HHmm"/></tstamp>
+ <echo>${build.qualifier}</echo>
+ </target>
+
+ <target name="write_qualifier" depends="generate_qualifier" description="writes the generated qualifier in pom.xml in src and binaries repo">
+ <xmltask source="${repo.src}/${file_src_pom}" dest="${repo.src}/${file_src_pom}" failWithoutMatch="true">
+ <replace path="/:project/:properties/:forceContextQualifier/text()" withText="v${build.qualifier}"/>
+ </xmltask>
+ <xmltask source="${repo.bin}/${file_bin_parent_pom}" dest="${repo.bin}/${file_bin_parent_pom}" failWithoutMatch="true">
+ <replace path="/:project/:properties/:forceContextQualifier/text()" withText="v${build.qualifier}"/>
+ </xmltask>
+ </target>
+</project>

Back to the top