ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baldry, Scot M" <Scot.Bal...@gs.com>
Subject ejbjar with ANT 1.3
Date Mon, 17 Dec 2001 16:10:39 GMT
Hi,

I am having trouble including specific files using the 'ejbjar' optional
task. I basically want my EJB Jar to include some custom meta-data that I
create for every package in my system - the file is called Version.

Here is my task definition:

    <!-- General target to build an EJB jar from all classes in the current
project -->
    <target name="core.ejb" description="Create ejb JAR file">    
        <echo message="Attempting to ejbc [${this.package}]" />
        <mkdir dir="${this.build.dist}" />
        <ejbjar descriptordir="." srcdir="${this.build.classes}"
destdir="${this.build.dist}" flatdestdir="true">
            <weblogic destdir="${this.build.dist}" newCMP="true">
                <classpath refid="ejbc.weblogic.classpath"/>
            </weblogic>
		<include name="**/Version"/>
            <include name="**/*-ejb-jar.xml"/>
            <exclude name="**/*weblogic*.xml"/>
        </ejbjar>
    </target>


Basically the "Version" file never gets added to the final jar - does anyone
know if it is possible to include specific sets of files in the final jar?

Many Thanks

Scot

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