[ http://jira.codehaus.org/browse/MNG-1247?page=comments#action_48968 ] 

Edwin Punzalan commented on MNG-1247:
-------------------------------------

actually, according to spec there must be a space on col 1 for the continued 
line.

If putting them in one line fixed it, maybe the Manifest parser does not comply 
to this spec.

Also, the error: "invalid header field" came from javac.Main() when executed by 
the compiler plugin.

> Remove carriage returns and tabs from field values in the manifest file
> -----------------------------------------------------------------------
>
>          Key: MNG-1247
>          URL: http://jira.codehaus.org/browse/MNG-1247
>      Project: Maven 2
>         Type: Bug
>   Components: maven-archiver
>     Versions: 2.0
>  Environment: Windows XP, Java 5
>     Reporter: Adrian

>
>
> The code that generates manifest files needs to remove tabs and carriage 
> returns from the text values. 
> I discovered the bug when my description in the pom.xml spaned several lines 
> with tabs and carriage returns - this caused the following exception..
> java.io.IOException: invalid header field
> By removing the tabs and carriage returns in the pom.xml I have temporarily 
> fixed the issue.
> The manifest generated should look like ..
> ---------------------------------------------------------
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: Apache Maven
> Built-By: apill
> Build-Jdk: 1.5.0_02
> Extension-Name: pics-model
> Specification-Title: The core inventory model project defines the mode l for 
> cental storage for core inventory.
> Specification-Vendor: Dolby Laboratories, Inc
> Implementation-Vendor: Dolby Laboratories, Inc
> Implementation-Title: pics-model
> Implementation-Version: 0.1-SNAPSHOT
> ---------------------------------------------------------
> NOT LIKE
> ---------------------------------------------------------
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: Apache Maven
> Built-By: apill
> Build-Jdk: 1.5.0_02
> Extension-Name: pics-model
> Specification-Title: The core inventory model project defines the mode
>  l for cental
>               storage for core inventory.
> Specification-Vendor: Dolby Laboratories, Inc
> Implementation-Vendor: Dolby Laboratories, Inc
> Implementation-Title: pics-model
> Implementation-Version: 0.1-SNAPSHOT
> -----------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to