Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 20328 invoked from network); 20 Apr 2005 18:09:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2005 18:09:38 -0000 Received: (qmail 62632 invoked by uid 500); 20 Apr 2005 18:09:11 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 62577 invoked by uid 500); 20 Apr 2005 18:09:10 -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 62529 invoked by uid 99); 20 Apr 2005 18:09:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ext-ch1gw-5.online-age.net (HELO ext-ch1gw-5.online-age.net) (64.37.194.13) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 20 Apr 2005 11:09:10 -0700 Received: from int-ch1gw-4.online-age.net (int-ch1gw-4 [3.159.232.68]) by ext-ch1gw-5.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id j3KI8w1G005564 for ; Wed, 20 Apr 2005 14:08:58 -0400 (EDT) Received: from casjcx01nege.ne.ge.com (localhost [127.0.0.1]) by int-ch1gw-4.online-age.net (8.12.9/8.12.3/990426-RLH) with ESMTP id j3KI8uYn006967 for ; Wed, 20 Apr 2005 14:08:57 -0400 (EDT) Received: by casjcx01nege.ne.ge.com with Internet Mail Service (5.5.2657.72) id <239A5LXN>; Wed, 20 Apr 2005 11:06:03 -0700 Message-ID: From: "Conelly, Luis (GE Energy, Non GE, GENE)" To: Ant Users List Subject: RE: AINASL! Help with Parsing Files with Ant Date: Wed, 20 Apr 2005 11:18:57 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > *The [Version] gets written as intended but annoyingly preceded by # Conelly, Luis (GE Energy, Non GE, GENE) Of course. A comment in a properties file is always preceded by a # character > *Ant/Buildnumber Task automatically inserts #Tue Apr 19 15:42:20 PDT 2005, which is not my intention. Conelly, Luis (GE Energy, Non GE, GENE) However, it is the way the task works > *The Date, even if I try to format it through Buildnumber, comes out all weird with escape chars. Conelly, Luis (GE Energy, Non GE, GENE) The properties are escaped when dealing with non standar characters (colon, in this case); see [http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html#store(java. io.OutputStream,%20java.lang.String)] for more information > *Version's untouched HOWEVER NOTHING comes out in their original > juxtaposition as the original target file in the order > they're supposed to. Conelly, Luis (GE Energy, Non GE, GENE) When using this task there's no guarantee to have the output values in the same position they input. [http://ant.apache.org/manual/CoreTasks/buildnumber.html] > I have changed the order of the nothing, nada. > I've written to the original contributors of the Buildnumber task > utility...guess what? I rcv'd mail daemons. Not surprised. Conelly, Luis (GE Energy, Non GE, GENE) Not a wise move, if you'd ask me. Contributors / developers likes to discuss the issues in open forums than closed communications. > I'm the build/release guy and new to Ant and was trying to > automate all my > build processes with Ant. However, looks like I have to resort to GNU > Utilities like Sed/Awk to accomplish parsing the > [version.txt] file. Any > ideas or help would be appreciated. Conelly, Luis (GE Energy, Non GE, GENE) Deal with it. If you are using a Java program to load these properties, you will have no issues at all when you load / use the stored values. Otherwise, I'd suggest to take another ways instead of allowing Ant's task to do the job for you. -Luis > Thank you, > > S. Raze > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org