You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Shi Jun Zhang (JIRA)" <ji...@apache.org> on 2010/08/13 05:13:16 UTC

[jira] Updated: (HARMONY-6622) [jdktools][jar]jar command throws FileNotFoundException when creating jar file with absolute file path

     [ https://issues.apache.org/jira/browse/HARMONY-6622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shi Jun Zhang updated HARMONY-6622:
-----------------------------------

    Attachment: HARMONY-6622.diff

I modified the code to make jar command can deal both relative and absolute file path. I also found that the windows file seperator "\" will be replaced with "/" in RI's behavior, so i made the same change.

> [jdktools][jar]jar command throws FileNotFoundException when creating jar file with absolute file path
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6622
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6622
>             Project: Harmony
>          Issue Type: Bug
>          Components: Misc
>    Affects Versions: 5.0M14
>         Environment: All
>            Reporter: Shi Jun Zhang
>         Attachments: HARMONY-6622.diff
>
>
> When creating jar file with absolute file path, the jar command will throw FileNotFoundException.
> For example:
> jar cvf /tmp/test.jar /tmp/testdir
> The jar command will treat "/tmp/testdir" as a relative path and concat it with current dir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.