Really? 'pathsep' should read =" " and not ",${line.separator}", otherwise
your JARs won't be found at runtime. If you used ${line.separator} because
you're worried about the 72 char line limitation in manifest, don't since
Ant's <manifest> element will do the right thing for you.The JARs must be space separated I think in the Class-Path: attribute. --DD -----Original Message----- From: Narayanan, Gopalakrishnan [mailto:gnaray@;exchange.ml.com] Sent: Tuesday, November 12, 2002 4:20 PM To: 'Ant Users List' Subject: RE: Dynamic construction of property from filesets/files Thanks!That did the trick. Just for reference, <property name="proj.deliverable.localized.dir" location="${proj.deliverable.dir}" /> <fileset id="proj.deliverable.dir.temp" dir="${proj.deliverable.dir}/mycluster" includes="*.jar"/> <pathconvert pathsep=",${line.separator}" dirsep="/" property="proj.deploy.ejb.definition" refid="proj.deliverable.dir.temp" > <map from="${proj.deliverable.localized.dir}" to="${proj.deploy.server.weblogic.location}" /> </pathconvert> -----Original Message----- From: Dominique Devienne [mailto:DDevienne@;lgc.com] Sent: Tuesday, November 12, 2002 3:28 PM To: 'Ant Users List' Subject: RE: Dynamic construction of property from filesets/files 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: '[EMAIL PROTECTED]' 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> -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
