david_williams | 744330a | 2011-01-22 07:04:08 +0000 | [diff] [blame] | 1 | <project |
| 2 | default="updateReferenceComposite" |
| 3 | basedir="."> |
| 4 | <target |
| 5 | name="updateReferenceComposite"> |
| 6 | <!-- fail if our key required variables are not defined by caller. There are no |
| 7 | good defaults --> |
| 8 | <!-- currently, can be values such as |
| 9 | /shared/webtools/integration |
| 10 | /shared/webtools/maintenance |
| 11 | --> |
| 12 | <fail |
| 13 | unless="referenceCompositeDir"/> |
| 14 | <fail |
| 15 | unless="dropDirectory"/> |
| 16 | <!-- note, we currently don't require that dropDirectory exists, since techically does |
| 17 | not have to ... but, we might want to put a sanity check in here, since its anticipated it |
| 18 | always will for the way we are using this script --> |
| 19 | |
| 20 | <!-- make sure directory exists, if it doesn't already, since p2 operation will fail if it doesn't. --> |
| 21 | <mkdir |
| 22 | dir="${referenceCompositeDir}"/> |
| 23 | |
| 24 | <p2.composite.repository> |
| 25 | <repository |
| 26 | location="file:${referenceCompositeDir}" |
| 27 | name="Reference repository" |
| 28 | compressed="false"/> |
| 29 | <add> |
| 30 | <repository |
| 31 | location="file://${dropDirectory}/repository/"/> |
| 32 | <repository |
| 33 | location="file://${dropDirectory}/repositoryunittests/"/> |
| 34 | </add> |
| 35 | </p2.composite.repository> |
| 36 | </target> |
| 37 | </project> |
| 38 | |
| 39 | |