You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Bart Dooms (JIRA)" <ji...@apache.org> on 2011/04/12 22:22:05 UTC

[jira] [Updated] (IVY-1286) publish task ins't working after inline resolve

     [ https://issues.apache.org/jira/browse/IVY-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bart Dooms updated IVY-1286:
----------------------------

    Attachment: output.txt

This is the complete output of my build.xml file (this include some extra echo's to see the values of some attributes before and after calling the resolve and publish tasks)

> publish task ins't working after inline resolve
> -----------------------------------------------
>
>                 Key: IVY-1286
>                 URL: https://issues.apache.org/jira/browse/IVY-1286
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>         Environment: Windwos
>            Reporter: Bart Dooms
>         Attachments: output.txt
>
>
> The publish task isn't working after inline resolve.
> I used the following instructions in my build.xml file:
> 		<ivy:resolve refresh="true" *inline="true"* keep="true" organisation="${pl.organisation}" module="${pl.module}" revision="${ivy.revision}"/>
> 				
> 		<ivy:publish pubrevision="${pl.newVersion}" 
> 			resolver="localRepository" forcedeliver="true" update="true" merge="false" overwrite="true" 
> 			status="Baselined" srcivypattern="${ivy.default.cache.dir}/${ivy.cache.default.ivy.pattern}" 
> 		/>
> The resolve task is not taking into account the attribute *keep=true*, because in the cache I found the follwoing file: resolved-_[organisation]_-_[Module]_-*caller-working*.xml
> And even the publish task is seeking for resolved-_[organisation]_-_[Module]_-*caller-working*_@computerName_.xml
> As you can see in the error track trace:
> D:\SVN\trunk\repository\build.xml:203: SYS#PythonApi-caller;working@P100003A1: java.lang.IllegalStateException: ivy file
>  not found in cache for SYS#PythonApi-caller;working@P100003A1: please resolve dependencies before delivering (d:\tryout
> \Proba-V\cache\resolved-SYS-PythonApi-caller-working@P100003A1.xml)
>         at org.apache.ivy.core.deliver.DeliverEngine.deliver(DeliverEngine.java:112)
>         at org.apache.ivy.Ivy.deliver(Ivy.java:586)
>         at org.apache.ivy.ant.IvyDeliver.doExecute(IvyDeliver.java:423)
>         at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
>         at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:308)
>         at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:390)
>         at org.apache.tools.ant.Target.performTasks(Target.java:411)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
>         at org.apache.tools.ant.Main.runBuild(Main.java:801)
>         at org.apache.tools.ant.Main.startAnt(Main.java:218)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira