Menu ▾ ▴

#3 Multiple library jars can't be specified

closed-fixed
None
5
2002-08-11
2002-08-06
Anonymous
No

In the manual, multiple library jars can be specified
to -libraryjars option with path separator ':' on Unix
platform.
But ProGuard recognizes ':' separated paths as single
file path.
I tried to use ';' as separator, then ProGuard says as
following on Unix platform.
> Missing jar name separator ':' before ';' in argument
number 4.

Related

Bugs: #655

Discussion

  • Bob Drury

    Bob Drury - 2002-08-06

    Logged In: YES
    user_id=401172

    I ran into this as well, in version 1.1. It looks to me as
    if the Unix path separator ":" is not listed as a delimiter
    in WordReader.isDelimiter, preventing the -libraryjars
    option from accepting multiple jars in the same option. I
    found that as a workaround, spaces can be used as
    additional delimiters, e.g. "jar1 : jar2" works whereas
    "jar1:jar2" is what I expected to work.

    Alternatively, my understanding of the manual is that each
    jar could be listed in a separate -libraryjars option, but I
    have not verified that works.

     
  • Eric Lafortune

    Eric Lafortune - 2002-08-08

    Logged In: YES
    user_id=555208

    You're right; this was an oversight of mine.
    The parser reads words and key words separated by
    white space. Special characters (comma, semi-colon,
    parentheses,...) are always treated as individual key words,
    irrespective of any white space around them. The path separator
    is not included in the list of special characters, so on Unix,
    you have to surround the colons by spaces (or specify multiple
    -libraryjars options, which is what I prefer myself).

    I've fixed it for version 1.2, due to be released in a
    couple of days.

    Eric.

     
  • Eric Lafortune

    Eric Lafortune - 2002-08-08
    • status: open --> open-accepted
     
  • Eric Lafortune

    Eric Lafortune - 2002-08-08
    • assigned_to: nobody --> lafortune
     
  • Eric Lafortune

    Eric Lafortune - 2002-08-11
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.