org.figure8.join.services.scripting.ant.tasks
Class DummyVersionInfoExtractor
java.lang.Object
org.figure8.join.services.scripting.ant.tasks.DummyVersionInfoExtractor
- All Implemented Interfaces:
- VersionInfoExtractor
public class DummyVersionInfoExtractor
- extends java.lang.Object
- implements VersionInfoExtractor
This is a dummy implementation of VersionInfoExtractor
that represents
the behaviour of a sequence, i.e. version number returned by the extractVersionInfo()
method comes from a counter that is incremented at each call.
Don't use this implementation in production mode ! This is
just for test purpose : this implementation doesn't support server crashes !
(the index will restart from 0 ...)
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyVersionInfoExtractor
public DummyVersionInfoExtractor()
- Creates a new instance of DummyVersionInfoExtractor
extractVersionInfo
public 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.
- Specified by:
extractVersionInfo
in interface VersionInfoExtractor
- 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.