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

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

The test doesn't work on my machine as well (windows).

I managed to capture following stacktrace:
{noformat}
java.io.IOException: CreateProcess: ant -verbose 
-Divy.packager.organisation=org -Divy.packager.module=mod 
-Divy.packager.revision=1.0 -Divy.packager.branch=null 
-Divy.packager.resourceCache=C:\projects\ivy\trunk\build\test\PackagerResolverTest\resources
 -Divy.packager.validate=true error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:68)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at 
org.apache.ivy.plugins.resolver.packager.SubProcess.run(SubProcess.java:57)
        at 
org.apache.ivy.plugins.resolver.packager.PackagerCacheEntry.build(PackagerCacheEntry.java:131)
        at 
org.apache.ivy.plugins.resolver.packager.PackagerResolver.findArtifactRef(PackagerResolver.java:193)
        at 
org.apache.ivy.plugins.resolver.BasicResolver.getArtifactRef(BasicResolver.java:833)
{noformat}

For windows, this will not work, the process should be something like "cmd.exe 
/C ant -verbose ..." instead of "ant -verbose ..."
I'm not sure what would be the best fix for this problem...

Maarten

> 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
>
>
> 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.

Reply via email to