From 947a78e34ed1a804b52c1093eb7a0389e4182572 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Sun, 29 Jun 2008 13:23:07 +0000 Subject: [PATCH] Improve logging git-svn-id: https://svn.argeo.org/slc/trunk@1331 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../slc/ui/launch/script/SlcScriptLaunchDelegate.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eclipse/plugins/org.argeo.slc.ui.launch/src/main/java/org/argeo/slc/ui/launch/script/SlcScriptLaunchDelegate.java b/eclipse/plugins/org.argeo.slc.ui.launch/src/main/java/org/argeo/slc/ui/launch/script/SlcScriptLaunchDelegate.java index dfd956177..44c7d7d41 100644 --- a/eclipse/plugins/org.argeo.slc.ui.launch/src/main/java/org/argeo/slc/ui/launch/script/SlcScriptLaunchDelegate.java +++ b/eclipse/plugins/org.argeo.slc.ui.launch/src/main/java/org/argeo/slc/ui/launch/script/SlcScriptLaunchDelegate.java @@ -22,6 +22,7 @@ import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Status; import org.eclipse.core.variables.IStringVariableManager; import org.eclipse.core.variables.VariablesPlugin; +import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchManager; @@ -55,10 +56,7 @@ public class SlcScriptLaunchDelegate extends IStringVariableManager manager = VariablesPlugin.getDefault() .getStringVariableManager(); scriptLocation = manager.performStringSubstitution(scriptLocation); - System.out.println("Script location " + scriptLocation); - IPath path = new Path(scriptLocation); - System.out.println("Script path " + path); IFile[] files = ResourcesPlugin.getWorkspace().getRoot() .findFilesForLocation(path); @@ -66,7 +64,8 @@ public class SlcScriptLaunchDelegate extends abort("Coulkd not find related file", null, 1); IFile file = (IFile) files[0]; - System.out.println("Launching " + file.getLocation().toFile()); + DebugPlugin + .logMessage("Launching " + file.getLocation().toFile(), null); boolean pre093 = configuration.getAttribute(SlcScriptUtils.ATTR_PRE093, false); -- 2.39.2