Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 70992 invoked from network); 24 Jun 2000 15:17:54 -0000 Received: from fep9.mail.ozemail.net (203.2.192.103) by locus.apache.org with SMTP; 24 Jun 2000 15:17:54 -0000 Received: from cognetnt (1Cust148.tnt1.syd2.da.uu.net [63.12.0.148]) by fep9.mail.ozemail.net (8.9.0/8.6.12) with SMTP id BAA29087 for ; Sun, 25 Jun 2000 01:17:49 +1000 (EST) From: "Conor MacNeill" To: Subject: RE: dollar signs in replace commands Date: Sun, 25 Jun 2000 01:16:36 +1000 Message-ID: <000a01bfddef$304bf5f0$80dc1fcb@cognet.com.au> 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 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: <41256907.005D7623.00@mta.amadeus.net> Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N OK, I've fixed this. One error was caused by a $ at the end of a property value. The other is because ProjectHelper.replaceProperties is called twice on the value being set - once in ProjectHelper.configure and again in Property.init. I removed the call in Property.init. Conor -- Conor MacNeill Home: conor@m64.com Work: conor@cortexebusiness.com.au Web: www.cortexebusiness.com.au > -----Original Message----- > From: emountain@amadeus.net [mailto:emountain@amadeus.net] > Sent: Saturday, 24 June 2000 3:01 > To: ant-dev@jakarta.apache.org > Subject: Re: dollar signs in replace commands > > > Except that if you do: > > > > > > you won't get what you expect... and if you remove the "a" from > "$$a" you will > even get: > > BUILD CONFIG ERROR > > java.lang.StringIndexOutOfBoundsException: String index out of range: 1 > at org.apache.tools.ant.taskdefs.Property.init(Property.java:126) > at > org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper. > java:332) > at > org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(Proj > ectHelper.java:311) > > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) > at com.sun.xml.parser.Parser.content(Parser.java:1499) > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) > at com.sun.xml.parser.Parser.content(Parser.java:1499) > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) > at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) > at com.sun.xml.parser.Parser.parse(Parser.java:284) > at > org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:104) > at > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:86) > at org.apache.tools.ant.Main.runBuild(Main.java:228) > at org.apache.tools.ant.Main.main(Main.java:191) > > (All this with a copy of ANT taken from CVS a week or so ago....) > > Cheers, > :E > > > > > > > From: Stefan Bodewig on 23/06/2000 15:10 GMT > > Please respond to ant-dev@jakarta.apache.org > > > > > > > > > |---------> > | | > |---------> > > >----------------------------------------------------------------- > ----------> > | > | > > >----------------------------------------------------------------- > ----------> > >-------------------------------------------| > | | > >-------------------------------------------| > |---------> > |To: | > |---------> > > >----------------------------------------------------------------- > ----------> > |ant-dev@jakarta.apache.org > | > > >----------------------------------------------------------------- > ----------> > >-------------------------------------------| > | | > | | > >-------------------------------------------| > |---------> > |cc: | > |---------> > > >----------------------------------------------------------------- > ----------> > | (bcc: Eric Mountain/NCE/AMADEUS) > | > > >----------------------------------------------------------------- > ----------> > >-------------------------------------------| > | | > | | > >-------------------------------------------| > |---------> > | | > |---------> > > >----------------------------------------------------------------- > ----------> > | > | > > >----------------------------------------------------------------- > ----------> > >-------------------------------------------| > | | > >-------------------------------------------| > |---------> > |Subject: | > |---------> > > >----------------------------------------------------------------- > ----------> > |Re: dollar signs in replace commands > | > > >----------------------------------------------------------------- > ----------> > >-------------------------------------------| > | | > >-------------------------------------------| > > > > > > > > >>>>> "SB" == Stuart Barlow writes: > > SB> Is there any way that I can get ant to recognise as literal > SB> strings? > > I'm not sure I've understood your problem. If you need a literal $ > inside your build.xml write it as $$. > > Does this help? > > Stefan > > > >