blob: 6739d85964a6d98d9be7b441948bb8ad06159e1b [file] [log] [blame]
<!--
Copyright (c) 2011, 2019 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<project
default="updateReferenceComposite"
basedir=".">
<target
name="updateReferenceComposite">
<!-- fail if our key required variables are not defined by caller. There are no
good defaults -->
<!-- currently, can be values such as
/shared/webtools/integration
/shared/webtools/maintenance
-->
<fail
unless="referenceCompositeDir"/>
<fail
unless="dropDirectory"/>
<!-- note, we currently don't require that dropDirectory exists, since techically does
not have to ... but, we might want to put a sanity check in here, since its anticipated it
always will for the way we are using this script -->
<!-- make sure directory exists, if it doesn't already, since p2 operation will fail if it doesn't. -->
<mkdir
dir="${referenceCompositeDir}"/>
<p2.composite.repository>
<repository
location="file:${referenceCompositeDir}"
name="Reference repository"
compressed="false"/>
<add>
<repository
location="file://${dropDirectory}/repository/"/>
<repository
location="file://${dropDirectory}/repositoryunittests/"/>
</add>
</p2.composite.repository>
</target>
</project>