ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Dougherty <Mi...@san.rr.com>
Subject Re: ejb and ant
Date Tue, 05 Jun 2001 16:21:54 GMT
Ralf Krakowski wrote:
> 
> I am trying to build and deploy an ejb with ant.
> I have read the docs but I cant get it to work(compiling works fine).
> Could somebody please provide a simple sample file using the EJB task in the
> optional package?
> 
> Thank you
> 
> Ralf


This is pretty old (1.2 maybe), but it should give you an idea.

  <target name="c-idgen" >
        <javac srcdir="${srcDir}" destdir="${classesDir}"
                classpath="${classpath}"
               
includes="com/ncr/performance/util/idgenerator/**/*.java" />
  </target>

  <target name="b-idgen" depends="c-idgen">
    <property name="workDir" value="${tmpDir}/idgen" />
        <mkdir dir="${workDir}/META-INF" />
        <copy todir="${workDir}/META-INF/">
                <fileset
dir="${srcDir}/com/ncr/performance/util/idgenerator"
                 includes="*.xml" />
        </copy>
        <ejbjar srcdir="${classesDir}"
                descriptordir="${workDir}/META-INF"
                        destdir="${ejbDir}"
            basejarname="IDGenerator" >
                <weblogic destdir="${ejbDir}" newCMP="true"
keepgeneric="true" />
        <include name="**/*ejb-jar.xml" />
        </ejbjar>
    <delete dir="${workDir}" />
  </target>

/mike

-- 
******************************************
 Mike Dougherty -- Java Software Engineer
******************************************

Mime
View raw message