river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Hoffstätte (JIRA) <j...@apache.org>
Subject [jira] Commented: (RIVER-203) ClassDep should always recognize '/' as a valid file separator character, regardless of OS
Date Sat, 31 May 2008 14:51:45 GMT

    [ https://issues.apache.org/jira/browse/RIVER-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601394#action_12601394
] 

Holger Hoffstätte commented on RIVER-203:
-----------------------------------------

I'm trying to better understand the actual problems here (as I have never used ClassDep :)
Is the following list of sub-problems correct?

1) currently ClassDep requires the platform-native form as input argument, but should be able
to handle paths with either '\\' and '/'.

2) the output of the -files parameter is platform-specific (as consequence of using File.separator
everywhere) - I just reproduced this.

After a bit of poking and trying to understand the code I could solve #2 with a one-line fix.
For #1 I suggest unconditionally sanitizing the input arguments and always using '/' internally,
which would go hand in hand with the fix for #2.

If this is indeed all there is to this bug then I'm willing to look into this.


> ClassDep should always recognize '/' as a valid file separator character, regardless
of OS
> ------------------------------------------------------------------------------------------
>
>                 Key: RIVER-203
>                 URL: https://issues.apache.org/jira/browse/RIVER-203
>             Project: River
>          Issue Type: Improvement
>          Components: com_sun_jini_tool
>            Reporter: Jools Enticknap
>            Priority: Minor
>
> When specifying directories in Windows, ClassDep requires that such directories contain
'\' as the file separator character.  
> Java, on the other hand, also recognizes '/' as a file separator character in Windows.
 
> Changing ClassDep to also recognize '/' as a file separator character in Windows would
lessen the number of changes required to port scripts between OSes.

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


Mime
View raw message