Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 99443 invoked by uid 500); 14 Jul 2003 12:11:34 -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 99400 invoked from network); 14 Jul 2003 12:11:34 -0000 Received: from bay1-f148.bay1.hotmail.com (HELO hotmail.com) (65.54.245.148) by daedalus.apache.org with SMTP; 14 Jul 2003 12:11:34 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 14 Jul 2003 05:11:35 -0700 Received: from 217.228.130.51 by by1fd.bay1.hotmail.msn.com with HTTP; Mon, 14 Jul 2003 12:11:34 GMT X-Originating-IP: [217.228.130.51] X-Originating-Email: [zheng_sun@hotmail.com] From: "sun zheng" To: user@ant.apache.org Bcc: Subject: configuration of environment arguments by xml.. Date: Mon, 14 Jul 2003 12:11:34 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Jul 2003 12:11:35.0275 (UTC) FILETIME=[11EE2BB0:01C34A01] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi all, I just find out a way maybe possible.. but it still does not work.. pls help me. I require the customer configures a user_environment.properties file.. the structure is as followed. the customer defines his user names and pwds, all kinds of ports, url, ... ... ... ... .. . ... ... ... ... ... .. . there is an authorizationInfo.xml of my context of Tomcat. it has the same structure of ... ... ... ... ... .. . what im trying to do is to replace the content of authorizationInfo.xml by the same parts of user_environment.properties in ant i define the task if in those two xml files i write the content between and in one line, the attribute match="<authorization>.*</authorization>" can find them and replace="{root.authorization}" works perfectly.. however, between and there are multiple lines, hence, match="<authorization>.*</authorization>" can not search out the content. what should I do ? should I modify the regular expression or use another ant command? with best wishes Sun Zheng [prev in list] [next in list] [prev in thread] [next in thread] List: ant-user Subject: configuration of environment arguments by xml.. From: "sun zheng" Date: 2003-07-14 8:33:25 [Download message RAW] Hi all, I require customers configure a xml file to their environment arguments.. now i get a question. I need the customers type in nick/pwd for each context in tomcat.. ie. aaa aaa bbb bbb ccc ccc aaa aaa bbb bbb ddd ddd then, while ant builds the system, it inserts/(replaces if exists) those contents into different context xml files.. but i have no idea how to do it.. will you pls tell me the usual way? with best wishes Sun Zheng _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org [prev in list] [next in list] [prev in thread] [next in thread] Configure | About MARC | Support MARC | Got a list to add? | 10East is Hiring! _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org