Skip to content
Snippets Groups Projects
Commit c07d6ab6 authored by kohleman's avatar kohleman
Browse files

added a meta-data-file-prefix which can be set in service.properties and will...

added a meta-data-file-prefix which can be set in service.properties and will be prepended to the tsv meta data file names

SVN: 14869
parent a887d523
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,8 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifierFa
class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedUndo
{
static final String META_DATA_FILE_TYPE = ".tsv";
static final String META_DATA_FILE_PREFIX = "meta-data-file-prefix";
static final String TRANSFER_PREFIX = "transfer.";
......@@ -92,6 +94,8 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
private final IEncapsulatedOpenBISService service;
private final MessageFormat flowLaneDropBoxTemplate;
private final String metaDataFilePrefix;
private final String entitySepaparator;
......@@ -108,6 +112,9 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
flowLaneDropBoxTemplate =
new MessageFormat(PropertyUtils.getMandatoryProperty(properties,
FLOW_LANE_DROP_BOX_TEMPLATE));
metaDataFilePrefix =
PropertyUtils.getMandatoryProperty(properties,
META_DATA_FILE_PREFIX);
entitySepaparator = properties.getProperty(ENTITY_SEPARATOR_KEY, DEFAULT_ENTITY_SEPARATOR);
srfInfoPathOrNull = properties.getProperty(SRF_INFO_PATH);
if (srfInfoPathOrNull != null)
......@@ -276,7 +283,7 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
}
}
String sampleCode = flowLaneSample.getCode();
String metaFileName = escapeSampleCode(sampleCode) + META_DATA_FILE_TYPE;
String metaFileName = metaDataFilePrefix + escapeSampleCode(sampleCode) + META_DATA_FILE_TYPE;
FileUtilities.writeToFile(new File(flowLaneDataSet, metaFileName), builder.toString());
copyToDropBox(dropBox, flowLaneDataSet);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment