This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to run javac


At 19:36 11/21/00 +0100, Bernard Dautrevaux wrote:
>Then what about:
>
>#! /bin/sh
>/full/path/to/javac -d . `for i in $*; cygpath -w $i; done`
>
>put in a file named "javac" placed in your path (e.g. in /usr/local/bin).
>
>If the real javac is not in your PATH, typing
>
>javac *.java
>
>will run the script above and should invoke the real javac with windows
>pathnames.
>
>I hope it runs, I don't have time to test it, so don't flame at me; you
>should at least get the idea.

great idea, here's a functional version:

#! /bin/sh
javac.exe -d . `for i in $*; do cygpath -w $i; done`

by using javac.exe here, you only have to make sure this javac is first
in the path.



now the forces of openness
     have a powerful and
     unexpected new ally
    http://ibm.com/linux/


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]