Author: dennyxu
Date: 2009-10-12 22:08:30 -0400 (Mon, 12 Oct 2009)
New Revision: 18055
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java
Log:
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java 2009-10-13
00:50:41 UTC (rev 18054)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java 2009-10-13
02:08:30 UTC (rev 18055)
@@ -111,8 +111,13 @@
JBossWSCreationCore.getDefault().logError(
inputResult.toString());
+// there is no way to know if the failure of invoking is because of failure of
+// compiling or because of failure of generating java code, so try to analyze the
+// output string of the command, if the string contains "javac -d", means
the java
+// java code generating is complete.
+
if (resultInput != null
- && resultInput.indexOf("compiling code...") >= 0)
{//$NON-NLS-1$
+ && resultInput.indexOf("javac -d") >= 0) {//$NON-NLS-1$
return StatusUtils
.warningStatus(errorResult.toString());
}
@@ -153,8 +158,8 @@
}
- //SET JAVA_HOME environment variable to the location of java runtime of the project
- //so jbossws jax-ws command line tools will only use the java runtime to launch java
command
+ //SET JAVA_HOME environment variable to the location of java runtime of the project if
the user
+ // doesn't set the env variable
private String[] getEnvironmentVariables(IProject project){
String[] env = null;
String javaHome = System.getenv(JAVA_HOME);
Show replies by date