Changeset 10560
- Timestamp:
- 2005-08-25T12:05:49+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r10556 r10560 213 213 214 214 // Remove the lock on this file, then remove the collection. 215 String collection_directory_path = getCollectionDirectoryPath(collection.getName()); 216 File lock_file = new File(collection_directory_path + LOCK_FILE); 215 File lock_file = new File(getCollectionDirectoryPath() + LOCK_FILE); 217 216 lock_file.delete(); 218 217 if (lock_file.exists()) { … … 521 520 522 521 522 static public String getCollectionDirectoryPath() 523 { 524 return Gatherer.getCollectDirectoryPath() + collection.getName() + File.separator; 525 } 526 527 523 528 /** Constructs the absolute filename of the collection's directory, which should resemble "$GSDLHOME/collect/<col_name>" 524 529 * @return A <strong>String</strong> containing the directory name. … … 535 540 public String getCollectionFilePath() 536 541 { 537 return getCollectionDirectoryPath( collection.getName()) + collection.getName() + ".col";542 return getCollectionDirectoryPath() + collection.getName() + ".col"; 538 543 } 539 544 … … 544 549 public String getCollectionArchivesDirectoryPath() 545 550 { 546 return getCollectionDirectoryPath( collection.getName()) + "archives" + File.separator;551 return getCollectionDirectoryPath() + "archives" + File.separator; 547 552 } 548 553 … … 553 558 public String getCollectionBuildingDirectoryPath() 554 559 { 555 return getCollectionDirectoryPath( collection.getName()) + "building" + File.separator;560 return getCollectionDirectoryPath() + "building" + File.separator; 556 561 } 557 562 … … 571 576 public String getCollectionEtcDirectoryPath() 572 577 { 573 return getCollectionDirectoryPath( collection.getName()) + "etc" + File.separator;578 return getCollectionDirectoryPath() + "etc" + File.separator; 574 579 } 575 580 … … 580 585 public String getCollectionImagesDirectoryPath() 581 586 { 582 return getCollectionDirectoryPath( collection.getName()) + "images" + File.separator;587 return getCollectionDirectoryPath() + "images" + File.separator; 583 588 } 584 589 … … 589 594 public String getCollectionImportDirectoryPath() 590 595 { 591 return getCollectionDirectoryPath( collection.getName()) + "import" + File.separator;596 return getCollectionDirectoryPath() + "import" + File.separator; 592 597 } 593 598 … … 598 603 public String getCollectionIndexDirectoryPath() 599 604 { 600 return getCollectionDirectoryPath( collection.getName()) + "index" + File.separator;605 return getCollectionDirectoryPath() + "index" + File.separator; 601 606 } 602 607 … … 607 612 public String getCollectionLogDirectoryPath() 608 613 { 609 return getCollectionDirectoryPath( collection.getName()) + "log" + File.separator;614 return getCollectionDirectoryPath() + "log" + File.separator; 610 615 } 611 616 … … 616 621 public String getCollectionMetadataDirectoryPath() 617 622 { 618 return getCollectionDirectoryPath( collection.getName()) + "metadata" + File.separator;623 return getCollectionDirectoryPath() + "metadata" + File.separator; 619 624 } 620 625
Note:
See TracChangeset
for help on using the changeset viewer.