Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 98283 invoked from network); 2 Jul 2008 10:16:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2008 10:16:04 -0000 Received: (qmail 3247 invoked by uid 500); 2 Jul 2008 10:16:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 3221 invoked by uid 500); 2 Jul 2008 10:16:00 -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 20811 invoked by uid 99); 2 Jul 2008 00:30:25 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) In-Reply-To: <62BC2AAA2507BE4A9112E57C7540450D0E6900FB@exrecc01.mnpower.com> To: "Ant Users List" Subject: RE: how to force recompile everything using javac task MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: Guo-ping.Zhang@sybase.com Date: Wed, 2 Jul 2008 08:30:01 +0800 X-MIMETrack: Serialize by Router on gwwest/SYBASE(Release 6.5.5|November 30, 2005) at 07/01/2008 05:29:54 PM, Serialize complete at 07/01/2008 05:29:54 PM Content-Type: multipart/alternative; boundary="=_alternative 0002BC714825747A_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0002BC714825747A_= Content-Type: text/plain; charset="US-ASCII" Hi Raymond, Thanks for your reply. Actually I have two task in my build.xml. First task would compile everything from src dir "Adir" and jar it. Second task will compile a few java file from "Bdir" which could override some of first ones and create another jar again. If I put a delete task before second javac task, I would need to selectively delete some java classes instead of deleting the whole output directory which is a little bit complex :-). It would be nice if there is some other options to do this. I tried using "touch" java source before second . It works but it changes the source code modified time which is not desirable. Regards, "Raymond Berg (ALLETE)" 07/01/2008 07:22 PM Please respond to "Ant Users List" To "Ant Users List" cc Subject RE: how to force recompile everything using javac task I'd have to go with the previous recommendations on this topic and say that wiping *.class files would be the easiest solution here. http://mail-archives.apache.org/mod_mbox/ant-user/200509.mbox/%3C4320007 0.1010403@steria.com%3E However, if there are other restrictions such as class files in the same directory that can't be stripped because it was a packaged class or whatever, well....that's a little worse. But this appears to be the most common solution to this issue. Cheers, Raymond -----Original Message----- From: Guo-ping.Zhang@sybase.com [mailto:Guo-ping.Zhang@sybase.com] Sent: Tuesday, July 01, 2008 2:06 AM To: user@ant.apache.org Subject: how to force recompile everything using javac task Hi, how to force recompile everything using javac task? Javac task always compare modify time with target classes. I want to recompile java source no matter target classes exists and newer. Is there any options to achieve this? Thanks, --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --=_alternative 0002BC714825747A_=--