File tree Expand file tree Collapse file tree
src/main/java/org/kiwitcms/java/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import org .apache .commons .configuration2 .builder .fluent .Configurations ;
99import org .apache .commons .configuration2 .ex .ConfigurationException ;
1010
11- import org .apache .commons .lang3 .StringUtils ;
1211import org .ini4j .Ini ;
1312import org .ini4j .IniPreferences ;
1413
@@ -27,10 +26,10 @@ public class Config {
2726
2827 private Config () {
2928 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+ );
3433 config = new IniPreferences (new Ini (new File (config_path )));
3534 } catch (java .io .IOException fnfe ) {
3635 fnfe .printStackTrace ();
You can’t perform that action at this time.
0 commit comments