A mostly working command line (headless) build using PDE build. Still needs some...
[phpeclipse.git] / build / build.xml
diff --git a/build/build.xml b/build/build.xml
new file mode 100644 (file)
index 0000000..20bef5c
--- /dev/null
@@ -0,0 +1,30 @@
+<project name="Build PHPEclipse" default="main">
+       <property file="${user.home}/phpeclipse/build.properties" />
+       <property file="${basedir}/build.properties" />
+       <property environment="env" />
+
+       <property name="builder" location="${basedir}" />
+       <property name="buildDirectory" location="${builder}/build" />
+  <property name="base" location="${buildDirectory}/base" />
+  <property name="baseLocation" location="${base}/eclipse" />
+       <property name="tempDirectory" location="${buildDirectory}/temp" />
+       <property name="base.eclipse.install" value="d:/ee-pw-1.2.0/" />
+       <property name="pdebuild.version" value="3.2.0.v20060603" />
+       <property name="pdebuild.build.xml" value="${base.eclipse.install}/plugins/org.eclipse.pde.build_${pdebuild.version}/scripts/build.xml" />
+
+       <target name="main" description="build everything">
+               <mkdir dir="${buildDirectory}" />
+               <mkdir dir="${buildDirectory}/temp" />
+               <ant antfile="${pdebuild.build.xml}" dir="${builder}" />
+       </target>
+
+       <target name="clean" description="clean the build directory, except for the downloaded zips">
+               <delete includeemptydirs="true"  deleteonexit="true">
+                       <fileset dir="${buildDirectory}" >
+                               <include name="*/**" />
+                               <exclude name="downloads/**" />
+                       </fileset>
+               </delete>
+       </target>
+
+</project>