| <!-- | |
| 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 jar files will be archived to pack200 files. | |
| E.g. org.eclipse.scout.rt.feature_3.7.0.201102030528.jar -> org.eclipse.scout.rt.feature_3.7.0.201102030528.jar.pack.gz | |
| The output folder (${buildDataDir}/step200/output) is used by step210. | |
| --> | |
| <project name="step200.p2Pack200" default="build"> | |
| <property file="build.properties" /> | |
| <taskdef name="custom.removeUnpackSuffix" classname="org.eclipse.scout.releng.ant.archive.RemoveUnpackSuffix" /> | |
| <taskdef name="custom.pack" classname="org.eclipse.scout.releng.ant.pack200.Pack" /> | |
| <target name="clean"> | |
| <delete dir="${buildDataDir}/step200" /> | |
| </target> | |
| <target name="build"> | |
| <available file="${buildDataDir}/step200/output/pack200.created" property="skipStep200" /> | |
| <antcall target="removeUnpackSuffix" /> | |
| <delete dir="${buildDataDir}/step200/input" failonerror="false" /> | |
| </target> | |
| <target name="removeUnpackSuffix" unless="skipStep200"> | |
| <antcall target="clean" /> | |
| <property name="inputFolder" location="${buildDataDir}/step200/input" /> | |
| <property name="outputFolder" location="${buildDataDir}/step200/output" /> | |
| <mkdir dir="${inputFolder}" /> | |
| <copy todir="${inputFolder}"> | |
| <fileset dir="${buildDataDir}/step060/output"> | |
| <include name="**/*" /> | |
| <exclude name="*.created" /> | |
| </fileset> | |
| </copy> | |
| <!-- unpack --> | |
| <copy todir="${outputFolder}"> | |
| <fileset dir="${inputFolder}"> | |
| <include name="**/*" /> | |
| </fileset> | |
| </copy> | |
| <custom.removeUnpackSuffix> | |
| <fileset dir="${outputFolder}"> | |
| <include name="**/*.jar" /> | |
| </fileset> | |
| </custom.removeUnpackSuffix> | |
| <custom.pack> | |
| <fileset dir="${outputFolder}"> | |
| <include name="**/*.jar" /> | |
| </fileset> | |
| </custom.pack> | |
| <touch file="${outputFolder}/pack200.created" /> | |
| </target> | |
| </project> |