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> |
| 21 | <properties file="${ivy.settings.dir}/build.properties"/> |
| 22 | <caches defaultCacheDir="${ivy.settings.dir}/../ivy-cache" /> |
| 23 | |
| 24 | <settings defaultResolver="shared" |
| 25 | circularDependencyStrategy="error" /> |
| 26 | |
| 27 | <classpath file="${ivy.settings.dir}/../../../target/sigil-ivy-plugin.jar" /> |
| 28 | <!-- |
| 29 | Ant tasks "subant" and "ant" cause IvySettings to be re-loaded, |
| 30 | which then re-loads SigilParser in a new URLClassLoader, |
| 31 | which causes ProjectRepository to be re-initialised. Outch! |
| 32 | |
| 33 | Better if Ivy classpath cached its classloader, or provided a |
| 34 | loaderRef attribute, like ant does. |
| 35 | |
| 36 | Loading sigil-ivy-plugin.jar in ivy-taskdefs, uses the same ClassLoader |
| 37 | to load sigil-ivy-plugin, and thus avoids re-initialising ProjectRepositiory. |
| 38 | --> |
| 39 | <typedef name="sigil-parser" classname="org.cauldron.bld.ivy.SigilParser" /> |
| 40 | <typedef name="sigil" classname="org.cauldron.bld.ivy.SigilResolver" /> |
| 41 | |
| 42 | <parsers> |
| 43 | <sigil-parser quiet="true"/> |
| 44 | </parsers> |
| 45 | |
| 46 | <resolvers> |
| 47 | <sigil name="sigil" config="${ivy.settings.dir}/sigil-repos.properties" /> |
| 48 | <filesystem name="local"> |
| 49 | <ivy pattern="${repository.dir}/local/[module]-[revision].xml" /> |
| 50 | <artifact pattern="${repository.dir}/local/[artifact]-[revision].[ext]" /> |
| 51 | </filesystem> |
| 52 | <filesystem name="shared"> |
| 53 | <ivy pattern="${repository.dir}/shared/[module]-[revision].xml" /> |
| 54 | <artifact pattern="${repository.dir}/shared/[module]/[artifact]-[revision].[ext]" /> |
| 55 | </filesystem> |
| 56 | </resolvers> |
| 57 | <modules> |
| 58 | <!--<module organisation="org.apache.ivy.example" name=".*" resolver="shared"/> |
| 59 | --> |
| 60 | <module organisation="sigil" resolver="sigil"/> |
| 61 | </modules> |
| 62 | </ivysettings> |