ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Close" <acl...@gmail.com>
Subject Re: Issues with ANT 1.7 and Linux???
Date Fri, 16 Feb 2007 13:29:08 GMT
On 2/15/07, Antoine Levy-Lambert <antoine@gmx.de> wrote:
>  From your log file, may be your property file should be loaded from
>
> > /home/scm/CC_Build/projects/RSA/build.properties
>
> not from
>
> > /home/scm/CC_BUILD/projects/RSA/build.properties
>
> Best regards,

Antoine,

thanks for your reply.  the path to the build.properties file is a
property in the build file itself.  so when the build is kicked off, a
property is set with a value from an environment variable.  this
property is used as the path to the build.properties and several other
files.  this strategy works fine on our windows development
environment.
so at the top of all the build scripts i have the following:

	<property environment="env" />
	<property name="dev.root" value="${env.DEV_ROOT}" />
	<property file="${dev.root}/build.properties" />

on my windows machine, DEV_ROOT is set as 'C:\Development\RSA'.  on
our Linux build machine, DEV_ROOT is set as
'/home/scm/CC_Build/projects/RSA'.  and of course the build.properties
file is then located in the RSA directory.  this allows all the
sub-projects under RSA to be able to use the same build.properties
file for global settings.

the problem i'm seeing is that on the Linux build machine the
${dev.root} property is being translated, but for some reason ANT is
unable to find the file at that location, even though the file 'is'
there and is world readable.
so when i run ANT in debug mode i see the following:

[property] Loading /home/scm/CC_BUILD/projects/RSA/build.properties
[property] Unable to find property file:
/home/scm/CC_BUILD/projects/RSA/build.properties

obviously ANT was able to translate the ${dev.root} property correctly
because the fully qualified path shows up in the output.  but for some
reason it is unable to find the file...

andy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message