Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 52396 invoked from network); 26 Feb 2001 11:32:28 -0000 Received: from mailhost.marrakech.com (HELO bazaar.marrakech.com) (212.120.152.2) by h31.sny.collab.net with SMTP; 26 Feb 2001 11:32:28 -0000 Received: from harem.marrakech.com (unverified) by bazaar.marrakech.com (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Mon, 26 Feb 2001 11:31:24 +0000 Received: by harem.marrakech.com with Internet Mail Service (5.5.2653.19) id ; Mon, 26 Feb 2001 11:27:00 -0000 Message-ID: <83E56B0F56BED411A91900D0B78ED22D1F660D@bstreet.marrakech.com> From: "M.A.Dunphy" To: "'ant-user@jakarta.apache.org'" Subject: RE: Class dependancies? Date: Mon, 26 Feb 2001 11:26:56 -0000 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 Hi Conor Reading the docs it appears that I have to use either the classic or jikes compiler for this option. I have JDK1.3 and I've set the property build.compiler=classic and set true the depend attribute in the javac task: but I get the following: [javac] Compiling C:\Example\srd\src\com\us\framework\servlets\BaseHttpServlet.java because it is out of date with respect to C:\Example\build\classes\src\com\us\framework\servlets\BaseHttpServlet.class [javac] Compiling 1 source file to C:\Example\build\classes\src [javac] Using classic compiler [javac] depend attribute is not supported by the modern compiler [javac] Compilation args: -d C:\Example\build\classes\src -classpath C:\Example\build\classes\src;C:\Example;C:\ant1.2\lib\ant.jar;C:\jdk1.3\jre\ lib\rt.jar;C:\jdk1.3\jre\lib\i18n.jar;C:\jdk1.3\jre\lib\jaws.jar;C:\jdk1.3\l ib\tools.jar;C:\junit3.2\junit.jar;C:\weblogic\lib\weblogicaux.jar;C:\weblog ic\classes;C:\jaxp1.0.1\jaxp.jar;C:\jaxp1.0.1\parser.jar;C:\ant1.2\lib\jaxp. jar;C:\ant1.2\lib\optional.jar;C:\ant1.2\lib\parser.jar -sourcepath C:\Example\srd\src [javac] File to be compiled: C:\Example\srd\src\com\us\framework\servlets\BaseHttpServlet.java What does setting build.compiler=classic do? does it mean the oldjavac is used instead of javac? Thanks Mick -----Original Message----- From: Conor MacNeill [mailto:conor@cortexebusiness.com.au] Sent: 23 February 2001 13:32 To: ant-user@jakarta.apache.org Subject: Re: Class dependancies? Checkout the task which is part of 1.3. I think you will find that it does largely what you want. Conor ----- Original Message ----- From: "M.A.Dunphy" To: "Ant-User (E-mail)" Sent: Friday, February 23, 2001 9:57 PM Subject: Class dependancies? > Hi all, > > I'm sure this question was asked before and I hope there is an answer: > > > CLASSB is derived from CLASSA. If CLASSA is modified, ant recompiles it but > CLASSB is not recompiled? Is there any solution to this. We changed CLASSA > such that it would generate compile errors, but ant ran fine and I > understand why. > > Is the only solution to provide the inter-class dependancies? Has anybody > done this, i.e. written a utilities that scans the src and produces an xml > that explicitly defines this relationship between these 2 classes? > > Thanks > > Mick >