You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2024/10/25 10:06:47 UTC
(commons-configuration) 03/05: Replace SystemProperties.getUserDir() with System.getProperty("user.dir")
This is an automated email from the ASF dual-hosted git repository.
ebourg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
commit 38ff95873b4092db55c8bfcfb78e5732707ba04d
Author: Emmanuel Bourg <eb...@apache.org>
AuthorDate: Fri Oct 25 11:02:46 2024 +0200
Replace SystemProperties.getUserDir() with System.getProperty("user.dir")
---
.../org/apache/commons/configuration2/resolver/CatalogResolver.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
index aa81c54a..26f91122 100644
--- a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
+++ b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
@@ -28,7 +28,6 @@ import org.apache.commons.configuration2.interpol.ConfigurationInterpolator;
import org.apache.commons.configuration2.io.ConfigurationLogger;
import org.apache.commons.configuration2.io.FileLocatorUtils;
import org.apache.commons.configuration2.io.FileSystem;
-import org.apache.commons.lang3.SystemProperties;
import org.apache.xml.resolver.CatalogException;
import org.apache.xml.resolver.readers.CatalogReader;
import org.xml.sax.EntityResolver;
@@ -176,7 +175,7 @@ public class CatalogResolver implements EntityResolver {
private FileSystem fs;
/** The base directory */
- private String baseDir = SystemProperties.getUserDir();
+ private String baseDir = System.getProperty("user.dir");
/** The object for handling interpolation. */
private ConfigurationInterpolator interpolator;