Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 15715 invoked from network); 2 Jun 2004 01:01:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 01:01:56 -0000 Received: (qmail 51373 invoked by uid 500); 2 Jun 2004 01:02:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51331 invoked by uid 500); 2 Jun 2004 01:02:05 -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 51305 invoked by uid 99); 2 Jun 2004 01:02:05 -0000 Received: from [143.43.222.219] (HELO mail.wiu.edu) (143.43.222.219) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 01 Jun 2004 18:02:05 -0700 Received: from scanner0.wiu.edu (scanner0 [143.43.222.140]) by mail.wiu.edu (8.9.3/8.9.3) with SMTP id UAA09842 for ; Tue, 1 Jun 2004 20:01:31 -0500 (CDT) Received: from srv1.wiu.edu ([143.43.222.31]) by scanner0.wiu.edu (SAVSMTP 3.1.1.32) with SMTP id M2004060120013119982 for ; Tue, 01 Jun 2004 20:01:31 -0500 Received: from localhost (webmail3.wiu.edu [143.43.222.53]) by srv1.wiu.edu (8.12.6/8.12.6) with ESMTP id i5211Ok5024336 for ; Tue, 1 Jun 2004 20:01:25 -0500 (CDT) Received: from ip249-134.wiu.edu (ip249-134.wiu.edu [143.43.249.134]) by webmail.wiu.edu (IMP) with HTTP for ; Tue, 1 Jun 2004 20:01:24 -0500 Message-ID: <1086138084.40bd26e4ba20c@webmail.wiu.edu> Date: Tue, 1 Jun 2004 20:01:24 -0500 From: Yanrong Deng To: user@ant.apache.org Subject: CheckSum Task and Properties? References: <1086137584.37885.ezmlm@ant.apache.org> In-Reply-To: <1086137584.37885.ezmlm@ant.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 143.43.249.134 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mr. Mani G. Iyer helped Ms. Deng when we were using properties with the checksum command to see if a value changed. That is working for us. Thanks! However, I want to do the same thing where the file name is passed to one ant file using the "ant" task. We are experiencing the same dificulty. The file ctM.xml invokes the ErrorMessageIfXChanged task of ctdemo.xml However, the file name is passed as the property "f". That is not working properly for us. The "x" file has not changed but ant is not displaying "Verification Succeeded." __________________________________________________________ Here is our main ant task (ctM.xml) Here is the ctdemo.xml ant task which ctM invoked: Verification 01 Verification 02 Verification Succeeded Here is the shell file we run ant -debug -buildfile ctM.xml Verify Here is its output (I abbreviated a few of the lines that are not relevant to this problem.) Apache Ant version 1.6.0 compiled on December 18 2003 Buildfile: ctM.xml Adding reference: ant.PropertyHelper Detected Java version: 1.4 in: /usr/java/j2sdk1.4.1_01/jre Detected OS: Linux Adding reference: ant.ComponentHelper Setting ro project property: ant.version -> Apache Ant version 1.6.0 compiled on December 18 2003 Setting ro project property: ant.file -> /home/leffstudent/Project/ctM.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile /home/leffstudent/Project/ctM.xml with URI = file:///home/leffstudent/Project/ctM.xml Setting ro project property: ant.file.null -> /home/leffstudent/Project/ctM.xml Project base dir set to: /home/leffstudent/Project +Target: +Target: all +Target: Verify Build sequence for target `Verify' is [Verify] Complete build sequence is [Verify, all, ] Verify: Adding reference: ant.ComponentHelper *** setting internal property variables here *** Project base dir set to: /home/leffstudent/Project Setting ro project property: f -> x [ant] calling target ErrorMessageIfXChanged in build file /home/leffstudent/Project/ctdemo.xml Setting ro project property: ant.file -> /home/leffstudent/Project/ctdemo.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile /home/leffstudent/Project/ctdemo.xml with URI = file:///home/leffstudent/Project/ctdemo.xml Setting ro project property: ant.file.null - > /home/leffstudent/Project/ctdemo.xml Project base dir set to: /home/leffstudent/Project +Target: +Target: GenerateCheckSum +Target: SeeIfXChanged +Target: ErrorMessageIfXChanged [ant] Entering /home/leffstudent/Project/ctdemo.xml... Build sequence for target `ErrorMessageIfXChanged' is [SeeIfXChanged, ErrorMessageIfXChanged] Complete build sequence is [SeeIfXChanged, ErrorMessageIfXChanged, GenerateCheckSum, ] SeeIfXChanged: Setting project property: x.changed -> true Condition false; not setting x.verified [echo] Verification 02 ErrorMessageIfXChanged: Skipped because property 'x.verified' not set. [ant] Exiting /home/leffstudent/Project/ctdemo.xml. BUILD SUCCESSFUL Total time: 1 second --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org