blob: 6f76cafea36d1eab42f79c038bc8cb1b8da1397e [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
-->
<!--
All jars temporarly packed by step030 will be unpacked here. As a marker for jars to unpack
a _unpack is expected.
E.g. folder org.eclipse.scout.rt.feature_3.7.0.201102030528_unpack.jar -> org.eclipse.scout.rt.feature_3.7.0.201102030528
The output folder (${buildDataDir}/step100/output) is used by step110.
-->
<project name="step100.zipUnpack" default="build">
<property file="build.properties" />
<taskdef name="custom.extract" classname="org.eclipse.scout.releng.ant.archive.ExtractArchive" />
<target name="clean">
<delete dir="${buildDataDir}/step100" />
</target>
<target name="build">
<available file="${buildDataDir}/step100/output/unpack.created" property="skipStep100" />
<antcall target="unpack" />
<delete dir="${buildDataDir}/step100/input" failonerror="false" />
</target>
<target name="unpack" unless="skipStep100">
<antcall target="clean" />
<property name="inputFolder" location="${buildDataDir}/step100/input" />
<property name="outputFolder" location="${buildDataDir}/step100/output" />
<mkdir dir="${inputFolder}" />
<copy todir="${inputFolder}">
<fileset dir="${buildDataDir}/step060/output">
<include name="**/*" />
<exclude name="*.created" />
</fileset>
</copy>
<!-- unpack -->
<custom.extract inputDir="${inputFolder}/rtFeature/features" outputDir="${outputFolder}/rtFeature/features"/>
<custom.extract inputDir="${inputFolder}/rtFeature/plugins" outputDir="${outputFolder}/rtFeature/plugins"/>
<custom.extract inputDir="${inputFolder}/rtRapFeature/features" outputDir="${outputFolder}/rtRapFeature/features"/>
<custom.extract inputDir="${inputFolder}/rtRapFeature/plugins" outputDir="${outputFolder}/rtRapFeature/plugins"/>
<custom.extract inputDir="${inputFolder}/sdkFeature/features" outputDir="${outputFolder}/sdkFeature/features"/>
<custom.extract inputDir="${inputFolder}/sdkFeature/plugins" outputDir="${outputFolder}/sdkFeature/plugins"/>
<custom.extract inputDir="${inputFolder}/sdkRapFeature/features" outputDir="${outputFolder}/sdkRapFeature/features"/>
<custom.extract inputDir="${inputFolder}/sdkRapFeature/plugins" outputDir="${outputFolder}/sdkRapFeature/plugins"/>
<touch file="${outputFolder}/unpack.created" />
</target>
</project>