From 2fa3eb08323712576a3b301b6e0a649a39735768 Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Fri, 12 Aug 2016 17:28:34 -0400 Subject: [PATCH] Small update to launcher docs and code --- .../html-src/eclipseui/usingTheLauncher.html | 4 ++++ .../ui/launcher/GeneratorLaunchConfigurationDelegate.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/eclipse/org.mybatis.generator.eclipse.doc/html-src/eclipseui/usingTheLauncher.html b/eclipse/org.mybatis.generator.eclipse.doc/html-src/eclipseui/usingTheLauncher.html index 547f0b317d..fdf6581317 100644 --- a/eclipse/org.mybatis.generator.eclipse.doc/html-src/eclipseui/usingTheLauncher.html +++ b/eclipse/org.mybatis.generator.eclipse.doc/html-src/eclipseui/usingTheLauncher.html @@ -52,6 +52,10 @@

What's Different in a Debug Launch?

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.

+

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.

How Passwords are Stored

If you specify a password for connecting to a database with the Ant script, you diff --git a/eclipse/org.mybatis.generator.eclipse.ui/src/org/mybatis/generator/eclipse/ui/launcher/GeneratorLaunchConfigurationDelegate.java b/eclipse/org.mybatis.generator.eclipse.ui/src/org/mybatis/generator/eclipse/ui/launcher/GeneratorLaunchConfigurationDelegate.java index 76328b8129..04e5b1d41d 100644 --- a/eclipse/org.mybatis.generator.eclipse.ui/src/org/mybatis/generator/eclipse/ui/launcher/GeneratorLaunchConfigurationDelegate.java +++ b/eclipse/org.mybatis.generator.eclipse.ui/src/org/mybatis/generator/eclipse/ui/launcher/GeneratorLaunchConfigurationDelegate.java @@ -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; @@ -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$