ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject Jar [manifest] bug?
Date Wed, 23 Jul 2003 22:27:16 GMT
In my last posting
(http://marc.theaimsgroup.com/?l=ant-user&m=105888426906086&w=2) I was
trying to figure out why the manifest files were not the same in different
jar files which used the same "starting" manifest during the jarring
process(I was rejarring the ejbs to update the bnd-xmi files. I'm thinking
the ant <jar> task which is to blame but I don't know how to prove that. 

The original mf file wraps all lines at col 70 so when I view the mf file
after the jar task I expect them to be identical but they are not and the mf
file that is off is the one created by ant (Created-By: Apache Ant 1.5.1).

...here is the jar target:

  <target name="ejb.jar" depends="chk-ejbjndi-uptodate"
unless="${jndiPrefix}_uptodate">
      <antcall target="prep.ejb.jar"/>
      <delete file="${dir.unjar}\${ejb.jar.name}"/>
      <echo>...Changing PrefixType for ${ant.project.name}</echo>
      <echo> create Jar for ${jndiPrefix}</echo>
      <property name="altered.ejb.jarfile"
value="${dir.ejb.tmp}\${ejb.jar.name}"/>
       
      <replace file="${deploy.working.dir}\${bnd.xmi.file.tmp}" 
               token="jndiName=&quot;"
               value="jndiName=&quot;${jndiPrefix}/"/>
      <replace file="${deploy.working.dir}\${bnd.xmi.file.tmp}" 
               token="jndiName=&quot;${jndiPrefix}/jdbc/"
               value="jndiName=&quot;jdbc/"/>

      <jar destfile="${altered.ejb.jarfile}"
           manifest="${this.ejb.build.dir}\META-INF\MANIFEST.MF"
           basedir="${dir.unjar}">
        <fileset dir="${deploy.working.dir}" 
                 includes="META-INF\${bnd.xmi.name}"/>
      </jar> 
      <move file="${altered.ejb.jarfile}"
            preservelastmodified="true"
            todir="${app.module.dir}\${jndiPrefix}_Prefix"/>
  </target>

If anyone has experienced this behavior before or can shed some light on it
for me I'd greatly appreciate it.

Thanks,
-Will

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message