Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <5.0.0.25.0.20001121194744.02cc3e40@pop.bresnanlink.net> X-Sender: cabbey AT pop DOT bresnanlink DOT net X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Tue, 21 Nov 2000 19:49:12 -0600 To: cygwin AT sourceware DOT cygnus DOT com From: Chris Abbey Subject: RE: How to run javac In-Reply-To: <17B78BDF120BD411B70100500422FC6309E163@IIS000> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 AT sourceware DOT cygnus DOT com