Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 5290 invoked from network); 14 Feb 2002 09:20:50 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Feb 2002 09:20:50 -0000 Received: (qmail 19213 invoked by uid 97); 14 Feb 2002 09:20:52 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 19197 invoked by uid 97); 14 Feb 2002 09:20:52 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 19186 invoked from network); 14 Feb 2002 09:20:51 -0000 Sender: mjm@enteract.com Message-ID: <3C6B80F4.5F743C95@rcnchicago.com> Date: Thu, 14 Feb 2002 03:18:44 -0600 From: Michael J McGonagle X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-20mdk i586) X-Accept-Language: en MIME-Version: 1.0 To: Ant Users List Subject: Re: Using the 'Uptodate' task References: <3C6B7B5E.357E464E@rcnchicago.com> Content-Type: multipart/mixed; boundary="------------30BF77354CEB0E3FF62727F0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------30BF77354CEB0E3FF62727F0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Michael J McGonagle wrote: > > Hello all, > > I am working with trying get target execution based on the files > timestamp. According to what I read about 'uptodate', this is what I > should need. I moved all of the properties and the 'uptodate' task into an 'init' target, and that part seems to work now, I get the proper results from running the file twice. The first time it tells me that the "TargetFile" is not there to it does not set the property. The second time it tells me that the file IS there so it sets the attribute to 'true'. Ok, now the rub, I put an 'unless' clause in my target that created the file I am testing for, but it still executes both times. Am I reading something wrong? Should I be using an 'if' instead? I attached my updated file again, Thanks, Mike --------------30BF77354CEB0E3FF62727F0 Content-Type: text/plain; charset=us-ascii; name="build.xml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="build.xml" --------------30BF77354CEB0E3FF62727F0 Content-Type: text/plain; charset=us-ascii -- To unsubscribe, e-mail: For additional commands, e-mail: --------------30BF77354CEB0E3FF62727F0--