On Thu, Jan 15, 2009 at 5:48 PM, Francis Galiegue <[email protected]> wrote:
> 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.
I'll try it if the problem occurs again, or when I get some more free time.
But it's a good suggestion and it was problably the problem, thanks!