On Fri, 8 Feb 2002, Craig R. McClanahan wrote: > <target name="generate" description="Generate customized server.xml"> > <replace file="server.xml" token="@port@" value="${port}" > </target> > > </project> > > In your template server.xml, you'd have a <Connector> element like this: > > <Connector ... port="@port@" .../> > > Now, you just run "ant -Dport=8085" and you've replaced the port number. > Generalizing this to replace lots of properties is straightforward.
Well, it's a bit more complicated - assuming you want to start multiple tomcat instances, on different ports ( load balancing for example ), you'll have ant create different files instead of using one which may be confusing. Plus ant will add to the startup time ( which is already high ). Costin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>