org.figure8.join.services.scripting.ant.tasks
Interface VersionInfoExtractor

All Known Implementing Classes:
DummyVersionInfoExtractor

public interface VersionInfoExtractor

Interface that defines the operation of extracting a version information from a set of files. That way, a component version can be specified using different means such as a directory name, a zip file name, a deployment Xml file, a text file, etc ... Each implementation will define it's own means to retrieve this component version and its own version syntax.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Method Summary
 java.lang.String extractVersionInfo(java.io.File[] files)
          Extract a version identifier of a component or whatever else from the set of files defining this component / package.
 

Method Detail

extractVersionInfo

java.lang.String extractVersionInfo(java.io.File[] files)
                                    throws java.util.MissingResourceException,
                                           java.text.ParseException
Extract a version identifier of a component or whatever else from the set of files defining this component / package.

Parameters:
files - A set of files used to extract the version information.
Returns:
A version information
Throws:
java.util.MissingResourceException - if the resource used for the version extraction is missing.
java.text.ParseException - if the version information cannod be parsed from files


Copyright © 2005-2008 Join. All Rights Reserved.