I am using Ivy as part of my continuous integration build system, but I need to override the default location that Ivy’s local cache area is.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although the answer above from skaffman is correct, I found it to be a lot more work than I had expected!
When I added the ivysettings.xml file to the project, I then needed to redefine almost everything, as the default values had been working fine until then.
so, I found out how to add the new cache directory to the in-line command-line within my NAnt script…
(Where
${ivy.jar}is the location of my .jar file and${project.cache}is the new location set earlier in the script where I want the cache area to use.)This means that I don’t need the ivysettings.xml file, and I can revert everything back to using the default resolvers, etc.