[jps] eliminates noisy missing Gradle config file logging

This commit is contained in:
Roman Shevchenko
2017-09-13 11:31:25 +03:00
parent f4b861e96a
commit 521102b2b6
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -114,11 +114,13 @@ public class JpsGradleExtensionServiceImpl extends JpsGradleExtensionService {
config = myLoadedConfigs.get(configFile);
if (config == null) {
config = new GradleProjectConfiguration();
try {
XmlSerializer.deserializeInto(config, JDOMUtil.load(configFile));
}
catch (Exception e) {
LOG.info(e);
if (configFile.exists()) {
try {
XmlSerializer.deserializeInto(config, JDOMUtil.load(configFile));
}
catch (Exception e) {
LOG.info(e);
}
}
myLoadedConfigs.put(configFile, config);
}