ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ritendra Sinha" <ritendra.si...@db.com>
Subject Jar task does not get executed all the time
Date Tue, 23 Jan 2001 13:13:54 GMT


Hi,

I am wondering if anyone has seen problems when running the jar task.

In my ant script I am doing the following:

CLEAN TEMP DIR

<target name="deletetempdirs">
          <delete dir="build" />         <delete dir="${temp_build}" />
</target>

MAKE TEMP DIR


     <target name="createtempdirs" depends="deletetempdirs">
          <mkdir dir="${temp_build}" />
          <mkdir dir="${build}" />
          <mkdir dir="${build}/META-INF" />
          <copy todir="${build}/META-INF" >
     <fileset dir="${properties_src}/ejb/"
               excludes="CVS,*.java" />
          </copy>
     </target>

COMPILE THE CODE
          <target name="compile_ejb" depends="createtempdirs">
          <javac  srcdir="${properties_src}"
               destdir="${build}"
               classpath="${myclasspath}"
          />
     </target>


RUN EJBJAR TO COMPILE THE BEAN

<target name="buildejb" depends="compile_ejb">
          <ejbjar srcdir="${build}" descriptordir="${build}/META-INF"
                    destdir="${deployment_dir}"
          basejarname="properties_ejb">
                <weblogic destdir="${deployment_dir}"
           classpath="${myclasspath}:${build}" />
               <include name="**/ejb-jar.xml" />
                  <include name="**/*.xml" />
          </ejbjar>
     </target>


UNJAR THE JAR FILE TO MY TEMP DIRS AND COPY THE HELPER CLASSES INSIDE THE

TEMP AREA

     <target name="preparefiles2jar" depends="buildejb">
          <unjar src="${deployment_dir}/properties_ejb.jar"
          dest="${temp_build}" />
          <mkdir dir="${temp_build}/com/db/bdfwk/properties/model" />
          <copy todir="${temp_build}/com/db/bdfwk/properties"
              file="${build}/com/db/bdfwk/properties/PropertiesUtil.class" />
          <copy todir="${temp_build}/com/db/bdfwk/properties"
          file="${build}/com/db/bdfwk/properties/PropertiesKey.class" />
          <copy todir="${temp_build}/com/db/bdfwk/properties/model"
          file="${build}/com/db/bdfwk/properties/model/PropertiesModel.class" />
     </target>

REBUILD THE JAR ...The jar task is not called by ANT for some reason!

     <target name="rebuildejbjar" depends="preparefiles2jar">
          <jar jarfile="${deployment_dir}/properties_ejb.jar" basedir="${temp_build}" />

     </target>



The jar task does not get called everytime. I have done a verbose and can't see anything wrong.

Any help will be appreciated..

regards,
Ritendra



--

This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.


Mime
View raw message