Stan Ou wrote:
thanks for your reply.
But the list of directories is about 20 to 25 folders
long and can grow.  maintaining that list in the war
task is probably the last thing I would do if all
others fail.  I want something a bit more
maintaince-friendly.


--- Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote:

Hello Stan,
one thing which might work would be to generate on the fly in ant the war task fragment that you need, precisely the list of filesets. You could using a dirset and pathconvert find the list of base directories you are interested in, convert it to a property, then invoke the style task with a small stylesheet of your own to generate the <war/> fragment, which you can then invoke using <ant/>.

The clean solution would be that you write a new task which extends the war task, and is able to populate itself with filesets automatically.
Regards,
Antoine

Change this to :

<war destfile="${zipped.home}/abc.war"
webxml="${build.home}/WEB-INF/web.xml"
update="true">
      <fileset dir="c:dev/apps/qaz/myhtml" />
      <fileset dir="c:dev/apps/wsx/myhtml" />
....
      <!-- other omitted for brevity -->

    </war>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to