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:[email protected]] Sent: Tuesday, June 16, 2009 5:16 PM To: [email protected] 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 <[email protected]> To: "[email protected]" <[email protected]> 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.
