-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexportUpdateCustom.xml
93 lines (79 loc) · 4.09 KB
/
exportUpdateCustom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.imp.update" default="build.update.zip" basedir=".">
<target name="init.custom">
<property name="global.plugin.script" value="../org.eclipse.imp.update/exportPlugin.xml"/>
<property name="default.feature.script" value="../org.eclipse.imp.update/exportFeature.xml"/>
<property name="cache.dir" value="./cache"/>
<mkdir dir="${cache.dir}"/>
</target>
<target name="collect.extra.artifacts">
<antcall target="collect.lpg.artifacts"/>
<antcall target="collect.polyglot.artifacts"/>
</target>
<target name="collect.lpg.artifacts">
<delete dir="../lpg.update/plugins" includes="*.jar"/>
<delete dir="../lpg.update/features" includes="*.jar"/>
<ant antfile="../lpg.update/exportUpdate.xml" target="build.plugins"/>
<ant antfile="../lpg.update/exportUpdate.xml" target="build.features"/>
<copy todir="${update.temp.folder}/plugins" failonerror="true" overwrite="false">
<fileset dir="../lpg.update/plugins" includes="*.jar"/>
</copy>
<copy todir="${update.temp.folder}/features" failonerror="true" overwrite="false">
<fileset dir="../lpg.update/features" includes="*.jar"/>
</copy>
</target>
<target name="collect.polyglot.artifacts">
<delete dir="../polyglot/eclipseUpdates/plugins" includes="*.jar"/>
<delete dir="../polyglot/eclipseUpdates/features" includes="*.jar"/>
<ant antfile="../polyglot/build.xml" dir="../polyglot" target="build-plugin"/>
<ant antfile="../polyglot/build.xml" dir="../polyglot" target="build-features"/>
<copy todir="${update.temp.folder}/plugins" failonerror="true" overwrite="false">
<fileset dir="../polyglot/eclipseUpdates/plugins" includes="polyglot_*.jar"/>
</copy>
<copy todir="${update.temp.folder}/features" failonerror="true" overwrite="false">
<fileset dir="../polyglot/eclipseUpdates/features" includes="polyglot_*.jar"/>
</copy>
</target>
<target name="add.all.features">
<antcall target="add.features.lpg"/>
<antcall target="add.features.polyglot"/>
<antcall target="add.features.imp"/>
</target>
<target name="add.features.lpg">
<antcall target="add.feature">
<param name="feature.id" value="lpg.generator"/>
<param name="feature.version" value="${lpg.version}"/>
<param name="category" value="IMP Prerequisites"/>
</antcall>
<antcall target="add.feature">
<param name="feature.id" value="lpg.runtime"/>
<param name="feature.version" value="${lpg.version}"/>
<param name="category" value="IMP Prerequisites"/>
</antcall>
</target>
<target name="add.features.polyglot">
<antcall target="add.feature">
<param name="feature.id" value="polyglot"/>
<param name="feature.version" value="${polyglot.version}"/>
<param name="category" value="IMP Prerequisites"/>
</antcall>
</target>
<target name="add.features.imp">
<for param="feature.id" values="${feature.list}" separator=",">
<!-- The following, when inlined, fails to set a new feature.version for each iteration (why???) -->
<antcall target="add.imp.feature"/>
</for>
</target>
<target name="add.imp.feature">
<xmlproperty file="../${feature.id}.feature/feature.xml"/>
<echo message="feature id = ${feature.id}"/>
<propertyRegexp name="feature.version" input="${feature(version)}" regexp="(.*).qualifier" value="\1.${build.qualifier}"/>
<echo message="feature version = ${feature(version)}"/>
<antcall target="add.bin.src.features">
<param name="feature.id" value="${feature.id}"/>
<param name="feature.version" value="${feature.version}"/>
<param name="bin.category" value="IMP"/>
<param name="src.category" value="IMP Source"/>
</antcall>
</target>
</project>