Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd.Willink2012-05-27 17:39:29 +0000
committerEd.Willink2012-05-27 17:39:29 +0000
commit0f04dc8273626f716338c50dac5b10ab67dcf449 (patch)
treef1065b225118ddb4690fab8b7b9f63f1719acbc0 /examples/org.eclipse.qvtd.examples/buildZips.xml
parenteebe1f5b6ff3c739a22efb1ae574123f894a8f55 (diff)
downloadorg.eclipse.qvtd-0f04dc8273626f716338c50dac5b10ab67dcf449.tar.gz
org.eclipse.qvtd-0f04dc8273626f716338c50dac5b10ab67dcf449.tar.xz
org.eclipse.qvtd-0f04dc8273626f716338c50dac5b10ab67dcf449.zip
[unrelated] Add the examples
Diffstat (limited to 'examples/org.eclipse.qvtd.examples/buildZips.xml')
-rw-r--r--examples/org.eclipse.qvtd.examples/buildZips.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/org.eclipse.qvtd.examples/buildZips.xml b/examples/org.eclipse.qvtd.examples/buildZips.xml
new file mode 100644
index 000000000..a68b68217
--- /dev/null
+++ b/examples/org.eclipse.qvtd.examples/buildZips.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="org.eclipse.qvtd.examples" default="zip.examples" basedir=".">
+ <target name="init">
+ </target>
+
+ <patternset id="qvtc.excludes" excludes="qvtcbin/**"/>
+ <patternset id="qvtr.excludes" excludes="qvtrbin/**"/>
+
+ <target name="zip.examples" depends="init">
+ <!-- ../../examples is the prefcerred project layout
+ ../ is the result of an Import Project Set File -->
+ <condition property="examplesDir" value="../../examples/" else="../">
+ <available file="../../examples" type="dir"/>
+ </condition>
+ <echoproperties/>
+ <!-- This example may have been compiled already in the Master feature -->
+ <delete>
+ <!-- Cleanup obsolete zips from earlier variant of script -->
+ <fileset dir="zips" includes="*.zip"/>
+ </delete>
+ <mkdir dir="zips/qvtc"/>
+ <zip destfile="zips/qvtc/empty.zip" basedir="${examplesDir}org.eclipse.qvtd.examples.qvtcore.empty">
+ <patternset refid="qvtc.excludes"/>
+ </zip>
+ <mkdir dir="zips/qvtr"/>
+ <zip destfile="zips/qvtr/empty.zip" basedir="${examplesDir}org.eclipse.qvtd.examples.qvtrelation.empty">
+ <patternset refid="qvtr.excludes"/>
+ </zip>
+ <zip destfile="zips/qvtr/modelmorf.zip" basedir="${examplesDir}org.eclipse.qvtd.examples.qvtrelation.modelmorf">
+ <patternset refid="qvtr.excludes"/>
+ </zip>
+ <zip destfile="zips/qvtr/reltocore.zip" basedir="${examplesDir}org.eclipse.qvtd.examples.qvtrelation.reltocore">
+ <patternset refid="qvtr.excludes"/>
+ </zip>
+ <antcall target="refresh"/>
+ </target>
+
+ <target name="clean" depends="init" description="Clean the plug-in: org.eclipse.qvtd.examples.">
+ <delete>
+ <fileset dir="zips" includes="**/*.zip"/>
+ </delete>
+ <antcall target="refresh"/>
+ </target>
+
+ <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
+ <eclipse.refreshLocal resource="/org.eclipse.qvtd.examples" depth="infinite"/>
+ </target>
+</project>

Back to the top