Commit 7b3da39 emarx
committed
1 parent 4cb6b7b commit 7b3da39 Copy full SHA for 7b3da39
File tree 1 file changed +5
-3
lines changed
kbox.kibe/src/main/java/org/aksw/kbox/kibe
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ public static void main(String[] args) throws Exception {
144
144
removeKNS (new URL (knsURL ));
145
145
logger .info ("KNS removed." );
146
146
} else if (commands .containsKey (RESOURCE_DIR_COMMAND )) {
147
- String resourceDir = commands .get (RESOURCE_DIR_COMMAND );
147
+ String resourceDir = commands .get (RESOURCE_DIR_COMMAND );
148
+ logger .info (resourceDir );
148
149
if (resourceDir != null ) {
149
150
try {
150
151
setResourceFolder (resourceDir );
@@ -227,14 +228,15 @@ public static void removeKNS(URL url) {
227
228
228
229
/**
229
230
* Command line parser.
231
+ *
230
232
* @param args a set o arguments received by command line
231
233
* @return a Map containing the parsed arguments
232
234
*/
233
235
public static Map <String , String > parse (String [] args ) {
234
236
Map <String , String > map = new HashMap <String , String >();
235
237
for (int i = 0 ; i < args .length ; i ++) {
236
- if (args [i ].contains ("-" )) { // is a command
237
- if (i +1 < args .length && !args [i +1 ].contains ("-" )) {
238
+ if (args [i ].startsWith ("-" )) { // is a command
239
+ if (i +1 < args .length && !args [i +1 ].startsWith ("-" )) {
238
240
map .put (args [i ], args [i +1 ]);
239
241
} else {
240
242
map .put (args [i ], null );
You can’t perform that action at this time.
0 commit comments