minor fix for csv
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@144031 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3233eba11c
commit
58641a14b2
|
@ -164,8 +164,7 @@ public class ManageTimeSeriesThread extends Thread{
|
||||||
char firstLetter = productName.charAt(0);
|
char firstLetter = productName.charAt(0);
|
||||||
|
|
||||||
// the whole path of the directory is going to be...
|
// the whole path of the directory is going to be...
|
||||||
productName = replaceIllegalChars(productName);
|
String csvDirectoryForThisProduct = recordTypeFolderName + PATH_SEPARATOR + firstLetter + PATH_SEPARATOR + replaceIllegalChars(productName) + PATH_SEPARATOR + "csv";
|
||||||
String csvDirectoryForThisProduct = recordTypeFolderName + PATH_SEPARATOR + firstLetter + PATH_SEPARATOR + productName + PATH_SEPARATOR + "csv";
|
|
||||||
logger.debug("The path under which the time series are going to be saved is " + csvDirectoryForThisProduct);
|
logger.debug("The path under which the time series are going to be saved is " + csvDirectoryForThisProduct);
|
||||||
WorkspaceFolder csvFolder = HelperMethods.createOrGetSubFoldersByPath(catalogueFolder, csvDirectoryForThisProduct);
|
WorkspaceFolder csvFolder = HelperMethods.createOrGetSubFoldersByPath(catalogueFolder, csvDirectoryForThisProduct);
|
||||||
|
|
||||||
|
@ -188,7 +187,7 @@ public class ManageTimeSeriesThread extends Thread{
|
||||||
|
|
||||||
CustomField customAnnotation = field.getAnnotation(CustomField.class);
|
CustomField customAnnotation = field.getAnnotation(CustomField.class);
|
||||||
logger.debug("A time series has been just found (from field " + customAnnotation.key() + ")");
|
logger.debug("A time series has been just found (from field " + customAnnotation.key() + ")");
|
||||||
String resourceToAttachName = (productName + "_" + customAnnotation.key()).replaceAll("\\s", "_").replaceAll("[_]+", "_") + CSV_FILE_FORMAT;
|
String resourceToAttachName = (replaceIllegalChars(productName) + "_" + customAnnotation.key()).replaceAll("\\s", "_").replaceAll("[_]+", "_") + CSV_FILE_FORMAT;
|
||||||
String resourceToAttachDescription = productName + " : " + customAnnotation.key() + " time series";
|
String resourceToAttachDescription = productName + " : " + customAnnotation.key() + " time series";
|
||||||
|
|
||||||
File csvFile = CSVHelpers.listToCSV(asList);
|
File csvFile = CSVHelpers.listToCSV(asList);
|
||||||
|
|
Loading…
Reference in New Issue