Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 88562 invoked by uid 500); 26 Oct 2001 03:37:57 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 88417 invoked from network); 26 Oct 2001 03:37:52 -0000 Message-ID: <3BD90740.8240E6D9@home.com> Date: Thu, 25 Oct 2001 23:48:32 -0700 From: Phil Surette X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: Question on wildcard References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N There's normally no need for this kind of scripting chicanery in ant ;) The way to compile java classes in ant is with the javac task. You can give it any number of source and class paths you like. There's no difficulty difficulty compiling all the scripts in a directory together. I don't understand make well enough to grok exactly what you're doing -- '$(wildcard *.java)'? -- but typically in an ant build file you would (minimally) do this: which will compile all java files in the 'src' directory into the 'class' directory, with the classes in whatever ${released.class.path} evaluates to being available to in the compiler's classpath. Note that ${released.class.path} is the notation for referring to an ant property. If you want to use a bona fide environment variable, try Krish_Srinivas@i2.com wrote: > > Hi > > I am in the process of converting one Imakefile to Ant. I have not > been able to convert the following line in that Imakefile to Ant: > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > gentests:: > > @echo "$(JDK_ROOT)/bin/javac -classpath > \"$(RELEASED_CLASS_PATH)\" $(wildcard *.java)" > compile.cmd > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > This statement above basically creates a script that can in turn be > used to compile some java files. The directory in which this Imakefile > is present has some java filesthe number of which changes from time to > time. So this script, basically compiles all the java files in the > given directory together in one statement. The script 'command.cmd' > generated basically has space-seperated java files substituted for > $(wildcard *.java). > > I have not been able to figure out how to create the equivalent of > this in Ant. Please let me know how to convert this. > > Thanks > > K.Srinivas > > P.S: I attempted the following equivalent but it gives a > colon-seperated list of java files > > > > > > > > > > > > >