blob: c07165d230238447ccd2f2898d949a5a06868482 [file] [log] [blame]
<!--
Copyright (c) 2010 BSI Business Systems Integration 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:
BSI Business Systems Integration AG - initial API and implementation
-->
<!--
If the property ${incubation} is true all bundle names and feature names will be extended by (Incubation).
If the property ${incubation} is false the input will be copied to the output folder.
The output folder (${buildDataDir}/step040/output) is used by step050.
-->
<project name="step040.markIncubation" default="build">
<property file="build.properties" />
<taskdef name="custom.markIncubation" classname="org.eclipse.scout.releng.ant.incubation.MarkIncubation" />
<target name="clean">
<delete dir="${buildDataDir}/step040" />
</target>
<target name="build">
<condition property="conditionIncubation">
<istrue value="${incubation}" />
</condition>
<available file="${buildDataDir}/step040/output/incubationMarker.created" property="skipStep040" />
<antcall target="markIncubation" />
<delete dir="${buildDataDir}/step040/input" failonerror="false" />
</target>
<target name="skipTask" unless="conditionIncubation">
<antcall target="clean" />
<property name="outputFolder" location="${buildDataDir}/step040/output" />
<mkdir dir="${outputFolder}" />
<copy todir="${outputFolder}">
<fileset dir="${buildDataDir}/step030/output">
<include name="**/*" />
<exclude name="*.created" />
</fileset>
</copy>
<touch file="${outputFolder}/incubationMarker.created" />
</target>
<target name="markIncubation" unless="skipStep040">
<antcall target="clean" />
<property name="inputFolder" location="${buildDataDir}/step040/input" />
<property name="outputFolder" location="${buildDataDir}/step040/output" />
<mkdir dir="${outputFolder}" />
<copy todir="${outputFolder}">
<fileset dir="${buildDataDir}/step030/output">
<include name="**/*" />
<exclude name="*.created" />
</fileset>
</copy>
<custom.markIncubation>
<fileset dir="${buildDataDir}/step040/output">
<include name="**/**.jar" />
</fileset>
</custom.markIncubation>
<touch file="${outputFolder}/incubationMarker.created" />
</target>
</project>