Hi Phil,
Thx for your input, I already posted to the Ant forum - if they don't
jump on this topic I'll try to use the links you sent and keep you posted
on the results....
thx alot
Johannes
"Phil Steitz" <[EMAIL PROTECTED]>
30.03.2003 18:30
Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>
To
"Tomcat Users List" <[EMAIL PROTECTED]>
cc
Subject
Re: Library management for Tomcat using ant
[EMAIL PROTECTED] wrote:
> Hi Jerome,
>
> Yes, certainly that's what I thought at the first glance as well.
>
> But wouldn't it make more sense to make the fileset importable from
> another file (i.e. extend the FileSet datatype to allow imports from
> another file)?
> e.g.
> build.xml:
> <copy todir="${build.home}/WEB-INF/lib">
> <fileset src="lib.xml" />
> </copy>
>
> lib.xml:
> <fileset dir="${lib.home}">
> <include name="cos.jar" />
> <include name="cos2.jar" />
> ....
> </fileset>
>
> ==> but since I'm not yet an ant expert, I don't know where to start to
> extend the FileSet datatype of ant. Anybody any ideas?
> I think this kind of action (=reading a tag from an external file) could
> be required more often, so I think it would make sense to extend the
> FileSet datatype.
>
> Has anybody a good idea where to start?
> (probably at the ant mailinglist :)?
This really is a question for the Ant list.
You might be able to solve your problem, however, using the "XML
include" technique described in
http://ant.apache.org/faq.html#xml-entity-include, or by just piping the
lib file list in on the command line, using:
http://ant.apache.org/faq.html#passing-cli-args
-Phil
>
> thx,
> Johannes
>
>
>
>
>
> jerome moliere <[EMAIL PROTECTED]>
> 30.03.2003 14:26
> Please respond to
> "Tomcat Users List" <[EMAIL PROTECTED]>
>
>
> To
> Tomcat Users List <[EMAIL PROTECTED]>
> cc
>
> Subject
> Re: Library management for Tomcat using ant
>
>
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
>
>>Hi there,
>>
>>I know this is more a question about ant, but maybe a tomcat user here
>
> has
>
>>faced the same issue as I do when using a central lib directory for all
>
> of
>
>>the JAR files in the various webapps:
>>
>>In the prepare task I copy the JAR files I need for my webapp into the
>>WEB-INF/lib folder in the build path:
>>===============
>><copy todir="${build.home}/WEB-INF/lib">
>> <fileset dir="${lib.home}">
>> <include name="cos.jar" />
>> <include name="cos2.jar" />
>> ....
>> </fileset>
>></copy>
>>=================
>>
>>However, this library listing is the only thing which distinguishes the
>>various build.xml files for my different webapps.
>>I'd prefer to have only ONE build.xml file for all of my webapps so they
>>all have the same structure.
>>
>>How can I import a fileset like above from a separate filename?
>>(so I can have
>>*) ONE build.xml for all of my webapps and
>>*) a specific lib.xml for each of my webapps?
>>
>>thx alot
>>Johannes
>>
>>
>
> Hi Johannes,
> why not coding your own task ? reading a single filename then copying
> files is an easy task to be coded in Java isn't it ?
>
> HTH
> Jerome
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]