source: trunk/src/plugins/org.eclipse.platform/build.xml

Last change on this file was 164, checked in by lpino, 16 years ago
  • Property svn:eol-style set to native
File size: 4.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="org.eclipse.platform" default="build.jars" basedir=".">
3
4 <property name="bootclasspath" value=""/>
5 <property name="ws" value="motif"/>
6 <property name="os" value="linux"/>
7 <property name="arch" value="x86"/>
8
9 <target name="init" depends="properties">
10 <property name="plugin" value="org.eclipse.platform"/>
11 <property name="version.suffix" value="_2.0.1"/>
12 <property name="full.name" value="${plugin}${version.suffix}"/>
13 <property name="temp.folder" value="${basedir}/temp.folder"/>
14 <property name="plugin.destination" value="${basedir}"/>
15 <property name="build.result.folder" value="${basedir}"/>
16 </target>
17
18 <target name="properties" if="eclipse.running">
19 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
20 </target>
21
22 <target name="build.update.jar" depends="init">
23 <delete dir="${temp.folder}"/>
24 <mkdir dir="${temp.folder}"/>
25 <antcall target="build.jars"/>
26 <antcall target="gather.bin.parts">
27 <param name="destination.temp.folder" value="${temp.folder}/"/>
28 </antcall>
29 <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/>
30 <delete dir="${temp.folder}"/>
31 </target>
32
33 <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
34 <mkdir dir="${destination.temp.folder}/${full.name}"/>
35 <copy file="${build.result.folder}/startup.jar" todir="${destination.temp.folder}/${full.name}"/>
36 <copy todir="${destination.temp.folder}/${full.name}">
37 <fileset dir="${basedir}" includes="about.html,about.ini,about.mappings,about.properties,eclipse_lg.gif,eclipse.gif,eclipse32.gif,plugin_customization.ini,plugin_customization.properties,plugin.xml,plugin.properties,splash.bmp,welcome.xml"/>
38 </copy>
39 </target>
40
41 <target name="startup.jar" depends="init" unless="startup.jar">
42 <property name="destdir" value="${temp.folder}/startup.jar.bin"/>
43 <delete dir="${temp.folder}/startup.jar.bin"/>
44 <mkdir dir="${temp.folder}/startup.jar.bin"/>
45 <!-- compile the source code -->
46 <javac destdir="${temp.folder}/startup.jar.bin" failonerror="false" verbose="true" debug="on" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../org.eclipse.core.runtime/runtime.jar;../org.eclipse.core.boot/boot.jar">
47 <src path="src/"/>
48 </javac>
49 <!-- copy necessary resources -->
50 <copy todir="${temp.folder}/startup.jar.bin">
51 <fileset dir="src/" excludes="**/*.java"/>
52 </copy>
53 <mkdir dir="${build.result.folder}"/>
54 <jar jarfile="${build.result.folder}/startup.jar" basedir="${temp.folder}/startup.jar.bin"/>
55 <delete dir="${temp.folder}/startup.jar.bin"/>
56 </target>
57
58 <target name="startupsrc.zip" depends="init" unless="startupsrc.zip">
59 <mkdir dir="${build.result.folder}"/>
60 <zip zipfile="${build.result.folder}/startupsrc.zip" filesonly="false">
61 <fileset dir="src/" includes="**/*.java"/>
62 </zip>
63 </target>
64
65 <target name="build.jars" depends="init">
66 <available property="startup.jar" file="${build.result.folder}/startup.jar"/>
67 <antcall target="startup.jar"/>
68 </target>
69
70 <target name="build.sources" depends="init">
71 <available property="startupsrc.zip" file="${build.result.folder}/startupsrc.zip"/>
72 <antcall target="startupsrc.zip"/>
73 </target>
74
75 <target name="build.zips" depends="init">
76 </target>
77
78 <target name="gather.sources" depends="init" if="destination.temp.folder">
79 <mkdir dir="${destination.temp.folder}/${full.name}"/>
80 <copy file="${build.result.folder}/startupsrc.zip" todir="${destination.temp.folder}/${full.name}"/>
81 <copy todir="${destination.temp.folder}/${full.name}">
82 <fileset dir="${basedir}" includes="about.html"/>
83 </copy>
84 </target>
85
86 <target name="gather.logs" depends="init" if="destination.temp.folder">
87 <mkdir dir="${destination.temp.folder}/${full.name}"/>
88 <copy file="${temp.folder}/startup.jar.bin.log" todir="${destination.temp.folder}/${full.name}"/>
89 </target>
90
91 <target name="clean" depends="init">
92 <delete file="${build.result.folder}/startup.jar"/>
93 <delete file="${build.result.folder}/startupsrc.zip"/>
94 <delete file="${plugin.destination}/${full.name}.jar"/>
95 <delete file="${plugin.destination}/${full.name}.zip"/>
96 <delete dir="${temp.folder}"/>
97 </target>
98
99 <target name="refresh" depends="init" if="eclipse.running">
100 <eclipse.refreshLocal resource="${plugin}" depth="infinite"/>
101 </target>
102
103 <target name="zip.plugin" depends="init">
104 <delete dir="${temp.folder}"/>
105 <mkdir dir="${temp.folder}"/>
106 <antcall target="build.jars"/>
107 <antcall target="build.sources"/>
108 <antcall target="gather.bin.parts">
109 <param name="destination.temp.folder" value="${temp.folder}/"/>
110 </antcall>
111 <antcall target="gather.sources">
112 <param name="destination.temp.folder" value="${temp.folder}/"/>
113 </antcall>
114 <delete>
115 <fileset dir="${temp.folder}" includes="**/*.bin.log"/>
116 </delete>
117 <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/>
118 <delete dir="${temp.folder}"/>
119 </target>
120
121</project>
Note: See TracBrowser for help on using the repository browser.