org.apache.maven.shared.release.config
Class PropertiesReleaseDescriptorStore
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore
- All Implemented Interfaces:
- ReleaseDescriptorStore, org.codehaus.plexus.logging.LogEnabled
public class PropertiesReleaseDescriptorStore
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements ReleaseDescriptorStore
Read and write release configuration and state from a properties file.
- Author:
- Brett Porter
- Plexus component:
- role:
- "org.apache.maven.shared.release.config.ReleaseDescriptorStore"
- role-hint:
- "properties"
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesReleaseDescriptorStore
public PropertiesReleaseDescriptorStore()
read
public ReleaseDescriptor read(ReleaseDescriptor mergeDescriptor)
throws ReleaseDescriptorStoreException
- Description copied from interface:
ReleaseDescriptorStore
- Read a configuration.
- Specified by:
read
in interface ReleaseDescriptorStore
- Parameters:
mergeDescriptor
- configuration to merge with the loaded configuration. Some values are used as defaults,
while others are used to override
- Returns:
- the configuration
- Throws:
ReleaseDescriptorStoreException
read
public ReleaseDescriptor read(File file)
throws ReleaseDescriptorStoreException
- Throws:
ReleaseDescriptorStoreException
read
public ReleaseDescriptor read(ReleaseDescriptor mergeDescriptor,
File file)
throws ReleaseDescriptorStoreException
- Throws:
ReleaseDescriptorStoreException
write
public void write(ReleaseDescriptor config)
throws ReleaseDescriptorStoreException
- Description copied from interface:
ReleaseDescriptorStore
- Save a configuration.
- Specified by:
write
in interface ReleaseDescriptorStore
- Parameters:
config
- the configuration
- Throws:
ReleaseDescriptorStoreException
delete
public void delete(ReleaseDescriptor config)
- Description copied from interface:
ReleaseDescriptorStore
- Remove a configuration.
- Specified by:
delete
in interface ReleaseDescriptorStore
- Parameters:
config
- the location of the configuration
write
public void write(ReleaseDescriptor config,
File file)
throws ReleaseDescriptorStoreException
- Throws:
ReleaseDescriptorStoreException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.