ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Shanker" <asdf...@yahoo.com>
Subject ejbjar for weblogic - location of META-INF/weblogic-ejb-jar.xml
Date Sun, 25 Feb 2001 15:52:58 GMT
Hello,
I am new to ant.
I am not sure where ant is looking for the META-INF directory and xml
descriptor's.
Q1. Its not a ${build.dir}   ??

Q2. What about include and exclude, as weblogic-ejb-jar is required always
why in examples it exclude?



---------- ANT ------

 <mkdir dir="${build.dir}/META-INF"/>
 <copy file="xml/User-ejb-jar.xml"
tofile="${build.dir}/META-INF/User-ejb-jar.xml"/>
 <copy file="xml/weblogic-ejb-jar.xml"
tofile="${build.dir}/META-INF/weblogic-ejb-jar.xml"/>


    <ejbjar srcdir="${build.dir}" descriptordir="${descriptor.dir}">
      <weblogic destdir="${deploymentjars.dir}"
                classpath="${weblogic.home}/lib/weblogic.jar"/>
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>
    </ejbjar>

-------- ERROR ------
 [javac] Compiling 1 source file to C:\Development\build
   [ejbjar] building User.jar with 4 files
     [java] java.io.FileNotFoundException: META-INF/weblogic-ejb-jar.xml not
found in jar file
     [java]     at java.lang.Throwable.<init>(Throwable.java:96)
     [java]     at java.lang.Exception.<init>(Exception.java:44)
     [java]     at java.io.IOException.<init>(IOException.java:49)
     [java]     at
java.io.FileNotFoundException.<init>(FileNotFoundException.ja


thanks,
/uma shanker
asdf834@yahoo.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Mime
View raw message