| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Copyright (c) 2016 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: | |
| David Williams - initial API and implementation | |
| --> | |
| <project | |
| default="addToComposite" | |
| basedir="."> | |
| <target name="addToComposite"> | |
| <fail | |
| unless="repodir" | |
| message="repodir must be passed in to this script" /> | |
| <fail | |
| unless="complocation" | |
| message="complocation must be passed in to this script" /> | |
| <echo message="Adding child (complocation) to composite (repodir)" /> | |
| <echo message=" repodir: ${repodir}" /> | |
| <echo message=" complocation: ${complocation}" /> | |
| <p2.composite.repository> | |
| <repository | |
| location="file://${repodir}" | |
| name="The Eclipse Project repository" /> | |
| <add> | |
| <repository location="${complocation}" /> | |
| </add> | |
| </p2.composite.repository> | |
| </target> | |
| </project> | |