ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sun zheng" <zheng_...@hotmail.com>
Subject configuration of environment arguments by xml..
Date Mon, 14 Jul 2003 08:33:25 GMT
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.

<root>

<context1>
  <userinfo>
   <username>aaa</username>
   <userpwd>aaa</userpwd>
  </userinfo>
  <userinfo>
   <username>bbb</username>
   <userpwd>bbb</userpwd>
  </userinfo>
  <userinfo>
   <username>ccc</username>
   <userpwd>ccc</userpwd>
  </userinfo>
</context1>

<context2>
  <userinfo>
   <username>aaa</username>
   <userpwd>aaa</userpwd>
  </userinfo>
  <userinfo>
   <username>bbb</username>
   <userpwd>bbb</userpwd>
  </userinfo>
  <userinfo>
   <username>ddd</username>
   <userpwd>ddd</userpwd>
  </userinfo>
</context2>

</root>

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


Mime
View raw message