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 Tue, 16 Jun 2009 22:18:49 GMT
If I add the following attribute to my report task:

resolveId="${ivy.organisation}-${ivy.module}-caller"

it fixes the problem.  Perhaps an inline attribute should be added to the report task which
does this for the user?


---
Shawn Castrianni

From: Shawn Castrianni
Sent: Tuesday, June 16, 2009 5:13 PM
To: 'ivy-user@ant.apache.org'
Subject: RE: inline resolve followed by report failure

Looking at ivy source code, I see lots of places where isInline() is checked causing "-caller"
to be appended to the module name.  If "-caller" is needed during inline mode, then does that
mean the report task needs an inline attribute to make it use the proper ivy cache xml file?

---
Shawn Castrianni

From: Shawn Castrianni
Sent: Tuesday, June 16, 2009 5:07 PM
To: 'ivy-user@ant.apache.org'
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