I have a similar problem - I simply rename the files when necessary. I have
the additional problem that Axis isn't up and running when I compile, but my
services have to be deployed by the time the app server comes up. As a
result, I do a lot of filterchain tasks in Ant in order to "deploy" the
service. Essentially, I tear open these deploy files and copy segments to
Axis's server-config.wsdd. This way, when Axis come up, hey presto,
everything is ready.
Anand
On Tue, 17 Aug 2004, Jerome Lacoste wrote:
: On Mon, 2004-08-16 at 18:31 -0400, Christophe Roudet wrote:
: > Try with the ant copy task associated with a mapper:
: >
: > <copy file="deploy.wsdd" todir="${configuration.dir}">
: > <mapper type="glob" from="*.wsdd" to="myservice-*.wsdd" />
: > </copy>
:
: And while I am at it, that doesn't solve all:
:
: I have to specify the exact file path for this task to work, and the file path for
the deploy.wsdd file depends on the package name.
: I have then either to add a parameter to my gen.wsdd target, or to convert the
package name into a directory using some Ant trickery.
:
:
: I have thinking about it for over 30 min now, and I haven't come up with a clean
solution on how to do that.
:
: So I ended up doing a two stage move/rename operation.
:
: <move todir="${dist.dir.wsdd}" flatten="true">
: <fileset dir="${build.dir.wsdd}" includes="**/*.wsdd"/>
: </move>
: <move file="${dist.dir.wsdd}/deploy.wsdd"
tofile="${dist.dir.wsdd}/${service.name}-deploy.wsdd" />
: <move file="${dist.dir.wsdd}/undeploy.wsdd"
tofile="${dist.dir.wsdd}/${service.name}-undeploy.wsdd" />
:
: "That ain't pretty but that works" (TM)
:
: J
:
: