blob: 5d1c3e63c6f9901bbccf1cd155687e4187bfb3f7 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011, 2014 SAP AG.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
SAP AG - initial implementation
-->
<project name="copy-build-results" default="default" basedir=".">
<target name="default"
depends="initProperties,copyProducts,copyUpdateSite,cleanupBuild">
<echo message="${env.cleanupBuild}" />
<echo message="${env.result}" />
</target>
<target name="initProperties">
<property name="buildResultsDir" value="../../latestBuildResults" />
<property name="producedRCPsDir" value="../org.eclipse.mat.product/target/products" />
<property name="producedUpdateSiteDir" value="../org.eclipse.mat.updatesite/target/repository" />
<property environment="env" />
<delete dir="${buildResultsDir}" />
</target>
<target name="copyProducts" description="Copy produced RCPs">
<copy todir="${buildResultsDir}/rcp">
<fileset dir="${producedRCPsDir}/">
<include name="*.zip" />
</fileset>
</copy>
</target>
<target name="copyUpdateSite" description="Copy produced update site">
<copy todir="${buildResultsDir}/update-site">
<fileset dir="${producedUpdateSiteDir}/" />
</copy>
</target>
<target name="cleanupBuild" description="Removes target folders generated by mvn"
if="env.cleanupBuild">
<echo message="Cleaning up org.eclipse.mat.product/target/ directory" />
<delete dir="../org.eclipse.mat.product/target" />
</target>
</project>