ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Lybarger" <>
Subject using foreach with fileset
Date Wed, 17 Dec 2003 18:44:10 GMT
i'm trying to use the ant-contrib foreach task to generate deployment descriptors for my ejbs.
 the in the descriptor.detail target is getting set to the full path name of the
file that's included in the bean.implementation.classes path.  is there a way to have it be
just the actual file name apart from the file path name?  perhaps a "better" way to do this?

  <target name="deployment.descriptor">
    <foreach target="descriptor.detail" param="" inheritall="true" parallel="true">
        <path refid="bean.implementation.classes"/>
  <target name="descriptor.detail">
        <echo>beginning ${}</echo>
        <ejbdoclet verbose="on" ejbspec="2.0" destDir="${basedir.webapp.web-inf.src.gen}">
            <fileset dir="${basedir.webapp.web-inf.src}">
                <include name="**/(${}"/>
			<deploymentdescriptor destinationFile="{0}-ejb-jar.xml"/>
			<weblogic destinationFile="{0}-weblogic-ejb-jar.xml"/> 			


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message