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.
|
isMergeSupported, isOverwriteEnabled, mergeJavaFile, refreshProject
public MavenShellCallback(MyBatisGeneratorMojo mybatisGeneratorMojo, boolean overwrite)
overwrite
- public File getDirectory(String targetProject, String targetPackage) throws ShellException
ShellCallback
java.io.File
object:
getDirectory
in interface ShellCallback
getDirectory
in class DefaultShellCallback
ShellException
- 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 © 2010–2018 MyBatis.org. All rights reserved.