And just to prove my point, here is Jaxb's Schema compiler JAR manifest ;-)
Note how the JARs are space-separated, and using relative paths compared to the JAR file that defines the manifest. You can use only such relative local paths or full URLs. --DD Manifest-Version: 1.0 Created-By: Apache Ant 1.5 Specification-Title: Java Architecture for XML Binding Specification-Version: 0.75 Specification-Vendor: Sun Microsystems, Inc. Implementation-Title: JAXB Reference Implementation Implementation-Version: Beta Implementation-Vendor: Sun Microsystems, Inc. Sealed: true Main-Class: com.sun.tools.xjc.Driver Class-Path: jaxb-api.jar jaxb-ri.jar jaxb-libs.jar sax.jar dom.jar jax p-api.jar xercesImpl.jar jax-qname.jar -----Original Message----- From: Dominique Devienne [mailto:DDevienne@;lgc.com] Sent: Tuesday, November 12, 2002 4:26 PM To: 'Ant Users List' Subject: RE: Dynamic construction of property from filesets/files 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> -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
