Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 47358 invoked from network); 12 Mar 2003 18:17:54 -0000 Received: from mailhost2.cnf.com (HELO ljcqs053.cnf.com) (63.230.177.24) by daedalus.apache.org with SMTP; 12 Mar 2003 18:17:54 -0000 Received: from cnfqs057.cnf.prod.cnf.com (localhost [127.0.0.1]) by ljcqs053.cnf.com (Postfix) with ESMTP id A57703D5 for ; Wed, 12 Mar 2003 10:17:57 -0800 (PST) Received: by cnfqs057.cnf.prod.cnf.com with Internet Mail Service (5.5.2653.19) id ; Wed, 12 Mar 2003 10:17:57 -0800 Message-ID: <7B73D5F649D0D311B1E30008C7A4D92A1C2E8383@cnfqs029.cnf.prod.cnf.com> From: "Anderson, Rob H - VSCM" To: 'Ant Users List' Subject: RE: What happens to my slashes Date: Wed, 12 Mar 2003 10:17:54 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think you need to backslash escape the backslash. Try a double backslash "\\". vssProject="testing tmp\\current" -Rob A -----Original Message----- From: David Clements [mailto:dclements@merc-int.com] Sent: Wednesday, March 12, 2003 10:12 AM To: 'ant-user@jakarta.apache.org' Subject: What happens to my slashes I am building a simple substring task that breaks a string into two halves. Somehow though if a parameter that I pass in has slashes in them they disappear. I am sure that I am doing something wrong. Here is the code: public void setDelimiter(String delimiter){ System.out.println(" #####delimiter:" + delimiter ); this.delimiter = delimiter; } The delimiter is set in a properties file: vssProject="testing tmp\current" The call in ant is: This prints: [substring] ######delimiter:"testing tmpcurrent" No slashes? Any ideas? Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org