Changeset 7925
- Timestamp:
- 2004-08-10T11:27:15+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/shell/GShell.java
r7739 r7925 238 238 if (!args[i+1].startsWith(StaticStrings.MINUS_CHARACTER)) { 239 239 i++; 240 String val = args[i];240 String val = URLEncoder.encode(args[i],"UTF-8"); 241 241 launch = launch + val; 242 242 } … … 249 249 250 250 System.err.println("**** launch url = " + launch); 251 // fireMessage(type, Dictionary.get("GShell.Command") + ": " + launch, status, null); // **** 251 252 252 253 URL launch_url = new URL(launch); … … 425 426 if (Gatherer.isGsdlRemote) { 426 427 if (type == IMPORT) { 428 if (progress!=null) { 429 progress.messageOnProgressBar("Uploading data to server"); 430 } 431 427 432 // zip up import folder 428 433 Utility.zipup(col_name,"import"); … … 433 438 Utility.zipup(col_name,Utility.CONFIG_FILE); 434 439 Utility.upload_url_zip(col_name,"etc"); 440 441 if (progress!=null) { 442 progress.messageOnProgressBar(""); 443 } 444 435 445 } 436 446 } … … 457 467 // download the archives directory (if gsdl server is remote) 458 468 if (Gatherer.isGsdlRemote) { 469 470 if (progress!=null) { 471 progress.messageOnProgressBar("Downloading archive data from server"); 472 } 473 474 459 475 Utility.delete(Gatherer.c_man.getCollectionArchive()); // remove current archives 460 476 Utility.download_url_zip(col_name,"archives"); 461 477 Utility.unzip(col_name); 478 479 if (progress!=null) { 480 progress.messageOnProgressBar(""); 481 } 462 482 } 463 483 … … 472 492 // download the building directory (if gsdl server is remote) 473 493 if (Gatherer.isGsdlRemote) { 494 if (progress!=null) { 495 progress.messageOnProgressBar("Downloading index data from server"); 496 } 497 474 498 Utility.delete(Gatherer.c_man.getCollectionBuild()); // remove current build dir 475 499 Utility.download_url_zip(col_name,"building"); 476 500 Utility.unzip(col_name); 501 502 if (progress!=null) { 503 progress.messageOnProgressBar(""); 504 } 505 477 506 } 478 507
Note:
See TracChangeset
for help on using the changeset viewer.