ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Dynamic construction of property from filesets/files
Date Tue, 12 Nov 2002 20:28:09 GMT
Define the <fileset id="ebj-jars" ... /> of your EJB jar files.
Then <pathconvert property="ejb-jar-list" refid="ejb-jars" ... />

This should do the trick. Use a <mapper> in <pathconvert> to get rid of as
much unwanted path prefix as needed. Be careful to use the same kind of file
separator in your mapper as in the filenames (depends on the local
platform). Best way to get it right is to define the path prefix to remove
in a <property name="prefix" location="/acme/prefix"/>, and de-reference
that property in <mapper from="${prefix}" .../>.

Not exactly easy, but doable. Good luck, --DD

-----Original Message-----
From: Narayanan, Gopalakrishnan [mailto:gnaray@exchange.ml.com] 
Sent: Tuesday, November 12, 2002 2:18 PM
To: 'ant-user@jakarta.apache.org'
Subject: Dynamic construction of property from filesets/files

Is there a way in ANT to dynamically construct a property based on the files
in a fileset.
More specifically,I run the ejb-jar to generate ejbs.The number of ejbs is
not known till runtime and so are the names of the ejbs.
But all the generated ejbs go into a specific folder.

Is there a way to load all the ejb-jar jar file names into a property
(separated by colon or semi-colon )so that this property can be set in  EJB
definitions in weblogic.properties ?

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


Mime
View raw message