Skip to content

Commit

Permalink
Small update to launcher docs and code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgbutler committed Aug 12, 2016
1 parent 1ba0ebf commit 2fa3eb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ <h2>What's Different in a Debug Launch?</h2>
a new Eclipse console called "MyBatis Generator". This can be useful when
using an SQL script as you will be able to see the script progress in the
console. You will also see many Ant configuration messages.</p>
<p>Currently the launcher does not support breakpoints in dependent projects.
If you are developing a plugin you may add the plugin project to the launcher
classpath and the plugin will be executed, but any breakpoints set in
plugin code will be ignored. This is a limitation of Ant support.</p>

<h2>How Passwords are Stored</h2>
<p>If you specify a password for connecting to a database with the Ant script, you
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.eclipse.core.runtime.Status;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate;
import org.mybatis.generator.eclipse.ui.Activator;
import org.mybatis.generator.eclipse.ui.Messages;
Expand Down Expand Up @@ -70,7 +71,7 @@ public void launch(ILaunchConfiguration configuration, String mode, ILaunch laun

antRunner.setBuildFileLocation(buildFile);
modifyAntClasspathIfNecessary(configuration, antRunner);
if ("debug".equals(mode)) { //$NON-NLS-1$
if (ILaunchManager.DEBUG_MODE.equals(mode)) {
antRunner.setMessageOutputLevel(Project.MSG_DEBUG);
antRunner.setArguments("-debug"); //$NON-NLS-1$
antRunner.addBuildListener("org.mybatis.generator.eclipse.ui.ant.DebugBuildListener"); //$NON-NLS-1$
Expand Down

0 comments on commit 2fa3eb0

Please sign in to comment.