ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49266] ant does not work with empty CLASSPATH
Date Fri, 07 May 2010 20:26:05 GMT

Jesse Glick <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from Jesse Glick <> 2010-05-07 16:26:02 EDT ---
(In reply to comment #0)
> $ unset CLASSPATH
> $ ant
> The -cp argument must be followed by a classpath expression

Does not happen to me. Are you using a custom java launcher wrapper shell
script? Run

file `which java`

and if it is not something like "ELF 32-bit LSB executable", you might have a
buggy launcher - e.g. using $* or $@ rather than "$@" for program arguments.

> The -cp "$CLASSPATH" options are
> appended to the command line even when the CLASSPATH is empty, resulting in a
> command line which looks like 'exec java ... -cp ""'

More like:

exec java -classpath "...antstuff..." -Dant.home=... -D... -version -cp ""

i.e. three args are passed to main(String[]) in this example: {"-version",
"-cp", ""}, which should be fine.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message