Stefan,

As mentioned earlier I find that sometimes the ANT tar task works while sometimes it 
doesn't. I have included the result of both.

The following is output from ANT when I run the ant command and the Jar task does NOT 
work:
Please note that I have added EXEC & ECHO called before and after <jar...> the jar 
task is called.

   [unjar] Expanding: /opt/weblogic_build/myserver/properties_ejb.jar into 
/export/home/sinhri/Projects/antxml/temp
    [unjar] expand-file META-INF/MANIFEST.MF
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/MANIFEST.MF
    [unjar] expand-file META-INF/ejb-jar.xml
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/ejb-jar.xml
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesPS.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesPS.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLSkel.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLSkel.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLStub.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLStub.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesHome.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesHome.class
    [unjar] expand-file 
com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_ServiceStub.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_ServiceStub.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBean.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBean.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImplAD.ser
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImplAD.ser
    [unjar] expand-file com/db/bdfwk/properties/PropertiesKey.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/PropertiesKey.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/Properties.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/Properties.class
    [unjar] expand-file META-INF/Properties-cmp-rdbms-jar.xml
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/Properties-cmp-rdbms-jar.xml
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLSkel.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLSkel.class
    [unjar] expand-file 
com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_Descriptor.ser
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_Descriptor.ser
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl.class
    [unjar] expand-file 
com/db/bdfwk/properties/ejb/PropertiesPSWebLogic_CMP_RDBMS.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesPSWebLogic_CMP_RDBMS.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLStub.class
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLStub.class
    [unjar] expand-file META-INF/weblogic-ejb-jar.xml
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/weblogic-ejb-jar.xml
    [unjar] expand complete
    [mkdir] Created dir: 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model
     [copy] Copying 1 file to 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties
     [copy] Copying 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/PropertiesUtil.class 
to 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/PropertiesUtil.class
Copy: 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/PropertiesUtil.class 
> /export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/PropertiesUtil.class
     [copy] Copying 1 file to 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model
     [copy] Copying 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/model/PropertiesModel.class
 to 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model/PropertiesModel.class
Copy: 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/model/PropertiesModel.class
 > 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model/PropertiesModel.class
     [exec] Myos = SunOS
     [exec] ls
     [exec] ejb
     [exec] model
     [exec] PropertiesKey.class
     [exec] PropertiesUtil.class
/export/home/sinhri/Projects/antxml/temp
     [exec] Myos = SunOS
     [exec] ls
     [exec] ejb
     [exec] model
     [exec] PropertiesKey.class
     [exec] PropertiesUtil.class

The following is output from ANT when I run the ant command and the Jar task does WORK:
Please note that I have added EXEC & ECHO called before and after <jar...> the jar 
task is called.

   [ejbjar] looking at class com.db.bdfwk.properties.PropertiesKey
   [ejbjar] looking at interface com.db.bdfwk.properties.ejb.PropertiesHome
   [ejbjar]      implements javax.ejb.EJBHome
   [ejbjar] looking at interface com.db.bdfwk.properties.ejb.Properties
   [ejbjar]      implements javax.ejb.EJBObject
   [ejbjar] looking at class com.db.bdfwk.properties.ejb.PropertiesBean
   [ejbjar] building properties_ejb.jar with 7 files
   [ejbjar] adding file ' Name: 
META-INF/ejb-jar.xml'File/export/home/sinhri/Projects/antxml/build/META-INF/ejb-jar.xml
   [ejbjar] adding file ' Name:

com/db/bdfwk/properties/PropertiesKey.class'File/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/PropertiesK

ey.class
   [ejbjar] adding file ' Name:

com/db/bdfwk/properties/ejb/PropertiesHome.class'File/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/ejb/Pr

opertiesHome.class
   [ejbjar] adding file ' Name:

com/db/bdfwk/properties/ejb/Properties.class'File/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/ejb/Proper

ties.class
   [ejbjar] adding file ' Name:

META-INF/weblogic-ejb-jar.xml'File/export/home/sinhri/Projects/antxml/build/META-INF/weblogic-ejb-jar.xml
   [ejbjar] adding file ' Name:

META-INF/weblogic-cmp-rdbms-jar.xml'File/export/home/sinhri/Projects/antxml/build/META-INF/Properties-cmp-rdbms-jar.xml
   [ejbjar] adding file ' Name:

com/db/bdfwk/properties/ejb/PropertiesBean.class'File/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/ejb/Pr

opertiesBean.class
   [ejbjar] Calling weblogic.ejbc for 
/opt/weblogic_build/myserver/properties_ejb-generic.jar
     [java] Forking java -classpath

/opt/weblogic_build/lib/weblogicaux.jar:/opt/weblogic_build/lib/weblogic510sp6.jar:/opt/weblogic_build/classes:/opt/weblogic_

build/myserver/serverclasses:/opt/weblogic_build/myserver/serverclasses/patbin14_122.jar:/opt/weblogic_build/myserver/serverc

lasses/jlog.jar:/usr/java1.2/jre/lib/rt.jar:/usr/java1.2/jre/lib/i18n.jar:/tmp/checkout/db/bdfwk/common/lib/jlog.jar:/tmp/che

ckout/db/bdfwk/common/lib/patbin14_122.jar:/tmp/checkout/db/bdfwk/common/lib/log4j-full.jar:/tmp/checkout/db/bdfwk/common/lib

/xerces.jar:/tmp/checkout/db/bdfwk/lib/common.jar:/export/home/sinhri/Projects/antxml/build
 weblogic.ejbc -noexit

/opt/weblogic_build/myserver/properties_ejb-generic.jar 
/opt/weblogic_build/myserver/properties_ejb.jar
   [ejbjar] deleting generic jar 
/opt/weblogic_build/myserver/properties_ejb-generic.jar
    [unjar] Expanding: /opt/weblogic_build/myserver/properties_ejb.jar into 
/export/home/sinhri/Projects/antxml/temp
    [unjar] expand-file META-INF/MANIFEST.MF
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/MANIFEST.MF
    [unjar] expand-file META-INF/ejb-jar.xml
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/ejb-jar.xml
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesPS.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesPS.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLSkel.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLSkel.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLStub.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLStub.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesHome.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesHome.class
    [unjar] expand-file 
com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_ServiceStub.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_ServiceStub.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBean.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBean.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImplAD.ser
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImplAD.ser
    [unjar] expand-file com/db/bdfwk/properties/PropertiesKey.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/PropertiesKey.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/Properties.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/Properties.class
    [unjar] expand-file META-INF/Properties-cmp-rdbms-jar.xml
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/Properties-cmp-rdbms-jar.xml
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLSkel.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_WLSkel.class
    [unjar] expand-file 
com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_Descriptor.ser
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl_Descriptor.ser
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanHomeImpl.class
    [unjar] expand-file 
com/db/bdfwk/properties/ejb/PropertiesPSWebLogic_CMP_RDBMS.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesPSWebLogic_CMP_RDBMS.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl.class
    [unjar] expand-file com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLStub.class
    [unjar] Setting modification time for

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/ejb/PropertiesBeanEOImpl_WLStub.class
    [unjar] expand-file META-INF/weblogic-ejb-jar.xml
    [unjar] Setting modification time for 
/export/home/sinhri/Projects/antxml/temp/META-INF/weblogic-ejb-jar.xml
    [unjar] expand complete
    [mkdir] Created dir: 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model
     [copy] Copying 1 file to 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties
     [copy] Copying 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/PropertiesUtil.class 
to

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/PropertiesUtil.class
Copy: 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/PropertiesUtil.class 
>

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/PropertiesUtil.class
     [copy] Copying 1 file to 
/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model
     [copy] Copying 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/model/PropertiesModel.class
 to

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model/PropertiesModel.class
Copy: 
/export/home/sinhri/Projects/antxml/build/com/db/bdfwk/properties/model/PropertiesModel.class
 >

/export/home/sinhri/Projects/antxml/temp/com/db/bdfwk/properties/model/PropertiesModel.class
     [exec] Myos = SunOS
     [exec] ls
     [exec] ejb
     [exec] model
     [exec] PropertiesKey.class
     [exec] PropertiesUtil.class
/export/home/sinhri/Projects/antxml/temp
      [jar] Building jar: /opt/weblogic_build/myserver/properties_ejb.jar
      [jar] Warning: selected jar files include a META-INF/MANIFEST.MF which will be 
ignored (please use manifest attribute

to jar task)
     [exec] Myos = SunOS
     [exec] ls
     [exec] ejb
     [exec] model
     [exec] PropertiesKey.class
     [exec] PropertiesUtil.class

END

Regards,
Ritendra

r


---------------------------------------- Message History 
----------------------------------------


From: Stefan Bodewig <[EMAIL PROTECTED]> on 23/01/2001 14:24 CET

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Jar task does not get executed all the time


Ritendra Sinha <[EMAIL PROTECTED]> wrote:

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

Is not called or does nothing?

What does "ant rebuildejbjar -verbose" say here - even if you don't
see anything wrong, maybe we can 8-)

Stefan





--

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.

Reply via email to