Bug 34366

Summary: Should be able to use <manifest> as a data type for use in <jar>
Product: Ant Reporter: Jesse Glick <jglick>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 1.6.2   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Jesse Glick 2005-04-08 03:16:52 UTC
I would expect something like the following to work, but it does not:

<project default="x" basedir=".">
    <target name="x">
        <property name="use.m" value="true"/>
        <manifest id="m">
            <attribute name="n" value="v"/>
        </manifest>
        <jar jarfile="x.jar">
            <manifest refid="m" if="use.m"/>
        </jar>
    </target>
</project>