david_williams | 88cbf01 | 2009-01-12 21:53:05 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | ====================================================================== |
| 4 | Properties that must be passed to this script: base.install.dir |
| 5 | dependencyTargets local.cache.dir dependency.properties |
| 6 | ====================================================================== |
| 7 | --> |
| 8 | <project |
| 9 | name="test" |
| 10 | default="get"> |
| 11 | <target |
| 12 | name="get"> |
| 13 | <!-- |
| 14 | read in this properties, just so we can make sure our |
| 15 | requested pre-reqs are defined |
| 16 | --> |
| 17 | <property |
| 18 | file="${dependency.properties}"/> |
| 19 | <antcall |
| 20 | target="getAndInstall"> |
| 21 | <param |
| 22 | name="groupId" |
| 23 | value="orbitthirdpartymap"/> |
| 24 | <param |
| 25 | name="base.install.dir" |
| 26 | value="${buildDirectory}/maps/${env.RELENG}/maps/"/> |
| 27 | </antcall> |
| 28 | <antcall |
| 29 | target="getAndInstall"> |
| 30 | <param |
| 31 | name="groupId" |
| 32 | value="eclipse"/> |
| 33 | </antcall> |
| 34 | <antcall |
| 35 | target="getAndInstall"> |
| 36 | <param |
| 37 | name="groupId" |
| 38 | value="xml"/> |
| 39 | </antcall> |
| 40 | </target> |
| 41 | <target |
| 42 | name="getAndInstall" |
| 43 | if="${groupId}.url"> |
| 44 | <ant |
| 45 | antfile="${dependencyTargets}" |
| 46 | target="checkDependency"> |
| 47 | <property |
| 48 | name="groupId" |
| 49 | value="${groupId}"/> |
| 50 | </ant> |
| 51 | <ant |
| 52 | antfile="${dependencyTargets}" |
| 53 | target="installDependency"> |
| 54 | <property |
| 55 | name="groupId" |
| 56 | value="${groupId}"/> |
| 57 | <property |
| 58 | name="install.destination" |
| 59 | value="${base.install.dir}"/> |
| 60 | </ant> |
| 61 | </target> |
| 62 | </project> |