Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 31603 invoked from network); 27 Oct 2009 23:01:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 23:01:07 -0000 Received: (qmail 58219 invoked by uid 500); 27 Oct 2009 22:33:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 58161 invoked by uid 500); 27 Oct 2009 22:33:05 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 58150 invoked by uid 99); 27 Oct 2009 22:33:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 22:33:05 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.228.42.15] (HELO pop1.greatbasin.net) (207.228.42.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 22:33:03 +0000 Received: from [172.16.1.137] (rno-dsl0b-131.gbis.net [216.82.145.131]) by pop1.greatbasin.net (8.13.8/8.13.8) with ESMTP id n9RMWe4N013970 for ; Tue, 27 Oct 2009 15:32:40 -0700 Subject: Re: Java source files not part of any package Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: multipart/alternative; boundary=Apple-Mail-1--797313959 From: Dianne Yumul X-Priority: Normal In-Reply-To: <159727973-1256676076-cardhu_decombobulator_blackberry.rim.net-432073978-@bda024.bisx.produk.on.blackberry> Date: Tue, 27 Oct 2009 15:32:40 -0700 Message-Id: References: <59F1CB67-1AF8-4E94-B1E3-A7DA2DDAE205@wellsgaming.com> <159727973-1256676076-cardhu_decombobulator_blackberry.rim.net-432073978-@bda024.bisx.produk.on.blackberry> To: "Ant Users List" X-Mailer: Apple Mail (2.1076) --Apple-Mail-1--797313959 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Thanks for the suggestion Chris. I tried using the includes parameter =20= and it works. Here's what it looks like: Here's the directory structure: /Common/AuthWindow.java /Common/DateFormatField.java /Common/Capacity.java /Common/CapacityPrinter.java /Edit Capacities/src/Edit_Capacities.java I was hoping for another (better?) way to do this like it says in the =20= FAQ. Thanks again. On Oct 27, 2009, at 1:41 PM, chris.green100@googlemail.com wrote: > Look at the include / exclude parameter options > > Chris > Sent using BlackBerry=AE from Orange > > -----Original Message----- > From: Dianne Yumul > Date: Tue, 27 Oct 2009 13:31:24 > To: > Subject: Java source files not part of any package > > Hello Everyone, > > I'm learning to use Ant 1.7.0 as part of Xcode 3.1.2 on Mac OS X > 10.6. We have a separate directory called Common/ where we keep > common java source files. These files need to get included, not all at > the same time though, when compiling our Java applications. What > would be the best way to do this? > > If I add Common/ to srcdir, it compiles everything inside when I only > need a one or two. The FAQ mentions that "If you have Java source > files that aren't declared to be part of any package, you can still > use the task to compile these files correctly - just set the > srcdir and destdir attributes to the actual directory the source files > live in and the directory the class files should go into, > respectively." But how to do this exactly? Do I need two separate > javac tasks like the following? > > classpathref=3D"lib.path" debug=3D"on"/> > > > Thank you. > > Dianne > > --Apple-Mail-1--797313959--