Improve logging
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 29 Jun 2008 13:23:07 +0000 (13:23 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 29 Jun 2008 13:23:07 +0000 (13:23 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@1331 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

eclipse/plugins/org.argeo.slc.ui.launch/src/main/java/org/argeo/slc/ui/launch/script/SlcScriptLaunchDelegate.java

index dfd956177dfce70cc8ecae8e9017be16733b6b4f..44c7d7d41f269972dc58de9d4ddf74928ccfd180 100644 (file)
@@ -22,6 +22,7 @@ import org.eclipse.core.runtime.Path;
 import org.eclipse.core.runtime.Status;\r
 import org.eclipse.core.variables.IStringVariableManager;\r
 import org.eclipse.core.variables.VariablesPlugin;\r
+import org.eclipse.debug.core.DebugPlugin;\r
 import org.eclipse.debug.core.ILaunch;\r
 import org.eclipse.debug.core.ILaunchConfiguration;\r
 import org.eclipse.debug.core.ILaunchManager;\r
@@ -55,10 +56,7 @@ public class SlcScriptLaunchDelegate extends
                IStringVariableManager manager = VariablesPlugin.getDefault()\r
                                .getStringVariableManager();\r
                scriptLocation = manager.performStringSubstitution(scriptLocation);\r
-               System.out.println("Script location " + scriptLocation);\r
-\r
                IPath path = new Path(scriptLocation);\r
-               System.out.println("Script path " + path);\r
                IFile[] files = ResourcesPlugin.getWorkspace().getRoot()\r
                                .findFilesForLocation(path);\r
 \r
@@ -66,7 +64,8 @@ public class SlcScriptLaunchDelegate extends
                        abort("Coulkd not find related file", null, 1);\r
 \r
                IFile file = (IFile) files[0];\r
-               System.out.println("Launching " + file.getLocation().toFile());\r
+               DebugPlugin\r
+                               .logMessage("Launching " + file.getLocation().toFile(), null);\r
 \r
                boolean pre093 = configuration.getAttribute(SlcScriptUtils.ATTR_PRE093,\r
                                false);\r