ba60b7371bc2171cd12a6b88abd87afd0e0cd9e0
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.ui / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.css.ui" default="build.jars" basedir=".">
3
4         <property name="bootclasspath" value=""/>
5         <property name="basews" value="${ws}"/>
6         <property name="baseos" value="${os}"/>
7         <property name="basearch" value="${arch}"/>
8         <property name="basenl" value="${nl}"/>
9         <property name="javacFailOnError" value="false"/>
10         <property name="javacDebugInfo" value="on"/>
11         <property name="javacVerbose" value="true"/>
12         <property name="javacSource" value="1.3"/>
13         <property name="javacTarget" value="1.2"/>
14         <property name="compilerArg" value=""/>
15
16         <target name="init" depends="properties">
17                 <condition property="pluginTemp" value="${buildTempFolder}/plugins">
18                         <isset property="buildTempFolder"/>
19                 </condition>
20                 <property name="pluginTemp" value="${basedir}"/>
21                 <condition property="build.result.folder" value="${pluginTemp}/net.sourceforge.phpeclipse.css.ui">
22                         <isset property="buildTempFolder"/>
23                 </condition>
24                 <property name="build.result.folder" value="${basedir}"/>
25                 <property name="temp.folder" value="${basedir}/temp.folder"/>
26                 <property name="plugin.destination" value="${basedir}"/>
27         </target>
28
29         <target name="properties" if="eclipse.running">
30                 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
31         </target>
32
33         <target name="build.update.jar" depends="init" description="Build the plug-in: net.sourceforge.phpeclipse.css.ui for an update site.">
34                 <delete dir="${temp.folder}"/>
35                 <mkdir dir="${temp.folder}"/>
36                 <antcall target="build.jars"/>
37                 <antcall target="gather.bin.parts">
38                         <param name="destination.temp.folder" value="${temp.folder}/"/>
39                 </antcall>
40                 <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.css.ui_1.1.0.jar" basedir="${temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.0" filesonly="false" whenempty="skip" update="false"/>
41                 <delete dir="${temp.folder}"/>
42         </target>
43
44         <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.css.ui.">
45         </target>
46
47         <target name="build.sources" depends="init">
48         </target>
49
50         <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
51                 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.0"/>
52                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.0" failonerror="true">
53                         <fileset dir="${basedir}" includes="plugin.xml,plugin*.properties,cssui.jar,icons/,plugin.properties" excludes="icons/.cvsignore"                       />
54                 </copy>
55         </target>
56
57         <target name="build.zips" depends="init">
58         </target>
59
60         <target name="gather.sources" depends="init" if="destination.temp.folder">
61                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.0" failonerror="false">
62                         <fileset dir="${basedir}" includes="src/"                       />
63                 </copy>
64         </target>
65
66         <target name="gather.logs" depends="init" if="destination.temp.folder">
67         </target>
68
69         <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.css.ui of all the zips, jars and logs created.">
70                 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.css.ui_1.1.0.jar"/>
71                 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.css.ui_1.1.0.zip"/>
72                 <delete dir="${temp.folder}"/>
73         </target>
74
75         <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
76                 <eclipse.convertPath fileSystemPath="C:/eclipse3/workspace/net.sourceforge.phpeclipse.css.ui" property="resourcePath"/>
77                 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
78         </target>
79
80         <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.css.ui.">
81                 <delete dir="${temp.folder}"/>
82                 <mkdir dir="${temp.folder}"/>
83                 <antcall target="build.jars"/>
84                 <antcall target="build.sources"/>
85                 <antcall target="gather.bin.parts">
86                         <param name="destination.temp.folder" value="${temp.folder}/"/>
87                 </antcall>
88                 <antcall target="gather.sources">
89                         <param name="destination.temp.folder" value="${temp.folder}/"/>
90                 </antcall>
91                 <delete>
92                         <fileset dir="${temp.folder}" includes="**/*.bin.log"                   />
93                 </delete>
94                 <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.css.ui_1.1.0.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
95                 <delete dir="${temp.folder}"/>
96         </target>
97
98 </project>