ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject RE: configuration of environment arguments by xml..
Date Thu, 17 Jul 2003 19:03:51 GMT
...this might do the trick

http://ant.apache.org/manual/CoreTasks/concat.html

Concatenate a series of files, overwriting if the destination file exists:

  <concat destfile="${docbook.dir}/all-sections.xml">
    <filelist dir="${docbook.dir}/sections" 
         files="introduction.xml,overview.xml"/>
    <fileset dir="${docbook.dir}" 
         includes="sections/*.xml" 
         excludes="introduction.xml,overview.xml"/>
  </concat>
      

-----Original Message-----
From: sun zheng [mailto:zheng_sun@hotmail.com] 
Sent: Monday, July 14, 2003 3:33 AM
To: user@ant.apache.org
Subject: configuration of environment arguments by xml..


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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message