mirror of https://github.com/apache/ant-ivy
better default ivy user dir management
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/trunk@484162 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
df1bfac007
commit
1e26fb30bd
|
|
@ -253,7 +253,11 @@ public class Ivy implements TransferListener {
|
|||
Message.info(":: configuring :: file = "+configurationFile);
|
||||
long start = System.currentTimeMillis();
|
||||
setConfigurationVariables(configurationFile);
|
||||
getDefaultIvyUserDir();
|
||||
if (getVariable("ivy.default.ivy.user.dir") != null) {
|
||||
setDefaultIvyUserDir(new File(getVariable("ivy.default.ivy.user.dir")));
|
||||
} else {
|
||||
getDefaultIvyUserDir();
|
||||
}
|
||||
getDefaultCache();
|
||||
|
||||
try {
|
||||
|
|
@ -272,7 +276,11 @@ public class Ivy implements TransferListener {
|
|||
Message.info(":: configuring :: url = "+configurationURL);
|
||||
long start = System.currentTimeMillis();
|
||||
setConfigurationVariables(configurationURL);
|
||||
getDefaultIvyUserDir();
|
||||
if (getVariable("ivy.default.ivy.user.dir") != null) {
|
||||
setDefaultIvyUserDir(new File(getVariable("ivy.default.ivy.user.dir")));
|
||||
} else {
|
||||
getDefaultIvyUserDir();
|
||||
}
|
||||
getDefaultCache();
|
||||
|
||||
new XmlIvyConfigurationParser(this).parse(configurationURL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue