Some minor file harvest changes

This commit is contained in:
mbarbier 2011-07-05 20:49:23 +00:00
parent ff3ff4c90b
commit 977d859cd6
2 changed files with 13 additions and 0 deletions

View file

@ -291,6 +291,9 @@ class CsvFileHarvestJob implements FileHarvestJob {
String harvestedDataPath = getHarvestedDataPath();
String globalHarvestedDataRelativePath = FileHarvestController.PATH_TO_HARVESTED_DATA;
if(harvestedDataPath.endsWith("/"))
harvestedDataPath = harvestedDataPath.substring(0, harvestedDataPath.length() - 1);
replacements = replacements.replace("${WORKING_DIRECTORY}", workingDirectory);
replacements = replacements.replace("${UPLOADS_FOLDER}", fileDirectory);
replacements = replacements.replace("${HARVESTED_DATA_PATH}", harvestedDataPath);