[
https://issues.apache.org/jira/browse/OODT-451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luca Cinquini resolved OODT-451.
--------------------------------
Resolution: Fixed
Fix Version/s: (was: 0.5)
0.4
As suggested, the functionality has been implemented as a separate subclass
SubProductExistenceCheckComparator (which inherits from
ExistanceCheckComparator), so not to affect in any way existence deployments.
This precondition can be configured just like the superclass, with the
additional property "filePath" that specified the marker file path *relative*
to the product directory path.
> Implement Marker File precondition
> ----------------------------------
>
> Key: OODT-451
> URL: https://issues.apache.org/jira/browse/OODT-451
> Project: OODT
> Issue Type: Improvement
> Components: metadata container
> Affects Versions: 0.3
> Reporter: Luca Cinquini
> Assignee: Luca Cinquini
> Fix For: 0.4
>
>
> Sometimes it is necessary to process a product directory only when the
> directory has been fully produced, or transferred, which can be indicated by
> the existence of a special "marker file". It is suggested that we implement a
> precondition that checks for the existence of a given file within a given
> product. This precondition would be implemented similarly to
> org.apache.oodt.cas.metadata.preconditions.ExistanceCheckComparator, but
> would check for a file at location:
> File file = new File(product.getAbsolutePath()+"/"+filePath);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira