blob: bd34be8541f81a644cd0a9f0292cc3becbf8bafd [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="skipMarkIncubation">
<isfalse value="${incubation}" />
</condition>
<available file="${buildDataDir}/step040/output/incubationMarker.created" property="skipStep040" />
<antcall target="prepareMarkIncubation" />
<delete dir="${buildDataDir}/step040/input" failonerror="false" />
</target>
<target name="prepareMarkIncubation" 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>
<antcall target="markIncubation" />
<touch file="${outputFolder}/incubationMarker.created" />
</target>
<target name="markIncubation" unless="skipMarkIncubation">
<custom.markIncubation>
<fileset dir="${buildDataDir}/step040/output">
<include name="**/**.jar" />
</fileset>
</custom.markIncubation>
</target>
</project>