https://issues.apache.org/bugzilla/show_bug.cgi?id=45675

           Summary: Manifest task disallows the character '8' in attribute
                    names
           Product: Ant
           Version: 1.7.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


When updating manifest files the build will fail if the character 8 is used in
any of the attribute names.  This happens regardless of whether this is done
within a jar task or you are using the manifest task directly.

Since Ant 1.7.1 it seems that ManifestTask is validating attribute names to
make sure that they contain no invalid characters.  Having looked in the latest
source for org.apache.tools.ant.taskdefs.ManifestTask it appears that 8 has
been accidentally omitted from the field VALID_ATTRIBUTE_CHARS.

Here's the test script and it's output:

<?xml version="1.0"?>
<project name="test" default="test">
    <description>Test</description>
    <target name="test">
        <manifest file="test.mf">
            <attribute name="attrib8" value="test attribute"/>
        </manifest>
    </target>
</project>


$ ant
Buildfile: build.xml

test:

BUILD FAILED
e:\build.xml:6: Manifest attribute names must not contain '8'

Total time: 0 seconds


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to