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.
|
isOverwriteEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMergeSupported, mergeJavaFile, refreshProjectpublic MavenShellCallback(MyBatisGeneratorMojo mybatisGeneratorMojo, boolean overwrite)
public File getDirectory(String targetProject, String targetPackage) throws ShellException
ShellCallbackThe 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 ShellCallbackgetDirectory in class DefaultShellCallbacktargetProject - 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–2025 MyBatis.org. All rights reserved.