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
28b71bd41d
FIX: Maven2 "ejb" packaging is not supported (IVY-873)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@682974 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 21:45:49 +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
c64eaa7994
IMPROVEMENT: Add defaultconf in publications tag of ivy file (IVY-801)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@674852 13f79535-47bb-0310-9956-ffa450edef68
2008-07-08 15:04:42 +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
0a870c960d
FIX: Maven version ranges with ( ) are not supported (IVY-678) (thanks to Michael Kebe)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@673934 13f79535-47bb-0310-9956-ffa450edef68
2008-07-04 07:25:37 +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
881500cd68
fix some test cases
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@671601 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 16:45:24 +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
b5c63335ec
review handling of qualified extra attributes, especially during copies, to avoid losing the qualifier
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@667175 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 17:38:13 +00:00
Xavier Hanin
c57b54c16e
improve unit test on for branch and branch constraint handling
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@667047 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 11:28:55 +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
Xavier Hanin
6c7c02162f
FIX: dynamic resolveMode not being dynamic on branch (IVY-825)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@662776 13f79535-47bb-0310-9956-ffa450edef68
2008-06-03 12:42:21 +00:00
Scokart Gilles
7b8c036868
Fix the encoding used in XML reports (IVY-816)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@661275 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 09:55:26 +00:00
Maarten Coene
6eac78a418
FIX: Type tag in poms not supported (IVY-762)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@660322 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 22:01:29 +00:00
Maarten Coene
b08ebfc2aa
FIX: An empty exclusion tag results in an IllegalArgumentException (IVY-821)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@660286 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 19:59:30 +00:00
Maarten Coene
a3d7b48434
Fixed type error.
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@659272 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 21:43:34 +00:00
Maarten Coene
c4ddef0104
Added junit test for IVY-811
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@659266 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 21:40:17 +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
f70dc1fbdc
complete IVY-784 and IVY-753:
...
- move override exclude and conflict directly under dependencies element
- implement override writing in module descriptor writer, to make sure dependencyManagement handling in poms are written to cache in ivy file format as they should
- update documentation
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@644236 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 09:24:54 +00:00
Xavier Hanin
4527644640
introduce hints section in dependencies, as discussed on mailing list (part of IVY-784)
...
still need to update documentation, and update XmlModuleDescriptorWriter to be able to write overrides
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@642277 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 16:19:23 +00:00
Xavier Hanin
20d867de98
NEW: Add transitive dependency version and branch override mechanism (IVY-784) (not completed yet)
...
FIX: Compatibility with maven's dependencyMangement (IVY-753) (not completed yet)
Syntax for IVY-784 still needs to be cleared out. Then I need to update documentation, xml module descriptor writer and updater. For IVY-753 to be fully completed, update of xml module descriptor writer still need to be achieved to be able to use converted pom file from cache.
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@640488 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 18:05:10 +00:00
Maarten Coene
9be97ad68d
Fixed failing junit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@639446 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 20:37:56 +00:00
Maarten Coene
d0f1f72c0f
Reverted last commit and modified the code so it will compile with JDK1.4 and is more consistent with the EOL checks in other tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@639445 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 20:37:28 +00:00
Maarten Coene
4fd3080e74
JUnit tests didn't compile anymore on JDK1.4
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@639439 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 20:26:32 +00:00
Maarten Coene
f3fa2da056
IMPROVEMENT: Smarter determination if an expression is exact or not for RegexpPatternMatcher and GlobPatternMatcher
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@638096 13f79535-47bb-0310-9956-ffa450edef68
2008-03-17 22:12:58 +00:00
Xavier Hanin
dce9dcdd31
- IMPROVEMENT: Parse description information in ivy files (IVY-766)
...
- IMPROVEMENT: Parse description and home page from poms (IVY-767)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@636252 13f79535-47bb-0310-9956-ffa450edef68
2008-03-12 08:44:56 +00:00
Xavier Hanin
f13e910f90
FIX: StackOverflowError when configuration extends itself (IVY-696)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@633568 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 17:49:10 +00:00
Xavier Hanin
a9ba2122fe
remove bad import
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@632981 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 08:41:43 +00:00
Xavier Hanin
85e1d92af6
fix style: refactor: introduce UpdateOptions to reduce the number of parameters for XmlModuleDescriptorUpdater update methods
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@632743 13f79535-47bb-0310-9956-ffa450edef68
2008-03-02 11:54:51 +00:00
Xavier Hanin
25a06cbf5b
- NEW: Retain original dependency constraint rules in resolved ivy file (IVY-739)
...
- NEW: Add a new resolve mode (optionally per module) to utilize dynamic constraint rule metadata (IVY-740)
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@632723 13f79535-47bb-0310-9956-ffa450edef68
2008-03-02 08:50:33 +00:00
Xavier Hanin
60e6078195
FIX: XML schema ambiguity (IVY-750)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@632405 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 18:44:20 +00:00
Scokart Gilles
4f33cc5724
FIX: m2 incompatibility - IVY does not recognize property section(IVY-637)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@629619 13f79535-47bb-0310-9956-ffa450edef68
2008-02-20 21:35:02 +00:00
Scokart Gilles
65479b4787
IVY-637 m2 incompatibility - IVY does not recognize property section (partial fix, the case of properties inherited from parent is not yet covered
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@629230 13f79535-47bb-0310-9956-ffa450edef68
2008-02-19 21:03:21 +00:00
Scokart Gilles
54c75983ed
FIX: Inherit depedencies defined in parent pom (IVY-683)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@629215 13f79535-47bb-0310-9956-ffa450edef68
2008-02-19 20:22:51 +00:00
Scokart Gilles
dc44824f86
IMPORVEMENT: Refactor the PomModuleDescriptorParser in order to allow easier integration of maven pom
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@629194 13f79535-47bb-0310-9956-ffa450edef68
2008-02-19 19:18:43 +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
f1f9a7950e
FIX: Problem with cached Ivy files which have extra attributes (IVY-693)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@609172 13f79535-47bb-0310-9956-ffa450edef68
2008-01-05 16:37:19 +00:00
Xavier Hanin
a339cb5c24
IMPROVEMENT: Use namespace aware validation (IVY-553)
...
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@609138 13f79535-47bb-0310-9956-ffa450edef68
2008-01-05 13:47:31 +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