Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 13960 invoked from network); 1 Sep 2003 12:38:35 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Sep 2003 12:38:35 -0000 Received: (qmail 42453 invoked by uid 500); 1 Sep 2003 12:38:12 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42407 invoked by uid 500); 1 Sep 2003 12:38:12 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 42376 invoked from network); 1 Sep 2003 12:38:11 -0000 Received: from unknown (HELO trinity.anyware-tech.com) (217.112.237.100) by daedalus.apache.org with SMTP; 1 Sep 2003 12:38:11 -0000 Received: (qmail 615 invoked from network); 1 Sep 2003 12:38:05 -0000 Received: from unknown (HELO anyware-tech.com) (10.1.0.254) by trinity.anyware-tech.com with SMTP; 1 Sep 2003 12:38:05 -0000 Message-ID: <3F533D56.6000006@anyware-tech.com> Date: Mon, 01 Sep 2003 14:36:38 +0200 From: Simon Bretin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: how to exclude a file from directory References: <879A5AD5DD0ED511891F0003473A9B5608FF6EC3@Z011004> In-Reply-To: <879A5AD5DD0ED511891F0003473A9B5608FF6EC3@Z011004> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a standard javac thing ! Even though you specify some files to compile, javac will automatically compile the files that needs to be compiled (mainly because they are being used in some compiled class) ... If one class being compiled relies on another one not present in the classpath, or not present in the src directories, the build will fail ! So here this is the problem you must be encoutering ... Although your file is not being compiled explicitely, it is compiled by javac because it needs it ! Simon. Jan.Materne@rzf.fin-nrw.de wrote: >I made a simple test: >- works for me >- if a class reference the excluded class > a) that class will be compiled > b) that class will not be listed as compiled by > > >build.xml >--------- > > > > > > > > > >CompileThis.java >---------------- >public class CompileThis { > //DontCompileThis d; >} > > >CompileThisToo.java >------------------- >public class CompileThisToo {} > > >DontCompileThis.java >-------------------- >public class DontCompileThis {} > > > >Jan > > > > > >>-----Original Message----- >>From: Laxma.Nandikonda@nokia.com [mailto:Laxma.Nandikonda@nokia.com] >>Sent: Monday, September 01, 2003 1:54 PM >>To: patrick.viswanathan@wipro.com >>Cc: user@ant.apache.org >>Subject: RE: how to exclude a file from directory >> >> >>Hi Patrick, >> >> I already tried that.It doesn't work. >> >>br, >> >>-----Original Message----- >>From: ext Patrick Viswanathan [mailto:patrick.viswanathan@wipro.com] >>Sent: 01 September, 2003 14:47 >>To: Nandikonda Laxma (NET-OSS/Espoo) >>Subject: RE: how to exclude a file from directory >> >> >> >>The tag you have used doesn't form the task of any >>operation.It will not get executed. >>Put under javac task. >>Regards, >>Patrick >> >>-----Original Message----- >>From: Laxma.Nandikonda@nokia.com [mailto:Laxma.Nandikonda@nokia.com] >>Sent: Monday, September 01, 2003 4:54 PM >>To: user@ant.apache.org >>Subject: RE: how to exclude a file from directory >> >> >>Hi friends, >> >> I tried all the options replied to me and still can't >>exclude AntennaModelTool.java file from compilation. >> Please, can some one tell me what's wrong with this file.I >>just want to exclude this file from compilation. >> >>-------------------------------------------------------------- >>---------- >> >> >> >> Build file for Client. >> * Compiles >> * Jars >> * Distributes >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >value="../optimizer_PlatformUtilities/" /> >> >> >> >"${src1}/nokia/configurator/optimizer/oclient/antpml" > >> >> >> >> >> >> >> >> >location="${platform_root}/src/com/nokia/configurator/optimize >>r/platform/pfiif;"/> >> >> >> >location="../optimizer_AdjacencyManagement/src"/> >> >location="../optimizer_CalculationFramework/src "/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > deprecation="${compile.deprecation}" >> optimize="${compile.optimize}" >> >>srcdir="${src1}:${src2}:${src3}:${src4}:${src5}:${src6}:${src7}" >> destdir="${build}" >> classpath="${compile_classpath}" >> fork="true" >> memoryMaximumSize="256m"/> >> >> >> >> >>-------------------------------------------------------------- >>------------------------- >> >>Thanks.. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >>**************************Disclaimer************************** >>********** >> >>Information contained in this E-MAIL being proprietary to >>Wipro Limited is >>'privileged' and 'confidential' and intended for use only by >>the individual >> or entity to which it is addressed. You are notified that >>any use, copying >>or dissemination of the information contained in the E-MAIL >>in any manner >>whatsoever is strictly prohibited. >> >>************************************************************** >>************* >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org