diff options
author | mattinger <[email protected]> | 2007-03-06 18:22:51 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2007-03-06 18:22:51 +0000 |
commit | bcd0a22a48de2e111126ebed3ab820e2c744f8c0 (patch) | |
tree | 73e9b6560e5092dfd19fe86e7de17dc4713d3291 /docs | |
parent | c77e5e8a5858321532754628d8ca37498984aabf (diff) |
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@92 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/manual/tasks/importurl.html | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/docs/manual/tasks/importurl.html b/docs/manual/tasks/importurl.html index 52ed7d1..1a52054 100755 --- a/docs/manual/tasks/importurl.html +++ b/docs/manual/tasks/importurl.html @@ -17,9 +17,11 @@ </p> <p>In the case of a .jar/.zip file, the file is downloaded and then decompressed. After decompression, the file 'build.xml' at the root - level of the jar is imported. By importing a .jar/.zip file, one can package additional resources along with - the build.xml file. However, you must be careful how you refer to these resources. - The build.xml file must follow the same rules as any other file imported with the + level of the jar is imported (the name of the imported file can be + overriden with the 'resource' attribute). By importing a .jar/.zip file, + one can package additional resources along with the build.xml file. However, + you must be careful how you refer to these resources. The build.xml file must + follow the same rules as any other file imported with the <import> task, in that references relative to the build.xml file must be made with the property: ant.file.<projectname> @@ -30,7 +32,7 @@ <pre> <code> <project name="common"> - <basedir property="ant.dir.common" file="${ant.file.common}" /> + <dirname property="ant.dir.common" file="${ant.file.common}" /> <property file="${ant.dir.common}/build.properties" /> </project> </code> @@ -60,7 +62,7 @@ <td align="center" valign="top">Yes.</td> </tr> <tr> - <td valign="top">ref</td> + <td valign="top">rev</td> <td valign="top">The revision of the module to be fetched.</td> <td align="center" valign="top">No. Defaults to "latest.integration". See the ivy details for more information on the possible wildcarding @@ -111,6 +113,21 @@ ivy documentation for more information on the contents of this pattern. </td> </tr> + <tr> + <td valign="top">ivyPattern</td> + <td valign="top">The pattern used to find ivy file for the artifact in the repository.</td> + <td align="center" valign="top">No. If repositoryUrl or repositoryDir + are specified, this defaults to the standard repository pattern: + "/[org]/[module]/ivy-[revision].xml". Please see the + ivy documentation for more information on the contents of this pattern. + </td> + </tr> + <tr> + <td valign="top">resource</td> + <td valign="top">The name of the resource within a compressed file to import.</td> + <td align="center" valign="top">No. Defaults to "build.xml". + </td> + </tr> </table> @@ -119,9 +136,11 @@ <pre> <code> - <antcontrib:importurl org="antcontrib" - module="common" - rev="3.2" /> + <project name="build" basedir="." default="build" xmlns:ac="antlib:net.sf.antcontrib"> + <ac:antcontrib:importurl org="antcontrib" + module="common" + rev="3.2" /> + </project> </code> </pre> @@ -130,7 +149,7 @@ <pre> <code> - <antcontrib:importurl org="antcontrib" + <ac:antcontrib:importurl org="antcontrib" module="common" rev="3.2" type="xml" /> @@ -142,7 +161,7 @@ <pre> <code> - <antcontrib:importurl repositoryUrl="http://www.antcontrib.org/ivyrep" + <ac:antcontrib:importurl repositoryUrl="http://www.antcontrib.org/ivyrep" org="antcontrib" module="common" rev="3.2" /> @@ -152,6 +171,16 @@ would look for the located at "http://www.antcontrib.org/ivyrep/antcontrib/common/jars/common-3.2.jar" + <pre> + <code> + <ac:antcontrib:importurl ivyConfUrl="http://ivyrep.myorg.com/ivyconf.xml" + org="antcontrib" + module="common" + rev="3.2" /> + </code> + </pre> + + would configure ivy using the ivy configuration file at the given ivyConfUrl. <p> The following build.xml may be packaged into a .jar with it's corresponding build.properties file: |