ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Narayanan, Gopalakrishnan" <gna...@exchange.ml.com>
Subject RE: Dynamic construction of property from filesets/files
Date Tue, 12 Nov 2002 22:30:57 GMT
Yeah, that's right.But weblogic(5.1) has its own ways.We have been defining ejbs using the
following property in weblogic.properties.

weblogic.ejb.deploy=/ds1-export/apps/bea/weblogic/mycluster/Bean1.jar, 
			/ds1-export/apps/bea/weblogic/mycluster/Bean2.jar, 
			/ds1-export/apps/bea/weblogic/mycluster/Bean3.jar

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Tuesday, November 12, 2002 5: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: '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>



--
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>


Mime
View raw message