|
From: Joe P. <jpo...@cd...> - 2001-08-13 17:28:48
|
Are you using Windows? If so, be advised that Ant is case sensitive even if
the OS is not.
Immediately after this line
<property environment="env"/>
put these lines (or variations thereof)
<echo message="JAVA HOME: ${env.JAVA_HOME}"/>
<echo message="Java Home: ${env.Java_Home}"/>
On my system (Win NT) I get (running from the command line):
[echo] JAVA HOME: ${env.JAVA_HOME}
[echo] Java Home: E:\jdk1.4
because I've set Java_Home not JAVA_HOME.
I get different results from AntFarm:
JAVA HOME: ${env.JAVA_HOME}
Java Home: ${env.Java_Home}
Hope this helps,
Joe
At 08:57 PM 8/11/01 -0700, you wrote:
>I am getting an error message from AntFarm when I try & compile
>indicating that
>the environment variable JAVA_HOME should be set to point to the jdk.
>JAVA_HOME is set on my system to do that so I gather this should be done
>within
>the ant call. Would someone point me to the way to do this ? The
>property
>documentation of ant didn't help me much. My attempt at solving this is
>below.
>Thanks,
>Charles
>
><property environment="env" />
>
><target name="build" depends="init">
> <mkdir dir="${java.build}"/>
> <javac srcdir="${java.source}" destdir="${java.build}">
> </javac>
></target>
>
>
>
>--
>-----------------------------------------------
>jEdit Users' List
>jEd...@li...
>http://lists.sourceforge.net/lists/listinfo/jedit-users
|