Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 60745 invoked by uid 500); 10 Jul 2001 13:33:10 -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 60456 invoked from network); 10 Jul 2001 13:31:55 -0000 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: ant-user@jakarta.apache.org Subject: Re: in a task References: <3B4AEB5D.4080308@ep-ag.com> From: Stefan Bodewig Date: 10 Jul 2001 15:31:53 +0200 In-Reply-To: Steffen Euch's message of "Tue, 10 Jul 2001 13:47:41 +0200" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Tue, 10 Jul 2001, Steffen Euch wrote: > I want to use a in a task. > > And the DTD says that it is possible, too, but I can't find the > right syntax. you are close 8-) > destdir="${PRJ_CLASSES}" > classpath="${myenv.CLASSPATH}" > debug="on" > deprecation="off" > failonerror="on" > > > > > Just add the src or srcdir there. If it is only one src directory, use javac's srcdir attribute probably srcdir="${PRJ_SRC}" - alternatively, you can use a nested element, but as this is a path and not a fileset, you cannot nest the patternset into it ( is somewhat like the union of filesets with directories taken from the elements). BTW, you shouldn't need the classpath construct above as Ant adds your CLASSPATH to the javac command automatically. Stefan