Commit Graph

51 Commits

Author SHA1 Message Date
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
Xavier Hanin a80a7397c8 NEW: support atomic publish operation (IVY-492) (with contribution from Geoff Reedy)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@599186 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 23:05:25 +00:00
Xavier Hanin 56760b9a40 fix listing test (related to new test for IVY-644)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@596217 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 07:35:09 +00:00
Xavier Hanin b01f391365 add details when test fails
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@596216 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 07:31:46 +00:00
Xavier Hanin 24f7524858 FIX: Bad IvyContext scope causing memory leak and bad handling of subproject builds (IVY-639)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@594481 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 10:55:27 +00:00
Xavier Hanin a6ec8ebb5b IMPROVEMENT: Make the root attribute in the ivyrep resolver mandatory (IVY-625)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@589100 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 13:56:01 +00:00
Scokart Gilles 42975faaef try to remove my cache cleaning issue (sorry to 'work by coincidence', I have really no idea what goes wrong, but I found the new code is a little bit cleaner, so I share it)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@573647 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 17:58:07 +00:00
Scokart Gilles a8b2d5d318 Isolate CheckEngineSettings, InstallEngineSettings, CacheSettings, RetrieveEngineSettings, ResolveEngineSettings and ResolverSettings
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@573645 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 17:53:21 +00:00
Xavier Hanin fbbd374a14 code cleanup
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@544785 13f79535-47bb-0310-9956-ffa450edef68
2007-06-06 09:56:27 +00:00
Xavier Hanin cb52855f86 fix eol: add svn property + run fixcrlf to use native eol for all text files
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@544480 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 13:21:26 +00:00
Xavier Hanin 534f50d1d5 code cleanup using eclipse code formatter
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@544459 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 12:02:27 +00:00
Xavier Hanin fef703cf8a merge modifications from branch 2.0.0-alpha-1 up to revision 529251
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@532281 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 09:37:36 +00:00
Xavier Hanin 7f4694ac70 NEW: Module wide exclude (IVY-431)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@525217 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 17:45:54 +00:00
Xavier Hanin 1a432cc1d5 FIX: Invalid error report with m2compatible resolver (IVY-456)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@523965 13f79535-47bb-0310-9956-ffa450edef68
2007-03-30 07:01:06 +00:00
Xavier Hanin 9340c66aa9 add license headers to xml and html files + modify some tests to run with those license headers
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@522842 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 09:36:03 +00:00
Xavier Hanin c974be3956 IVY-438 work in progress: ivyconf=>ivysettings refactored in test and example code, and basic renames in doc. Still need to update the doc.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@519887 13f79535-47bb-0310-9956-ffa450edef68
2007-03-19 09:47:57 +00:00
Xavier Hanin 0657990e85 FIX: setting m2compatible on ibiblio resolver overwrite root and pattern settings (IVY-437)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@519279 13f79535-47bb-0310-9956-ffa450edef68
2007-03-17 10:14:04 +00:00
Xavier Hanin 0ef44fcc25 FIX: FileSystemResolverTest failing due to IVY-420 modification
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@515818 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 22:40:38 +00:00
Xavier Hanin 301f54bd50 FIX: IBiblioResolver test failing due to IVY-418 modification
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@515817 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 22:39:56 +00:00
Maarten Coene 4e74e8db62 removed unused import
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@510659 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 21:40:08 +00:00
Maarten Coene b3d5380864 Fixed root of repo1.maven.org mirror
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@510657 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 21:37:40 +00:00
Maarten Coene 9c85b590c1 Added junit test for IVY-390
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@510656 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 21:34:46 +00:00
Xavier Hanin b88fccc2cf REFACTOR: simplify API for resolve: group parameters in an object: ResolveOptions
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@508504 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 17:28:12 +00:00
Xavier Hanin 72a5f080f5 REFACTOR: begin split of Ivy class: creation of IvySettings and ResolveEngine, attempt to remove some dependencies on the Ivy class
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@501796 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 11:00:29 +00:00