ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Castrianni <Shawn.Castria...@halliburton.com>
Subject RE: inline resolve followed by report failure
Date Mon, 31 Aug 2009 17:58:35 GMT
The keep="true" doesn't seem to work anymore (I upgraded to latest ivy).  Can anyone explain
what keep="true" does on a resolve task and how I can get report task to work on a resolve
that was done with inline="true"?

Shawn Castrianni


----- Original Message ----
From: Shawn Castrianni <Shawn.Castrianni@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=2>>
To: "ivy-user@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=3>"
<ivy-user@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=4>>
Sent: Wednesday, June 17, 2009 12:07:18 AM
Subject: inline resolve followed by report failure


That also seems to work.  Can you describe what keep does and why that fixed my problem? 
I don't see it in the docs for the resolve or retrieve task.  Also, sometimes I use inline
and sometimes I don't.  Would always setting keep="true" cause any harm?

---
Shawn Castrianni


-----Original Message-----
From: Maarten Coene [mailto:maarten_coene@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=0>]
Sent: Tuesday, June 16, 2009 5:16 PM
To: ivy-user@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=1>
Subject: Re: inline resolve followed by report failure


Could you try adding keep="true" to your ivy:resolve task:
<ivy:resolve ... keep="true" />

Maarten




----- Original Message ----
From: Shawn Castrianni <Shawn.Castrianni@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=2>>
To: "ivy-user@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=3>"
<ivy-user@...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=24064252&i=4>>
Sent: Wednesday, June 17, 2009 12:07:18 AM
Subject: inline resolve followed by report failure

I am getting a failure on the report task, if my previous resolve task was inline.  The inline
resolve task is creating an ivy cache file with the "-caller-" in the name.  Then when the
report task looks for the cache file, it does not look for the "-caller-" version causing
it to fail.

The cache file generated by inline resolve:

E:\.ivy2\cache\g3d-DS_5000_4_0_0-LOCAL\Company-g3d-caller-win32.xml


The failure from report task:

BUILD FAILED
java.lang.IllegalStateException: Report file 'E:\.ivy2\cache\g3d-DS_5000_4_0_0-LOCAL\Company-g3d-win32.xml'
does not exist.
        at org.apache.ivy.plugins.report.XmlReportParser.parse(XmlReportParser.java:291)
        at org.apache.ivy.ant.IvyReport.getOutputPattern(IvyReport.java:287)
        at org.apache.ivy.ant.IvyReport.genxml(IvyReport.java:237)
        at org.apache.ivy.ant.IvyReport.doExecute(IvyReport.java:214)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        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:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
---
Shawn Castrianni

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information
for the sole use of the intended recipient.  Any review, use, distribution, or disclosure
by others is strictly prohibited.  If you are not the intended recipient (or authorized to
receive information for the intended recipient), please contact the sender by reply e-mail
and delete all copies of this message.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message