Revision [1841]

Last edited on 2012-05-31 18:26:17 by DavidLee
Additions:
shell.getEnv().setStdout( output_stream );
shell.getEnv().setStderr( error_stream);
Deletions:
shell.getEnv().setStdout( new StreamOutputPort( output_stream ,false) );
shell.getEnv().setStderr( new StreamOutputPort( error_stream,false) );


Revision [1081]

Edited on 2009-12-03 10:17:45 by DavidLee
Additions:
If you want to avoid having xmlsh inherit the system streams then you need to create an instance of the Shell specifying false for the constructor. You can specify your own ports for in/out/error as well.
Shell shell = new Shell(false);
shell.getEnv().setStdout( new StreamOutputPort( output_stream ,false) );
shell.getEnv().setStderr( new StreamOutputPort( error_stream,false) );
shell.getEnv().setStdin( input_stream );
int ret = cmd.run(shell , "xmlsh" , vargs);


Revision [841]

Edited on 2009-10-29 18:06:16 by DavidLee
Additions:
The easiest way to embed xmlsh is to create an instance of xmlsh command and execute it.
xmlsh will inherit System.in, System.out and System.err from the current JVM which becomes stdin, stdout and stderr.
Deletions:
The easiest way to integrate xmlsh is to create an instance of xmlsh command and execute it.


Revision [839]

Edited on 2009-10-29 18:04:16 by DavidLee
Additions:
class myclass {
}


Revision [838]

The oldest known version of this page was created on 2009-10-29 17:58:03 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki