nl.toolforge.karma.core.vc.cvsimpl
Class Utils
java.lang.Object
nl.toolforge.karma.core.vc.cvsimpl.Utils
- public final class Utils
- extends java.lang.Object
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
createSymbolicName
public static SymbolicName createSymbolicName(Module module,
DevelopmentLine developmentLine,
Version version)
Creates a symbolic name for module
, based on version
and whether a module has an
associated DevelopmentLine
.
Right now, symbolic name stuff is supported for SourceModule
s, so if this method is supplied with
another module
type, the method returns an empty CVSTag
.
- Parameters:
module
- The module at hand.developmentLine
- The development line to which the version applies.version
- The version (within the modules' development line. version
may be null
in
which case it is ignored when creating a SymbolicName
.
- Returns:
- A symbolic name (tag) as they are used in a CVS repository. An empty CVSTag is returned when another
instance than a
SourceModule
is passed as the module
parameter.
createSymbolicName
public static SymbolicName createSymbolicName(Module module,
Version version)
createSymbolicName
public static SymbolicName createSymbolicName(Patch patch)
getLastVersion
public static Version getLastVersion(Module module)
throws VersionControlException
- Throws:
VersionControlException
getLocalVersion
public static Version getLocalVersion(Module module)
throws VersionControlException
- Throws:
VersionControlException
existsInRepository
public static boolean existsInRepository(Module module)
Copyright © 2002-2004 Toolforge. All Rights Reserved.