ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-829) Add new "packager" resolver to Ivy
Date Mon, 14 Jul 2008 22:48:31 GMT

    [ https://issues.apache.org/jira/browse/IVY-829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613478#action_12613478
] 

Maarten Coene commented on IVY-829:
-----------------------------------

I've applied your patch with some little modifications and got some further, I now have the
error below. 
Any idea?

{noformat}
[...]
performing packager resolver build in C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0
Build sequence for target `build' is [validate, setResourceURL1, setResourceURL2, style, build]
Complete build sequence is [validate, setResourceURL1, setResourceURL2, style, build, ]

validate:
[xmlvalidate] Using SAX2 reader org.apache.xerces.parsers.SAXParser
[xmlvalidate] Validating packager.xml... 
Apache resolver library not found, internal resolver will be used
[xmlvalidate] 1 file(s) have been successfully validated.

setResourceURL1:
Skipped because property 'ivy.packager.resourceURL' not set.

setResourceURL2:

style:
     [xslt] Using class org.apache.tools.ant.taskdefs.optional.TraXLiaison
     [xslt] Processing C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager.xml
to C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager-output.xml
     [xslt] Loading stylesheet C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager.xsl

build:
Project base dir set to: C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0
      [ant] calling target [default] in build file C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager-output.xml
parsing buildfile C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager-output.xml
with URI = file:///C:/projects/ivy/trunk/build/test/PackagerResolverTest/build/org/mod/1.0/packager-output.xml
Project base dir set to: C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0
      [ant] Entering C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager-output.xml...
Build sequence for target `build' is [setfilename.N10013, genresdir.1.N10013, genresdir.2.N10013,
checkdownload.0.N10013, download.1.N10013, checkdownload.1.N10013, download.N10013, resource.N10013,
setgroupdirs.N1001C, genresdir.1.N10021, genresdir.2.N10021, checkdownload.0.N10021, download.1.N10021,
checkdownload.1.N10021, download.N10021, resource.N10021, resources, build]
Complete build sequence is [setfilename.N10013, genresdir.1.N10013, genresdir.2.N10013, checkdownload.0.N10013,
download.1.N10013, checkdownload.1.N10013, download.N10013, resource.N10013, setgroupdirs.N1001C,
genresdir.1.N10021, genresdir.2.N10021, checkdownload.0.N10021, download.1.N10021, checkdownload.1.N10021,
download.N10021, resource.N10021, resources, build, ]

setfilename.N10013:

genresdir.1.N10013:
Skipped because property 'ivy.packager.resourceCache' set.

genresdir.2.N10013:
     [echo] using resource cache: C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources

checkdownload.0.N10013:
[available] Unable to find C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources\mod-1.0.tar.gz

download.1.N10013:
      [get] Getting: file:/C:/projects/ivy/trunk/test/repositories/packager/website/dist/mod-1.0.tar.gz
.

checkdownload.1.N10013:
[available] Found: C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources\mod-1.0.tar.gz

download.N10013:
Skipped because property 'alreadydownloaded.N10013' set.

resource.N10013:
    [mkdir] Created dir: C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\extract
    [untar] Expanding: C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources\mod-1.0.tar.gz
into C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\extract
    [untar] expanding mod-1.0/ to C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\extract\mod-1.0
    [untar] expanding mod-1.0/mod.jar to C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\extract\mod-1.0\mod.jar
    [untar] expand complete

setgroupdirs.N1001C:
[pathconvert] Set property groupdirs.N1001C = 

genresdir.1.N10021:
Skipped because property 'ivy.packager.resourceCache' set.

genresdir.2.N10021:
     [echo] using resource cache: C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources

checkdownload.0.N10021:
[available] Unable to find C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources\foobar-1.0-janfu.jar

download.1.N10021:
      [get] Getting: file:/C:/projects/ivy/trunk/test/repositories/packager/website/m2repo//foobar/1.0/foobar-1.0-janfu.jar
      [get] Error getting file:/C:/projects/ivy/trunk/test/repositories/packager/website/m2repo//foobar/1.0/foobar-1.0-janfu.jar
to C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources\foobar-1.0-janfu.jar
      [ant] Exiting C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager-output.xml.
C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\build.xml:52: The
following error occurred while executing this line:
C:\projects\ivy\trunk\build\test\PackagerResolverTest\build\org\mod\1.0\packager-output.xml:79:
java.io.FileNotFoundException: C:\projects\ivy\trunk\test\repositories\packager\website\m2repo\foobar\1.0\foobar-1.0-janfu.jar
(Het systeem kan het opgegeven pad niet vinden)
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.ivy.plugins.resolver.packager.PackagerCacheEntry.build(PackagerCacheEntry.java:146)
	at org.apache.ivy.plugins.resolver.packager.PackagerResolver.findArtifactRef(PackagerResolver.java:193)
	at org.apache.ivy.plugins.resolver.BasicResolver.getArtifactRef(BasicResolver.java:833)
	at org.apache.ivy.plugins.resolver.BasicResolver$1.resolve(BasicResolver.java:923)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.download(DefaultRepositoryCacheManager.java:726)
	at org.apache.ivy.plugins.resolver.BasicResolver.download(BasicResolver.java:674)
	at org.apache.ivy.plugins.resolver.RepositoryResolver.download(RepositoryResolver.java:240)
	at org.apache.ivy.plugins.resolver.PackagerResolverTest.testFile(PackagerResolverTest.java:134)
{noformat}

> Add new "packager" resolver to Ivy
> ----------------------------------
>
>                 Key: IVY-829
>                 URL: https://issues.apache.org/jira/browse/IVY-829
>             Project: Ivy
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Archie Cobbs
>            Assignee: Xavier Hanin
>             Fix For: 2.0-RC1
>
>         Attachments: m2repo.tgz, packager-resolver-patch.txt, test-patch.txt
>
>
> Feature request to add a new resolver, called the "Packager Resolver", [described here|http://ivyroundup.googlecode.com/svn/wiki/files/packager.html].
> Patch is attached and also available [here|http://ivyroundup.googlecode.com/svn/wiki/files/packager-resolver.patch].
Patch contains binary test files, so to apply it you have to follow the [simple steps described
here|http://code.google.com/p/ivyroundup/].

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message