public class MavenShellCallback extends DefaultShellCallback
Constructor and Description |
---|
MavenShellCallback(MyBatisGeneratorMojo mybatisGeneratorMojo,
boolean overwrite) |
Modifier and Type | Method and Description |
---|---|
File |
getDirectory(String targetProject,
String targetPackage)
This method is called to ask the shell to resolve a project/package combination into a directory on the file
system.
|
isOverwriteEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMergeSupported, mergeJavaFile, refreshProject
public MavenShellCallback(MyBatisGeneratorMojo mybatisGeneratorMojo, boolean overwrite)
public File getDirectory(String targetProject, String targetPackage) throws ShellException
ShellCallback
The returned java.io.File
object:
The default shell callback interprets both values as directories and simply concatenates the two values to generate the default directory.
getDirectory
in interface ShellCallback
getDirectory
in class DefaultShellCallback
targetProject
- the target projecttargetPackage
- the target packageShellException
- if the project/package cannot be resolved into a directory on the file system. In this case, the
generator will not save the file it is currently working on. The generator will add the exception
message to the list of warnings automatically.Copyright © 2006–2022 MyBatis.org. All rights reserved.