From c07d6ab6c6b14089b0a7a16633d64842ce80a31d Mon Sep 17 00:00:00 2001 From: kohleman <kohleman> Date: Fri, 19 Feb 2010 14:45:43 +0000 Subject: [PATCH] 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 --- .../java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java b/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java index b70c376e148..0f85fcb8682 100644 --- a/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java +++ b/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java @@ -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); } -- GitLab