ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49266] ant does not work with empty CLASSPATH
Date Fri, 07 May 2010 20:26:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49266

Jesse Glick <jglick@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jglick@netbeans.org

--- Comment #2 from Jesse Glick <jglick@netbeans.org> 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...
org.apache.tools.ant.launch.Launcher -version -cp ""

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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message