<!-- | |
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 | |
--> | |
<project name="scout.releng.compositeRepository" default="build"> | |
<property environment="env" /> | |
<property file="../build.properties" /> | |
<property file="./build.properties" /> | |
<target name="clean"> | |
</target> | |
<target name="build" depends="clean"> | |
<condition property="conditionAdd"> | |
<equals arg1="add" arg2="${mode}" /> | |
</condition> | |
<condition property="conditionRemove"> | |
<equals arg1="remove" arg2="${mode}" /> | |
</condition> | |
<antcall target="add" /> | |
<antcall target="remove" /> | |
</target> | |
<target name="add" if="conditionAdd"> | |
<echo message="do add"></echo> | |
<p2.composite.repository> | |
<repository compressed="false" location="file:/${buildDataDir}/compositeRepository" name="${repositoryName}"/> | |
<add> | |
<repository location="${repository}" /> | |
</add> | |
</p2.composite.repository> | |
</target> | |
<target name="remove" if="conditionRemove"> | |
<echo message="do remove"></echo> | |
<p2.composite.repository> | |
<repository compressed="false" location="file:/${buildDataDir}/compositeRepository" name="${repositoryName}" /> | |
<remove> | |
<repository location="${repository}" /> | |
</remove> | |
</p2.composite.repository> | |
</target> | |
</project> |