abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert allurent (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ABDERA-387) Definitely something wrong with creating manifests.
Date Tue, 01 Apr 2014 19:46:18 GMT

    [ https://issues.apache.org/jira/browse/ABDERA-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13956952#comment-13956952
] 

robert allurent commented on ABDERA-387:
----------------------------------------

Second example, this one uses ANT 1.9.3:

	  <unjar src="${file123}" dest="${artifact.dir}/unjared">
	    <patternset>
		<include name="META-INF/MANIFEST.MF"/>
	    </patternset>	  
	  </unjar>
	  <jar manifest="${artifact.dir}/unjared/META-INF/MANIFEST.MF" destfile="${file123}" update="true"/>

> Definitely something wrong with creating manifests.
> ---------------------------------------------------
>
>                 Key: ABDERA-387
>                 URL: https://issues.apache.org/jira/browse/ABDERA-387
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Apache Ant 1.7.0
> Java 1.7.0_51
>            Reporter: robert allurent
>            Priority: Minor
>              Labels: error, manifest
>
> Apache Ant is DEFINITELY generating or reading manifest files incorrectly.
> To prove this, create a jar with a manifest.
> Immediately after creating the jar and manifest, attempt to update the manifest with
a permission.
> Simple test case:
>    <jar destfile="${build.lib.dir}/myjar.jar">
>       <fileset dir="${build.bin.dir}/my-code">
>         <include name="**/**" />	
>       </fileset>
> 	  <fileset dir="${src.dir}" >
> 		<include name="net/**/*.gif"/>			  
> 		<include name="application/**/*.xml"/>				
> 		<include name="application/**/*.xslt"/>
> 		<include name="config/**"/>
>       </fileset>	  
>       <manifest>
>     <attribute name="Built-By" value="bodewig"/>
>     <section name="common">
>       <attribute name="Specification-Title" value="Example"/>
>       <attribute name="Specification-Version" value="1.2"/>
>       <attribute name="Specification-Vendor" value="Example Organization"/>
>       <attribute name="Implementation-Title" value="common"/>
>       <attribute name="Implementation-Version" value="1.2 September 10, 2013"/>

>       <attribute name="Implementation-Vendor" value="Example Corp."/>
>     </section>
>     <section name="common/class1.class">
>       <attribute name="Sealed" value="false"/>
>     </section>
>       </manifest>
>     </jar>
>     <manifest file="${build.lib.dir}/jxntm-admin.jar" mode="update">         
>       <attribute name="Trusted-Only" value="true"/>
>       <attribute name="Permissions" value="all-permissions"/>
>       <attribute name="Codebase" value="*"/>          
>     </manifest>



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message