Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | Licensed to the Apache Software Foundation (ASF) under one |
| 4 | or more contributor license agreements. See the NOTICE file |
| 5 | distributed with this work for additional information |
| 6 | regarding copyright ownership. The ASF licenses this file |
| 7 | to you under the Apache License, Version 2.0 (the |
| 8 | "License"); you may not use this file except in compliance |
| 9 | with the License. You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, |
| 14 | software distributed under the License is distributed on an |
| 15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | KIND, either express or implied. See the License for the |
| 17 | specific language governing permissions and limitations |
| 18 | under the License. |
| 19 | --> |
| 20 | <ivysettings> |
David Morgan Spenser Savage | eaad3e2 | 2009-09-15 08:11:02 +0000 | [diff] [blame] | 21 | <properties file="${ivy.settings.dir}/build.properties" override="false"/> |
David Morgan Spenser Savage | 924b122 | 2009-07-22 19:18:11 +0000 | [diff] [blame] | 22 | <caches defaultCacheDir="${cache.dir}/all" /> |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 23 | |
David Morgan Spenser Savage | 3b1b8c8 | 2009-07-20 21:01:49 +0000 | [diff] [blame] | 24 | <settings defaultResolver="default" circularDependencyStrategy="error" /> |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 25 | |
| 26 | <!-- |
| 27 | <classpath file="${sigil-ivy-plugin.jar}" /> |
| 28 | Ant tasks "subant" and "ant" cause IvySettings to be re-loaded, |
| 29 | which then re-loads SigilParser in a new URLClassLoader, |
| 30 | which causes ProjectRepository to be re-initialised. Outch! |
| 31 | Loading sigil-ivy-plugin.jar in load-ivy task, uses the same ClassLoader |
| 32 | and thus avoids re-initialising ProjectRepositiory. |
| 33 | Search for Derek Baum in the October 2008 ant-dev archives for my attempt |
| 34 | at getting the Ivy communiuty to fix this. |
| 35 | http://mail-archives.apache.org/mod_mbox/ant-dev/200810.mbox/browser |
| 36 | --> |
David Morgan Spenser Savage | 2c18241 | 2009-07-21 20:42:53 +0000 | [diff] [blame] | 37 | <typedef name="sigil-parser" classname="org.apache.felix.sigil.ivy.SigilParser" /> |
| 38 | <typedef name="sigil" classname="org.apache.felix.sigil.ivy.SigilResolver" /> |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 39 | |
| 40 | <parsers> |
| 41 | <sigil-parser config="${ivy.settings.dir}/sigil-repos.properties" |
| 42 | quiet="true"/> |
| 43 | </parsers> |
| 44 | |
| 45 | <resolvers> |
| 46 | <sigil name="sigil" |
| 47 | config="${ivy.settings.dir}/sigil-repos.properties" |
David Morgan Spenser Savage | 924b122 | 2009-07-22 19:18:11 +0000 | [diff] [blame] | 48 | extractBCP="true" |
| 49 | cache="sigil"/> |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 50 | |
David Morgan Spenser Savage | 3b1b8c8 | 2009-07-20 21:01:49 +0000 | [diff] [blame] | 51 | <chain name="default" returnFirst="true"> |
| 52 | <filesystem name="local"> |
| 53 | <ivy pattern="${repository.dir}/local/${repository.pattern}" /> |
| 54 | <artifact pattern="${repository.dir}/local/${repository.pattern}" /> |
| 55 | </filesystem> |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 56 | |
David Morgan Spenser Savage | 3b1b8c8 | 2009-07-20 21:01:49 +0000 | [diff] [blame] | 57 | <filesystem name="shared"> |
| 58 | <ivy pattern="${repository.dir}/shared/${repository.pattern}" /> |
| 59 | <artifact pattern="${repository.dir}/shared/${repository.pattern}" /> |
| 60 | </filesystem> |
David Morgan Spenser Savage | 3b1b8c8 | 2009-07-20 21:01:49 +0000 | [diff] [blame] | 61 | </chain> |
David Morgan Spenser Savage | 924b122 | 2009-07-22 19:18:11 +0000 | [diff] [blame] | 62 | |
David Morgan Spenser Savage | 3b1b8c8 | 2009-07-20 21:01:49 +0000 | [diff] [blame] | 63 | <url name="eclipse"> |
| 64 | <artifact pattern="http://download.eclipse.org/releases/ganymede/plugins/[module]_[revision].[ext]" /> |
| 65 | <artifact pattern="http://download.eclipse.org/releases/ganymede/[module].[artifact]_[revision].[ext]" /> |
| 66 | </url> |
David Morgan Spenser Savage | 924b122 | 2009-07-22 19:18:11 +0000 | [diff] [blame] | 67 | |
| 68 | <url name="eclipse2" cache="eclipse2" > |
| 69 | <artifact pattern="http://download.eclipse.org/releases/ganymede/plugins/[module]_[revision].[ext]" /> |
| 70 | <artifact pattern="http://download.eclipse.org/releases/ganymede/[module].[artifact]_[revision].[ext]" /> |
| 71 | </url> |
| 72 | |
| 73 | <url name="apache" m2compatible="true"> |
| 74 | <artifact pattern="http://repo1.maven.org/maven2/[organisation]/[module]/[artifact]/[revision]/[artifact]-[revision].[ext]"/> |
| 75 | </url> |
| 76 | |
| 77 | <url name="aQute" m2compatible="true"> |
| 78 | <artifact pattern="http://www.aQute.biz/repo/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/> |
| 79 | </url> |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 80 | </resolvers> |
| 81 | |
David Morgan Spenser Savage | 924b122 | 2009-07-22 19:18:11 +0000 | [diff] [blame] | 82 | <caches> |
| 83 | <cache name="sigil" basedir="${cache.dir}/sigil" /> |
| 84 | <cache name="eclipse2" basedir="${cache.dir}/eclipse2" /> |
| 85 | </caches> |
| 86 | |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 87 | <modules> |
| 88 | <module organisation="sigil" resolver="sigil"/> |
David Morgan Spenser Savage | 3b1b8c8 | 2009-07-20 21:01:49 +0000 | [diff] [blame] | 89 | <module organisation="org.eclipse" resolver="eclipse"/> |
David Morgan Spenser Savage | 924b122 | 2009-07-22 19:18:11 +0000 | [diff] [blame] | 90 | <module organisation="org.eclipse2" resolver="eclipse2"/> |
| 91 | <module organisation="org.apache" name="felix\.sigil.*" matcher="regexp" resolver="default"/> |
| 92 | <module organisation="org.apache" resolver="apache"/> |
| 93 | <module organisation="biz.aQute" resolver="aQute"/> |
Richard S. Hall | 6fe36b4 | 2009-07-13 13:25:46 +0000 | [diff] [blame] | 94 | </modules> |
| 95 | </ivysettings> |