Hi,
Help would be much appreciated.
>From command line I can do something like as follows
java -classpath myjar.jar myClass.Main -arg1 -arg2 blah < file.txt
where Main is expecting a spec. file on standard input.
Have tried
<java classname="myClass.Main" fork="yes" dir="/path/to/files">
<arg value="-arg1" />
<arg value="-arg2" />
<arg value="blah" />
<arg value="<" />
<arg value="file.txt" />
<classpath>
<pathelement location="myjar.jar" />
</classpath>
</java>
and also instead with single <arg line :
<arg line="-arg1 -arg2 blah < file.txt" />
However, in both cases I get an error saying
[java] Unrecognized option "<"
Could anyone tell me how to pass info about a file on standard input.
Many thanks in advance
*******************************************************************************
Important. This E-mail is intended for the above named person and may be
confidential and/or legally privileged. If this has come to you in error you
must take no action based on it, nor must you copy or show it to anyone; please
inform the sender immediately.
*******************************************************************************