Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 51953 invoked from network); 13 Sep 2002 03:03:18 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Sep 2002 03:03:18 -0000 Received: (qmail 5143 invoked by uid 97); 13 Sep 2002 01:50:11 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 25458 invoked by uid 97); 13 Sep 2002 01:26:36 -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 13188 invoked by uid 98); 13 Sep 2002 01:17:15 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Thu, 12 Sep 2002 18:07:00 -0700 Mime-Version: 1.0 (Apple Message framework v543) Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed Subject: Why does this not created a munged file as requested? From: Scott Ellsworth To: Ant List Content-Transfer-Encoding: 7bit Message-Id: <1B51ED13-C6B5-11D6-B185-0003931D19A4@alodar.com> X-Mailer: Apple Mail (2.543) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am trying to turn an Apple/Next property list into one with a certain tag replaced and eol's turned to unix. These may be several levels deep, so I want to do a regex replace rather than something that tries to parse the properties. I start with a file that looks like this: {\r {\r stuff\r stuff\n stuff\r\n _generate = "";\r\n stuff\r\n }\r {\r _xenerate = "";\r _generate = "true";\n _generate = "false";\r stuff\n stuff\n }\r }\r and I want one that looks like: {\r {\r stuff\r stuff\r stuff\r _generate = "";\r stuff\r _generate = "";\r }\r {\r _generate = "true";\r _generate = "true";\r stuff\r stuff\r }\r }\r (In other words, copy the file and turn all of the _xenerate keys into _generate keys, turn all of the _generate = false key-value pairs into _generate = true key-value pairs, and make the line endings unix.) It seems to me that the following code _should_ do it: but instead, it complains that file:/Users/work/Documents/coding/isis/source/genetrove/persistence/ cluster_genetrove/build-intercalate.xml:29: Element type "filter" must be followed by either attribute specifications, ">" or "/>". at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.ja va:170) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:1 17) at org.apache.tools.ant.Main.runBuild(Main.java:597) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) So, what is the best way to do this? Scott -- To unsubscribe, e-mail: For additional commands, e-mail: