-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildCommon.xml
57 lines (44 loc) · 2.11 KB
/
buildCommon.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="relengCommon" basedir=".">
<taskdef resource="antlib.xml" classpath="../org.eclipse.imp.update/ant-imp.jar"/>
<property name="basews" value="${ws}"/>
<property name="baseos" value="${os}"/>
<property name="basearch" value="${arch}"/>
<property name="basenl" value="${nl}"/>
<!-- Compiler settings. -->
<property name="javacFailOnError" value="true"/>
<property name="javacDebugInfo" value="on"/>
<property name="javacVerbose" value="false"/>
<echo message="java.home = ${java.home}"/>
<echo message="java.class.path = ${java.class.path}"/>
<echo message="ant.home = ${ant.home}"/>
<!-- Following assumes we're invoking the build from within some plugin project's top-level directory -->
<xmlproperty file="../org.eclipse.imp.releng.feature/feature.xml" prefix="releng"/>
<echo message="Building for IMP Release Engineering feature version ${releng.feature(version)}"/>
<property name="releng.version" value="${releng.feature(version)}"/>
<condition property="mac.jre.path" value="${java.home}/../Classes">
<os family="mac"/>
</condition>
<echo message="mac.jre.path = ${mac.jre.path}"/>
<path id="path_bootclasspath">
<pathelement path="${java.class.path}"/>
<fileset dir="${mac.jre.path}">
<include name="*.jar"/>
</fileset>
<fileset dir="${java.home}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${ant.home}/lib">
<include name="*.jar"/>
</fileset>
</path>
<property name="bootclasspath" refid="path_bootclasspath"/>
<fail unless="eclipse.target.platform" message="You must define eclipse.target.platform as the location of the Eclipse installation against which IMP should be built."/>
<echo message="eclipse.target.platform = ${eclipse.target.platform}"/>
<path id="path_eclipse.build.path">
<fileset dir="${eclipse.target.platform}/plugins">
<include name="**/*.jar"/>
</fileset>
</path>
<pathconvert property="eclipse.build.path" refid="path_eclipse.build.path" targetos="windows"/>
</project>