<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}" defaultexcludes="false" excludes="downloads" includes="**/*">
			</fileset>
		</delete>
	</target>

	<!--
      <java description="runs a standalone update command"
            dir="@{distro.path}"
            fork="true"
            timeout="120000"
            classname="org.eclipse.core.launcher.Main"
            output="@{log.folder}/check-installed-features-@{id}@{suffix}.txt"
            errorproperty="distro.conf.error"
            outputproperty="distro.conf.details">
        <classpath>
          <pathelement location="@{distro.path}/startup.jar" />
        </classpath>
        <arg line="-application org.eclipse.update.core.standaloneUpdate -command listFeatures" />
      </java>
 
 -->
</project>
