ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject RE: manifest not wrapping correctly
Date Tue, 22 Jul 2003 14:30:53 GMT
Hello Conor:

This is what is confusing me....the original manifest file is fine but after
updating the jar with an xml file the manifest wraps correctly on some lines
[greater than 70] but not on others.

I provided the targets involved, the order of execution is:

1. target name="ejb.jar.noprefix" 
     (jars the ejb classes & manifest then uses Websphere's ejb deploy tool)
-everything looks good

2. target name="prep.ejb.jar"
      (copies the ibm bnd.xmi file and the ejb jar created from step 1 to a
temp directory)

3. target name="ejb.jar"
      (manipulates xmi file and updates the copied jar, then it moves the
jar to the appropriate    directory)

Here's an example:
Original mf:	Name:
com/eds/insurance/xxxxxx/xxxxxxxxx/ejb/PricingListProcessor.jav
			 a
			MD5-Digest: ...
			SHA-Digest: ...
			Digest-Algorithms: SHA MD5
Copied mf:		Name:
com/eds/insurance/xxxxxx/xxxxxxxxx/ejb/PricingListProcessor.java
                  MD5-Digest: ...
                  SHA-Digest: ...
			Digest-Algorithms: SHA MD5
 
 
 <target name="ejb.jar.noprefix" depends="chk-noprefix-uptodate"
unless="noprefix_uptodate">
    <jar jarfile="${ejb.jar.file}" basedir="${this.ejb.build.dir}" 
         manifest="${this.ejb.build.dir}\META-INF\MANIFEST.MF">
    </jar> 

    <antcall target="deploy.ejb.jar">  
       <param name="jndiPrefix" value="NO_Prefix" />
    </antcall>
  </target>

  <target name="prep.ejb.jar" depends="del-tmp-xmi">
      <copy file="${bnd.xmi.file}"
tofile="${deploy.working.dir}\${bnd.xmi.file.tmp}"/>
      <copy file="${app.module.dir}\NO_Prefix\${deployed.jar.name}"
            overwrite="true"
            preservelastmodified="true"
            todir="${dir.ejb.tmp}"/>
  </target>

  <target name="ejb.jar" depends="chk-ejbjndi-uptodate"
unless="${jndiPrefix}_uptodate">
      <antcall target="prep.ejb.jar"/>
      <echo>...Changing PrefixType for ${ant.project.name}</echo>
      <echo> create Jar for ${jndiPrefix}</echo>
      <property name="altered.ejb.jarfile"
value="${dir.ejb.tmp}\${deployed.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 jarfile="${altered.ejb.jarfile}"
            update="true"
            manifest="${this.ejb.build.dir}\META-INF\MANIFEST.MF" 
            excludes="**/META-INF/ibm-ejb-jar-bnd.xmi">
         <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>

-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au] 
Sent: Monday, July 21, 2003 6:28 PM
To: Ant Users List
Subject: Re: manifest not wrapping correctly


On Tue, 22 Jul 2003 06:57 am, Lopez, William wrote:
> Hello:
>
> The manifest files are not wrapping correctly, sometimes, when line 
> exceeds 70 chars. The environment is set up as:
>

When you say "not wrapping correctly" are you saying the problem is that it
is 
wrapping at all. Wrapping at column 70 is part of the jar specification.

http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Notes%20on%20Manifest
%20and%20Signature%20Files

OTOH, if it is wrapping but that is not how you expect it to wrap, please 
provide more details.

Conor


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

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


Mime
View raw message