1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.css.ui" default="build.jars" basedir=".">
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=""/>
16 <target name="init" depends="properties">
17 <condition property="pluginTemp" value="${buildTempFolder}/plugins">
18 <isset property="buildTempFolder"/>
20 <property name="pluginTemp" value="${basedir}"/>
21 <condition property="build.result.folder" value="${pluginTemp}/net.sourceforge.phpeclipse.css.ui">
22 <isset property="buildTempFolder"/>
24 <property name="build.result.folder" value="${basedir}"/>
25 <property name="temp.folder" value="${basedir}/temp.folder"/>
26 <property name="plugin.destination" value="${basedir}"/>
29 <target name="properties" if="eclipse.running">
30 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
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}/"/>
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}"/>
44 <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.css.ui.">
47 <target name="build.sources" depends="init">
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" />
57 <target name="build.zips" depends="init">
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/" />
66 <target name="gather.logs" depends="init" if="destination.temp.folder">
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}"/>
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"/>
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}/"/>
88 <antcall target="gather.sources">
89 <param name="destination.temp.folder" value="${temp.folder}/"/>
92 <fileset dir="${temp.folder}" includes="**/*.bin.log" />
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}"/>