This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: How to run javac
- To: cygwin at sourceware dot cygnus dot com
- Subject: RE: How to run javac
- From: Chris Abbey <cabbey at bresnanlink dot net>
- Date: Tue, 21 Nov 2000 19:49:12 -0600
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