Commit Graph

74 Commits

Author SHA1 Message Date
Maarten Coene e8633715a1 removed commented code
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1304653 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 23:15:00 +00:00
Maarten Coene e83ea3998d renamed fields beginning with '_'
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1304652 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 23:14:04 +00:00
Maarten Coene 63b85e9c14 FIX: Ivy didn't properly handle some file: URLs (IVY-1340)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1304651 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 23:11:41 +00:00
Nicolas Lalevee 0f794328d8 - fix the JarResolver when used with an URL
- fix the unit tests: the settings are the last set on the resolver


git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1201254 13f79535-47bb-0310-9956-ffa450edef68
2011-11-12 12:29:50 +00:00
Nicolas Lalevee e9b9844fce IVY-1312:
- implementation, test and documentation of the jar resolver


git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1165117 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 21:33:39 +00:00
Maarten Coene b2b0c36ee6 Removed old non-working maven mirrors.
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1097644 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 22:30:37 +00:00
Nicolas Lalevee c765837f17 Add a mirror capable url resolver. Far from perfect but a nice first working version.
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1087396 13f79535-47bb-0310-9956-ffa450edef68
2011-03-31 18:19:24 +00:00
Nicolas Lalevee 88d62a6976 svn_apply_autoprops, mainly for line endings
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1049146 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 16:28:01 +00:00
Maarten Coene 6ab9d41e3e FIX: Can not use a v[revision] in an artifact pattern of a filesystem resolver (IVY-1238)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1024027 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 21:48:41 +00:00
Maarten Coene d0e4eabcdb Code style
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@937482 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 19:36:22 +00:00
Maarten Coene d92e70e750 Removed unnecessary code
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@937481 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 19:30:53 +00:00
Maarten Coene e3d72c538e Improved test to check that something has been unzipped/untarred at all...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@937087 13f79535-47bb-0310-9956-ffa450edef68
2010-04-22 22:27:08 +00:00
Maarten Coene c4355851db FIX: Packager resolver always extracts all files from archives even when the packaging instructions contains include tags (IVY-1179) (thanks to Stefan De Boey)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@936523 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 21:40:59 +00:00
Maarten Coene 77da8cd564 typing error
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@927628 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 22:52:20 +00:00
Maarten Coene 944d5a7efe Forgot to commit updated junit test for IVY-1155
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@897046 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 23:06:47 +00:00
Maarten Coene 2509784fe0 Fixed junit tests
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@888188 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 23:34:37 +00:00
Maarten Coene beff2feb9d FIX: FileSystem resolver with m2compatible=true throws error when publishing modules with dotted organisation names (IVY-968)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@885601 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30 22:35:17 +00:00
Maarten Coene 929ff9adfe Spelling fix
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@819042 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 22:03:11 +00:00
Maarten Coene 0346981dd4 Forgot to commit the modified test for IVY-1006
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@741336 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 23:06:40 +00:00
Xavier Hanin 79535f59ac fix problems introduced with IVY-1012
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@737358 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 14:05:24 +00:00
Xavier Hanin 0309c63333 FIX: TTL does not work as expected (IVY-1012)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@737330 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 11:00:40 +00:00
Xavier Hanin a92a4fcecc IMPROVEMENT: Better and more homogeneous relative paths handling (IVY-387)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@691210 13f79535-47bb-0310-9956-ffa450edef68
2008-09-02 12:07:20 +00:00
Xavier Hanin 32038d1bde FIX: Incorrect directory path resolve when running from a different directory (IVY-232)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@690317 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 16:24:03 +00:00
Xavier Hanin 3ef6097b71 FIX: PackagerResolverTest was failing
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@689093 13f79535-47bb-0310-9956-ffa450edef68
2008-08-26 14:29:53 +00:00
Xavier Hanin 6d6d34af69 FIX: ChainResolverTest failures (IVY-882)
The problem was due to the changes introduced in IVY-857. Indeed the cache checking was removed from the chain, to allow a resolver to force a revision even when there is already something in the cache. The problem is that resolvers where always checked in the chain even when the cache is filled. To implement this properly, I've moved the responsibility of knowing what resolved module revision should be returned to each individual resolver instead of the chain (pretty much like in the chain of responsibility pattern, where each node is responsible for calling the next one). To avoid changing the DependencyResolver API, I've added the detail about a possibly already resolved module revision in ResolveData. The added responsibility to DependencyResolver makes it more flexible, but also more complex to write. Hopefully most people writing dependency resolvers at least extend BasicResolver where all this logic is already implemented.

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@688097 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 15:32:18 +00:00
Maarten Coene b506d8f19d FIX: URLRepository does not allow some valid file scheme uri's (IVY-884)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@687492 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 22:30:44 +00:00
Maarten Coene 1f3f87a67c Fixed problem with test on some VM's where XSLT doesn't like the Turkish locale.
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@678564 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 20:56:42 +00:00
Maarten Coene 18554d04c0 Fixed compilation problem.
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@678558 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 20:49:30 +00:00
Maarten Coene dce2f45c16 Updated new packager resolver to use Ant API instead of command-line and updated the packager-stylesheet to make it work on windows (IVY-829)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@678326 13f79535-47bb-0310-9956-ffa450edef68
2008-07-20 21:45:02 +00:00
Xavier Hanin 46fe473ebf IMPROVEMENT: Support atomic publish with sub directory structure (IVY-856)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@674574 13f79535-47bb-0310-9956-ffa450edef68
2008-07-07 18:15:52 +00:00
Xavier Hanin cbb1b2da79 add m2resource test in PackagerResolver (thanks to Archie Cobbs)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@673332 13f79535-47bb-0310-9956-ffa450edef68
2008-07-02 09:42:20 +00:00
Xavier Hanin dfbb7282f1 add more test and improve atomic publish support
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@671566 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 14:32:22 +00:00
Xavier Hanin 1c8e952ae7 review some packager resolver code:
- use FileUtil.forceDelete instead of re implementing own recursive delete
- put temporary test files in build/test instead of tmp, to follow other unit test template
- remove m2resource test for the moment, since the "website" does not provide it (missing in patch)

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@671005 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 03:27:37 +00:00
Xavier Hanin a7eb2c27a9 NEW: Add new packager resolver (IVY-829) (thanks to Archie Cobbs)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@670997 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 02:44:04 +00:00
Xavier Hanin adbef440c8 FIX: NPE in AbstractResolver.exists() if a resource cannot be found (IVY-831)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@666208 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 17:07:39 +00:00
Maarten Coene 797d09c415 FIX: Filesystem resolver does not evaluate [branch] token when publishing (IVY-814)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@653610 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 21:43:23 +00:00
Xavier Hanin 32c182c2d8 IMPROVEMENT: Move useOrigin to repository cache manager (IVY-700)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@612173 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 17:45:26 +00:00
Xavier Hanin 1696e097b6 IMPROVEMENT: Make IBiblio resolver compatible with maven proxy (IVY-466)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@610291 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 07:40:34 +00:00
Xavier Hanin 2a617e6572 FIX: Detection of newer and better artifacts should not happen if 'checkModified' is set to 'false' (IVY-389) (with contribution from Johan Stuyts)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@608593 13f79535-47bb-0310-9956-ffa450edef68
2008-01-03 18:51:26 +00:00
Xavier Hanin 823b5942eb reduce RepositoryCacheManager contract
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@608162 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 17:58:40 +00:00
Xavier Hanin ab2869b096 IMPROVEMENT: Flexible cache management (IVY-399 - not completed yet)
- finished splitting cache between resolution and repository cache management
- added option to configure repo cache manager per resolver
TODO:
- update doc to reflect the changes
- add more tests
- remove some methods in RepositoryCacheManager interface to make the contract cleaner and easier to implement

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@607278 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 16:11:26 +00:00
Xavier Hanin 9f7f0a4a52 - store module descriptor cache location in resolution report to avoid using cache manager for later use of this data
- simplify ResolvedModuleRevision usage by making it a class, and putting some data separated in an ArtifactDownloadReport
- create a constant for unknown ArtifactOrigin instead of using null, to distinguish between unknown location and not providing ArtifactOrigin in IvyPatternHelper methods (which avoid calling getSavedArtifactOrigin many times for nothing)

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@607221 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 12:16:22 +00:00
Xavier Hanin 91773162bb TASK: Remove cache attribute on Ant tasks (IVY-685)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@607146 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 00:11:39 +00:00
Maarten Coene 4e1e7a93be FIX: Ivy doesn't respect the order of the ivy patterns as defined in the settings (IVY-676)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@605343 13f79535-47bb-0310-9956-ffa450edef68
2007-12-18 22:20:56 +00:00
Scokart Gilles 56e3bfe5bb fix test too dependenant of the test data
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@600914 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 12:49:52 +00:00
Xavier Hanin 403ef0adfd FIX: download failed log when using a chain of resolver for artifact download, when any element of the chain does not find the artifact
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@600411 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 23:48:41 +00:00
Xavier Hanin 6d5f4c0f67 fix style
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@600405 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 23:06:25 +00:00
Xavier Hanin 5bd85a69dd - review responsibilities between resolver and cache manager, making cache management slightly more flexible (IVY-399)
- introduce lock strategy, used by CacheManager, not yet fully implemented nor tested (IVY-654)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@600004 13f79535-47bb-0310-9956-ffa450edef68
2007-11-30 22:59:53 +00:00
Maarten Coene f5c047c582 FIX: m2 incompatibility - IVY does not recognize property section (IVY-637)
FIX: m2 incompatibility - IVY does not recognize parent pom (IVY-636)


git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@599950 13f79535-47bb-0310-9956-ffa450edef68
2007-11-30 20:38:22 +00:00
Xavier Hanin 7ad04b22b8 add new test for atomic publish and fix a bug revealed by one of these tests (IVY-492)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@599450 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 14:15:25 +00:00