Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 28487 invoked by uid 500); 23 May 2001 12:33:24 -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 28478 invoked from network); 23 May 2001 12:33:23 -0000 Message-ID: From: Rajkumar Seth To: "'ant-user@jakarta.apache.org'" Subject: RE: Building files in a package in order Date: Wed, 23 May 2001 13:31:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is the javac from my build file. -----Original Message----- From: Shaikh, Mehmood Subject: RE: Building files in a package in order Include/Exclude worked for me, can you be more specific, e.g. include the portion of your build file. -----Original Message----- From: Rajkumar Seth To: 'ant-user@jakarta.apache.org' Subject: RE: Building files in a package in order Thanks I tried this 1) Separate JAVAC just for the 2 files included 2) Main JAVAC with the 2 files excluded that depends on 1) The problem was I could not get the include / exclude to work: the JAVACs both 1) and 2) did not seem to do anything. The 2 files I want to build before the main build are: com/gerrard/equities/reconciliationserver/utils/JVMFunctions.java and com/gerrard/equities/reconciliationserver/utils/NetworkFunctions.java But when I tried putting these in an include it did nothing but changing the file name from say NetworkFunctions.java to *.java worked but that compiles the other 58 files in the package. I have not been able to find any examples of includes that reference a specific file all the examples seem to use wild cards. Seth. -----Original Message----- From: Nick Christopher [mailto:nwc@visionics.com] Sent: 2001 May 21 16:31 To: ant-user@jakarta.apache.org Subject: Re: Building files in a package in order Use two separate javac tasks in sequence using the includes and excludes attributes to first select only the two files and then exclude the two files. Read the docs on: javac, includes, excludes. Rajkumar Seth wrote: > I have a package with 60 .java files in it. > > I want to compile all these file for every production build. > > This works but JAVAC (1.2.2 release 007 and 1.3) complains that 2 classes in > the file are missing. > If I compile these 2 classes first using JAVAC then everything is fine. > > My solution was to get ant to build these 2 .java files (and not the other > 58 in the directory) > How can I get ant to build just these 2 files before building the rest? ************************************************************************ The contents of this message and any attachments are confidential and are intended solely for the attention and use of the addressee only. Information contained in this message may be subject to legal, professional or other privilege or may otherwise be protected by other legal rules. This message should not be copied or forwarded to any other person without the express permission of the sender. If you are not the intended recipient you are not authorised to disclose, copy, distribute or retain this message or any part of it. If you have received this message in error, please notify the sender by telephone (+44-20-7002-4000) and destroy the original message. We reserve the right to monitor all e-mail messages passing through our network. ************************************************************************