nl.toolforge.karma.core.vc
Class PatchLine
java.lang.Object
nl.toolforge.karma.core.vc.DevelopmentLine
nl.toolforge.karma.core.vc.PatchLine
- public class PatchLine
- extends DevelopmentLine
A PatchLine
is a special type of DevelopmentLine
, used when a module has been released to
(for example) the test department. NIET_WEG.
- Version:
- $Id: PatchLine.java,v 1.8 2004/10/26 22:45:21 hippe Exp $
- Author:
- D.A. Smedes
Constructor Summary |
PatchLine(Version version)
Creates a PatchLine for version version . |
Method Summary |
java.lang.String |
getMatchingPattern()
Given the patch line for a module, a matching pattern is required to select the corresponding patch versions. |
java.lang.String |
getPatternString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
NAME_PREFIX
public static final java.lang.String NAME_PREFIX
- Name prefix for the symbolic name that is applied to the module when a patchline is created. A symbolic name
would look like this :
PATCHLINE_0-2
, indicating that a patchline is created for
version 0-2
.
- See Also:
- Constant Field Values
VERSION_SEPARATOR_PATTERN
public static final java.lang.String VERSION_SEPARATOR_PATTERN
- See Also:
- Constant Field Values
VERSION_SEPARATOR
public static final java.lang.String VERSION_SEPARATOR
- See Also:
- Constant Field Values
PATCH_SEPARATOR_PATTERN
public static final java.lang.String PATCH_SEPARATOR_PATTERN
- See Also:
- Constant Field Values
PATCH_SEPARATOR
public static final java.lang.String PATCH_SEPARATOR
- See Also:
- Constant Field Values
PatchLine
public PatchLine(Version version)
- Creates a PatchLine for version
version
.
- Parameters:
version
- The version for which a PatchLine must be created.
getPatternString
public java.lang.String getPatternString()
- Overrides:
getPatternString
in class DevelopmentLine
getMatchingPattern
public java.lang.String getMatchingPattern()
- Given the patch line for a module, a matching pattern is required to select the corresponding patch versions. A
patch line
PATCHLINE_0-0
will generate patch versions like PATCHLINE_0-0-1
,
PATCHLINE_0-0-2
etc. This method will then return the following pattern string :
PATCHLINE_0-0-\d{1,4}
- Returns:
- See the method description.
Copyright © 2002-2004 Toolforge. All Rights Reserved.