Class Maven2DirectoryProjectPaths
- java.lang.Object
-
- org.apache.torque.generator.configuration.paths.Maven2ProjectPaths
-
- org.apache.torque.generator.configuration.paths.Maven2DirectoryProjectPaths
-
- All Implemented Interfaces:
ProjectPaths
public class Maven2DirectoryProjectPaths extends Maven2ProjectPaths
Implementation of ProjectPaths if the configuration is located in a directory of a maven 2 project.
-
-
Field Summary
-
Fields inherited from class org.apache.torque.generator.configuration.paths.Maven2ProjectPaths
CACHE_DIR, CONFIG_DIR, DEFAULT_OUTPUT_DIR, MODIFIABLE_OUTPUT_DIR, MODIFIABLE_OUTPUT_DIR_KEY, SOURCE_DIR, WORK_DIR
-
-
Constructor Summary
Constructors Constructor Description Maven2DirectoryProjectPaths(File projectRoot)
Constructor.
-
Method Summary
Modifier and Type Method Description String
getConfigurationPackage()
Returns the package of the Torque generator files.File
getConfigurationPath()
Returns the subdirectory for the Torque generator files, relative to the project root.-
Methods inherited from class org.apache.torque.generator.configuration.paths.Maven2ProjectPaths
getCacheDirectory, getDefaultSourcePath, getOutputDirectory, getOutputDirectoryMap, getProjectRoot, getWorkDirectory
-
-
-
-
Constructor Detail
-
Maven2DirectoryProjectPaths
public Maven2DirectoryProjectPaths(File projectRoot)
Constructor.- Parameters:
projectRoot
- path to the project root directory, not null. The path must either be absolute or relative to the current working directory.
-
-
Method Detail
-
getConfigurationPath
public File getConfigurationPath()
Returns the subdirectory for the Torque generator files, relative to the project root.- Specified by:
getConfigurationPath
in interfaceProjectPaths
- Specified by:
getConfigurationPath
in classMaven2ProjectPaths
- Returns:
- the subdirectory for the Torque generator files, not null.
-
getConfigurationPackage
public String getConfigurationPackage()
Returns the package of the Torque generator files.- Specified by:
getConfigurationPackage
in interfaceProjectPaths
- Specified by:
getConfigurationPackage
in classMaven2ProjectPaths
- Returns:
- null.
-
-