org.apache.torque.generator.configuration.paths

## 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 and Description
    `Maven2DirectoryProjectPaths(File projectRoot)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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 interface `ProjectPaths`
      Specified by:
        `getConfigurationPath` in class `Maven2ProjectPaths`
      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 interface `ProjectPaths`
      Specified by:
        `getConfigurationPackage` in class `Maven2ProjectPaths`
      Returns:
        null.

Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.