File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/org/kiwitcms/java/config Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 8
8
import org .apache .commons .configuration2 .builder .fluent .Configurations ;
9
9
import org .apache .commons .configuration2 .ex .ConfigurationException ;
10
10
11
- import org .apache .commons .lang3 .StringUtils ;
12
11
import org .ini4j .Ini ;
13
12
import org .ini4j .IniPreferences ;
14
13
@@ -27,10 +26,10 @@ public class Config {
27
26
28
27
private Config () {
29
28
try {
30
- String config_path = System .getProperty ("user.home" ) + "/.tcms.conf" );
31
- if (! StringUtils . isBlank ( System . getProperty ( "tcmsConfigPath" ))) {
32
- config_path = System .getProperty ("tcmsConfigPath" );
33
- }
29
+ String config_path = System .getProperty (
30
+ "tcmsConfigPath" ,
31
+ System .getProperty ("user.home" ) + "/.tcms.conf"
32
+ );
34
33
config = new IniPreferences (new Ini (new File (config_path )));
35
34
} catch (java .io .IOException fnfe ) {
36
35
fnfe .printStackTrace ();
You can’t perform that action at this time.
0 commit comments