The ivy settings file isn't an ivy.xml -- it's a different format:
http://ant.apache.org/ivy/history/latest-milestone/settings.html and
http://ant.apache.org/ivy/history/latest-milestone/use/settings.html Each project/module (i.e. ormlayer) also needs an ivy.xml file listing dependencies and artifacts it produces. I think to have the ivy.xml in a lower directory than the toplevel you need: <ivy:resolve file="bldfiles/ivy.xml" /> before <ivy:retrieve.... On 11/25/2010 08:42 AM, Hiller, Dean (Contractor) wrote: I have an ant target tooldownload like so<target name="tooldownload" depends="ivydownload"> <ivy:settings file="${config}/ivy.xml"/> <ivy:retrieve pattern="${dependencies}/[conf]/[artifact]-[revision]-[type].[ext]" sync="true"/> </target> Check the ant log and ivy loads the correct file at first then complains it can't find it at a different location...what is going on? tooldownload: [ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ :: [ivy:retrieve] :: loading settings :: file = C:\AAROOT\area1\ormlayer\bldfiles\ivy.xml [ivy:retrieve] C:\AAROOT\area1\ormlayer\ivy.xml (The system cannot find the file specified) in file: /C:/AAROOT/area1/ormlayer/ivy.xml So I try this instead... <target name="tooldownload" depends="ivydownload"> <ivy:configure file="${config}/ivy.xml"/> <ivy:retrieve pattern="${dependencies}/[conf]/[artifact]-[revision]-[type].[ext]" sync="true"/> </target> Same issue, so I try this... <target name="tooldownload" depends="ivydownload"> <echo message="test3"/> <property name="ivy.settings.file" value="${config}/ivy.xml"/> <ivy:retrieve pattern="${dependencies}/[conf]/[artifact]-[revision]-[type].[ext]" sync="true"/> </target> Same error except with my test3 message(just making sure I was changing and running the same file. What gives here? My structure Of my project is <project>/bldfiles/build.xml and the baseDir=".." Is the Ivy tasks not reading the basedir property correctly or something? I don't get what is going on. We execute ant from a build.bat File at the top level of the project. Ie. Build.bat has ant -f bldfiles/build.xml. Does this not work? Is this a bug? Thanks, Dean This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. --
--
Glenn J. Mason
geo: melbourne, australia This message and any attachments is for the exclusive use of the individual to which it is addressed and may
contain information which is privileged, confidential or prohibited from disclosure.
This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying, disclosure or taking of any action in reliance upon it by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. The Monitise group comprises: Monitise plc (Reg. No. 6011822), Monitise Group Limited (Reg. No. 5590897), Monitise International Limited (Reg. No. 5556711), Monitise Europe Limited (Reg. No. 4831976) and Monitise Business Solutions Limited (Reg. No. 5814266). These companies are registered in England and Wales and their registered office address is: Warnford Court, 29 Throgmorton Street, London, EC2N 2AT United Kingdom. |
- ivy not loading ivy.xml from correct location? Hiller, Dean (Contractor)
- Re: ivy not loading ivy.xml from correct l... Glenn J. Mason
- RE: ivy not loading ivy.xml from corre... Hiller, Dean (Contractor)