eclipse plugin: Done some extra checks for the parameters
This commit is contained in:
parent
9253682e33
commit
65f8ba2b56
2 changed files with 6 additions and 4 deletions
|
@ -194,7 +194,7 @@ public class ExternalToolInvoker
|
|||
String line = ""; //$NON-NLS-1$
|
||||
while((line = readErrorLine()) != null)
|
||||
{
|
||||
if (extraStreams != null)
|
||||
if ( extraStreams != null && extraStreams.length > 0 )
|
||||
{
|
||||
for(OutputStream stream : extraStreams)
|
||||
stream.write((line + "\n").getBytes()); //$NON-NLS-1$
|
||||
|
@ -236,7 +236,7 @@ public class ExternalToolInvoker
|
|||
String line = ""; //$NON-NLS-1$
|
||||
while((line = readOutputLine()) != null)
|
||||
{
|
||||
if (extraStreams != null)
|
||||
if ( extraStreams != null && extraStreams.length > 0 )
|
||||
{
|
||||
for(OutputStream stream : extraStreams)
|
||||
stream.write((line + "\n").getBytes()); //$NON-NLS-1$
|
||||
|
|
|
@ -544,9 +544,11 @@ public class WMLTools
|
|||
Preferences.getString(Constants.P_PYTHON_PATH) , arguments);
|
||||
|
||||
pyscript.runTool();
|
||||
if (stderrMonitoring == true || stderr != null)
|
||||
if ( stderrMonitoring == true ||
|
||||
( stderr != null && stderr.length > 0 ) )
|
||||
pyscript.startErrorMonitor(stderr);
|
||||
if (stdoutMonitoring == true || stdout != null)
|
||||
if ( stdoutMonitoring == true ||
|
||||
( stdout != null && stdout.length > 0 ) )
|
||||
pyscript.startOutputMonitor(stdout);
|
||||
if (stdin != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue