mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jps] eliminates noisy missing Gradle config file logging
This commit is contained in:
+8
-6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user