Le Thursday 15 January 2009 17:25:26 Kent Larsson, vous avez écrit :
> Hi, I have a build.xml for my Ant build script and a build.properties file
> for easier configuration.
>
> $ ls build.*
> -rw-r--r-- 1 tnek tnek 29 2009-01-15 17:01 build.properties
> -rw-r--r-- 1 tnek tnek 270 2009-01-15 17:05 build.xml
>
> They are short and easy to understand:
>
> $ cat build.properties
> # Some comment
> hello=jejejej
> $ cat build.xml
> <?xml version="1.0"?>
> <project xmlns:ivy="antlib:org.apache.ivy.ant" name="testproject">
> <property environment="env"/>
> <property file="build.properties"/>
> <echo message="hello = ${hello} and env.CATALINA_HOME =
> ${env.CATALINA_HOME} and path = ${env.PATH}"/>
> </project>
>
> The environment variable CATALINA_HOME is defined:
>
> $ echo $CATALINA_HOME
> /var/lib/tomcat5.5
>
Do you export this variable from your source shell?
Try:
sh
echo $CATALINA_HOME
And then exit the forked shell (with exit or C-d)
If the echo command returns nothing, then you've found the reason: the
CATALINA_HOME variable is not exported.
--
Francis Galiegue
[email protected]
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
One2team
40 avenue Raymond Poincaré
75116 Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]