Thanks for the hint, however, tools.jar is not in JRE dir :-(  Is there a
jdk.home variable?

    137 maven.jar.abbot= ${lib_path}/abbot.jar
    138 maven.jar.tools= ${java.home}/lib/tools.jar

 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2


The build cannot continue because of the following unsatisfied dependency:

tools-.jar; path override doesn't exist:
/a/develop/unix/products/opt/jdk1.5.0_05/jre/lib/tools.jar

Total time: 7 seconds
Finished at: Fri Mar 03 16:38:02 EST 2006



~andrew
x2316 
-----Original Message-----
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 4:10 PM
To: Maven Users List
Subject: Re: How to get environment variable in maven build property file?

If you want to get the java home you can use the system property ${java.home
}

Arnaud

On 3/3/06, Chen, Andrew . <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I use classes from ${JAVA_HOME}/lib/tools.jar .
>
> import com.sun.jdi.Bootstrap;
>
> How do I get enviroment variable such as ${JAVA_HOME} into the 
> property file?
>
> This line doesn't work:
> maven.jar.xerbla= ${JAVA_HOME}/lib/tools.jar
>
> Here is the error:
>     [javac] Compiling 1 source file to 
> /a/develop/unix/products/prj/foxfire/foxfire/target/classes
>
>
/a/develop/unix/products/prj/foxfire/foxfire/source/java/src/Tracer.java:10:
> package com.sun.jdi does not exist
>
> I'm using Maven 1.0.
>
> One way I can think of is to copy the tools.jar into my project lib 
> directory.  But I think there got to be a better way doing that.
>
> Thanks
> --
> Andrew Chen
> Engineering Computing
> Nuclear Fuel
> Westinghouse Electric Company
> 1-412-374-2316
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to