|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.configuration.paths.Maven2ProjectPaths
public abstract class Maven2ProjectPaths
Contains information of the default integration of the Torque generator into a maven 2 project.
| Field Summary | |
|---|---|
protected static String |
CONFIG_DIR
Default configuration root directory, relative to the project root. |
protected static String |
DEFAULT_OUTPUT_DIR
Default generation target directory, relative to the project root. |
static String |
MODIFIABLE_OUTPUT_DIR
Default generation target directory for generated files which are modifiable by the user, relative to the project root. |
static String |
MODIFIABLE_OUTPUT_DIR_KEY
Key for the target directory for generated files which are modifiable by the user, relative to the project root. |
protected static String |
SOURCE_DIR
Default generation source file directory, relative to the configuration root directory. |
protected static String |
WORK_DIR
Default working directory. |
| Constructor Summary | |
|---|---|
protected |
Maven2ProjectPaths(File projectRoot)
Constructor. |
| Method Summary | |
|---|---|
abstract String |
getConfigurationPackage()
Returns the package of the Torque generator configuration. |
abstract File |
getConfigurationPath()
Returns the path to the Torque generator configuration directory. |
File |
getDefaultSourcePath()
Returns the path to the source files. |
File |
getOutputDirectory(String outputDirKey)
Returns the output directory for a given output directory key. |
Map<String,File> |
getOutputDirectoryMap()
Returns the output directory map which contains the mapping from output directory key to output directory. |
protected File |
getProjectRoot()
returns the root directory of the whole maven 2 project. |
File |
getWorkDirectory()
Returns the default subdirectory where the torque generator can store internal files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String CONFIG_DIR
protected static final String SOURCE_DIR
public static final String MODIFIABLE_OUTPUT_DIR_KEY
public static final String MODIFIABLE_OUTPUT_DIR
protected static final String DEFAULT_OUTPUT_DIR
protected static final String WORK_DIR
| Constructor Detail |
|---|
protected Maven2ProjectPaths(File projectRoot)
projectRoot - path to the project root directory, not null.
The path must either be absolute or relative to the current
working directory.
NullPointerException - if projectRoot is null.| Method Detail |
|---|
public abstract File getConfigurationPath()
ProjectPaths
getConfigurationPath in interface ProjectPathspublic abstract String getConfigurationPackage()
ProjectPaths
getConfigurationPackage in interface ProjectPathspublic File getDefaultSourcePath()
getDefaultSourcePath in interface ProjectPathspublic Map<String,File> getOutputDirectoryMap()
getOutputDirectoryMap in interface ProjectPathsIllegalStateException - if the current state of the object
is not valid.public File getOutputDirectory(String outputDirKey)
getOutputDirectory in interface ProjectPathsoutputDirKey - the output directory key, or null for the default
output directory.
IllegalArgumentException - if the outputDirKey is unknown.public File getWorkDirectory()
getWorkDirectory in interface ProjectPathsprotected File getProjectRoot()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||