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 61006 invoked from network); 7 Feb 2001 00:15:13 -0000 Received: from cortex-gw.magna.com.au (HELO smtp.cortexebusiness.com.au) (203.174.140.214) by h31.sny.collab.net with SMTP; 7 Feb 2001 00:15:13 -0000 Received: (from daemon@localhost) by smtp.cortexebusiness.com.au (8.10.0/8.10.0) id f170FFK14253 for ; Wed, 7 Feb 2001 11:15:15 +1100 (EST) Received: from UNKNOWN(192.168.1.32), claiming to be "snotty" via SMTP by ripley, id smtpdAAAfmaWVB; Wed Feb 7 11:15:10 2001 From: "Conor MacNeill" To: Subject: RE: compiles files with no changes Date: Wed, 7 Feb 2001 11:15:39 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <20010206234213.4941.qmail@web3604.mail.yahoo.com> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Run ant with -debug and you should see why javac is compiling everything again. It has to do with this attribute srcdir="${cms.java.dir}/com/comp/cms/cmscontroller" This should point to the root of your package hierarchy. srcdir="${cms.java.dir}" Use include elements to select particular packages. Check the FAQ http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/acti on/SetAll/project_id/2/faq_id/16/topic_id/72/question_id/740 -- Conor MacNeill conor@cortexebusiness.com.au Cortex eBusiness http://www.cortexebusiness.com.au > -----Original Message----- > From: One Way [mailto:oneway_111@yahoo.com] > Sent: Wednesday, 7 February 2001 10:42 > To: ant-user@jakarta.apache.org > Subject: Re: compiles files with no changes > > > 1) I replaced all backslashes with forward slash prior to posting this > message > 2) W2K command prompt = %SystemRoot%/system32/cmd.exe > 3) Yes, for all cmscontroller*.java files the very first line is a > 'package ....' statement > 4) the build file and output are as follows > > ------------------------------------------------------------------ > ------ version="1.0"?> > > > > > > > > > > > > > > value="${wls.home.dir}/config/mydomain/applications"/> > > > > > > > > > > > > > > > > > value="${build.ejb.dir}/META-INF" /> > > value="${build.web.dir}/WEB-INF"/> > value="${build.home.dir}/javadoc"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > classpath="${cms.classpath.javac}"/> > classpath="${cms.classpath.javac}"/> > > classname="junit.framework.TestCase" /> > classname="com.oroinc.net.ftp.FTPClient" /> > > > > > > > > > > > > > > > > destdir="${build.ejb.dir}" > debug="on" > deprecation="off" > optimize="on" > > > > > > > > destdir="${build.ejb.dir}" > debug="on" > deprecation="off" > optimize="on" > > > > > > > > message="test1 and test2 done" > > > > ------------------------------------------------------------------ > ------D:/Dev/CMS>ant > -verbose -buildfile cms_build_new.xml test3 > security properties not found. using defaults. > Ant version 1.2 compiled on October 24 2000 > > Buildfile: cms_build_new.xml > Detected Java Version: 1.3 > Detected OS: Windows 2000 > Project base dir set to: D:/Dev/CMS > [property] Loading C:/Documents and Settings/USER/.cms.properties > [property] Unable to find C:/Documents and > Settings/USER/.cms.properties > Build sequence for target `test3' is [prepare, > check_for_optional_packages, test1, test2, test3] > Complete build sequence is [prepare, check_for_optional_packages, > test1, test2, test3] > can't open D:/Apps/jdk1.3/lib/tzmappings. > [available] java.lang.ClassNotFoundException: junit.framework.TestCase > [available] java.lang.ClassNotFoundException: > com.oroinc.net.ftp.FTPClient > [javac] Compiling 3 source files to D:/dev/cms/build/ejb > [javac] Using modern compiler > [javac] Compilation args: -d D:/dev/cms/build/ejb -classpath > D:/dev/cms/build/ejb;D:/Apps/jdk1.3/lib/tools.jar;D:/Ap > ps/j2sdkee1.21/lib/j2ee.jar;D:/Apps/wls60/lib/weblogic_sp.jar;D:/A > pps/wls60/lib/weblogic.jar;D:/Apps/ant/lib/ant.jar;D:/ > Apps/ant/lib/jaxp.jar;D:/Apps/ant/lib/parser.jar -sourcepath > D:/dev/cms/java/com/comp/cms/cmscontroller -g -O > [javac] Files to be compiled: > D:/dev/cms/java/com/comp/cms/cmscontroller/CmsController.java > D:/dev/cms/java/com/comp/cms/cmscontroller/CmsControllerEJB.java > D:/dev/cms/java/com/comp/cms/cmscontroller/CmsControllerHome.java > > [javac] Compiling 3 source files to D:/dev/cms/build/ejb > [javac] Using modern compiler > [javac] Compilation args: -d D:/dev/cms/build/ejb -classpath > D:/dev/cms/build/ejb;D:/Apps/jdk1.3/lib/tools.jar;D:/Ap > ps/j2sdkee1.21/lib/j2ee.jar;D:/Apps/wls60/lib/weblogic_sp.jar;D:/A > pps/wls60/lib/weblogic.jar;D:/Apps/ant/lib/ant.jar;D:/ > Apps/ant/lib/jaxp.jar;D:/Apps/ant/lib/parser.jar -sourcepath > D:/dev/cms/java/com/comp/cms/cmscontroller -g -O > [javac] Files to be compiled: > D:/dev/cms/java/com/comp/cms/cmscontroller/CmsController.java > D:/dev/cms/java/com/comp/cms/cmscontroller/CmsControllerEJB.java > D:/dev/cms/java/com/comp/cms/cmscontroller/CmsControllerHome.java > > message="test1 and test2 done" > > BUILD SUCCESSFUL > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great prices. > http://auctions.yahoo.com/ >