Compiler and spaces

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiler and spaces

Bernhard Hurzeler
Hello there,

We (Army Corps of Engineers) are using Netrexx as scripting language for
our Java applications. That works very well! We us the main method in the
COM.ibm.netrexx.process.NetrexxC class by invoking it form Java to compile
the scripts.

        Method main(arg=Rexx) constant returns int

The Rexx string passed to the method can be any combination of program
names and options.

Example:

/* compile test.nrx */
int status = COM.ibm.netrexx.process.NetRexxC.main(new
Rexx("d:\examples\test -keep -verbose4 -utf8"));

BUT!!! The compiler complains if we use a file where the path has white
spaces!

int status = COM.ibm.netrexx.process.NetRexxC.main(new Rexx("d:\my
examples\test -keep -verbose4 -utf8"));


Now we wonder if that can be fixed somehow!?! We would greatly appreciate
your comments and suggestions.

Regards,

Bernie


Dr. Bernhard Eric Hurzeler
Dept. of Civil And Environmental Engineering
University of California
Davis CA 95616
USA

Tel.: office: (707) 864 2950 home: (916) 757 6353
Email: [hidden email]
Home Page: http://chempc72.ucdavis.edu/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Compiler and spaces

Xiangyun Kong
A workaround for this is to add string concatenation to it, i.e.,

Use

int status = COM.ibm.netrexx.process.NetRexxC.main(new Rexx("d:\my"+
"examples\test -keep -verbose4 -utf8"));

Note that the white space in Java is a separator character, so there is
no way to make Javac accept it unless Javac accepts non-Java syntax.

Hope it helps.

Michael
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>