Jon Scott Stevens <[EMAIL PROTECTED]> writes:

> I set MAVEN_HOME=~/maven
> 
> This is fine and dandy except when you want to build a classpath using
> MAVEN_HOME/bin/maven because java doesn't understand ~ in the classpath.
> 
> Ug.

Get a better shell.  ;-)

bash expands as follows:

dlr@despot:xml-rpc$ FOO=~/maven
dlr@despot:xml-rpc$ echo $FOO
/home/dlr/maven
dlr@despot:xml-rpc$ FOO="~/maven"
dlr@despot:xml-rpc$ echo $FOO
~/maven

If it's possible for ~ to get into Java-land, it might be worth
performing the transformation s/^~/${user.home}/ in Java code.
-- 

Daniel Rall <[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to