nl.toolforge.karma.core.manifest
Class DevelopmentManifest

java.lang.Object
  extended bynl.toolforge.karma.core.manifest.AbstractManifest
      extended bynl.toolforge.karma.core.manifest.DevelopmentManifest
All Implemented Interfaces:
Manifest

public final class DevelopmentManifest
extends AbstractManifest

Version:
$Id: DevelopmentManifest.java,v 1.16 2004/11/10 22:25:10 hippe Exp $
Author:
D.A. Smedes

Field Summary
 
Fields inherited from interface nl.toolforge.karma.core.manifest.Manifest
DEVELOPMENT_MANIFEST, HISTORY_KEY, RELEASE_MANIFEST
 
Constructor Summary
DevelopmentManifest(WorkingContext context, ManifestStructure structure)
           
DevelopmentManifest(WorkingContext workingContext, java.lang.String name)
           
 
Method Summary
protected  void applyWorkingContext(WorkingContext context, Module module)
          Applies the current working context to a module in this release manifest.
 java.lang.String getType()
           
 
Methods inherited from class nl.toolforge.karma.core.manifest.AbstractManifest
equals, getAllModules, getBaseDirectory, getBuildBaseDirectory, getDescription, getIncludes, getInterdependencies, getModule, getModuleBaseDirectory, getModuleInterdependencies, getModulesForManifest, getName, getReportsBaseDirectory, getState, getTempDirectory, getVersion, hashCode, isLocal, isLocal, save, setDescription, setState, setVersion, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DevelopmentManifest

public DevelopmentManifest(WorkingContext workingContext,
                           java.lang.String name)
                    throws ManifestException,
                           LocationException

DevelopmentManifest

public DevelopmentManifest(WorkingContext context,
                           ManifestStructure structure)
                    throws LocationException
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface Manifest
Specified by:
getType in class AbstractManifest

applyWorkingContext

protected void applyWorkingContext(WorkingContext context,
                                   Module module)

Applies the current working context to a module in this release manifest.

This method also checks if the module is available locally. If so, the module will be matched with the module on disk to check if they are equal. This is to ensure that a changed manifest-definition is reflected on disk. If the manifest shows another module (which is in fact determined by its location), the version on disk will be removed.

Specified by:
applyWorkingContext in class AbstractManifest
Parameters:
context - The current WorkingContext.
module - The module to which context should be applied.


Copyright © 2002-2004 Toolforge. All Rights Reserved.