You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ismail Jibrin <im...@yahoo.com> on 2009/09/14 23:49:47 UTC

Build Failed on Vista: File Not Found Error

I am trying to build Tolven projects on Eclipse but got the following error.
BUILD FAILEDc:\tolvendev\tolven\build.xml:173: Basedir c:\tolvendev\tolven\${tolven.home}\tolvenClient does not exist
I know the file c:\tolvendev\tolven\${tolven.home}\tolvenClient exists and there is no free space in the name.
I will appreciate any help. So far this is my second day trying to figure out what's happening without luck.
IMJ

Re: Build Failed on Vista: File Not Found Error

Posted by Stefan Bodewig <bo...@apache.org>.
Ismail,

please keep in mind that I have no idea what the tolven project is nor
what its build file contains.

On 2009-09-15, Ismail <ij...@yahoo.com> wrote:

> --- On Tue, 9/15/09, Stefan Bodewig <bo...@apache.org> wrote:

>> For some reason Ant wants to use a basedir containing a property with a
>> value it doesn't know and thus cannot expand.  Please note that
>> <project>'s basedir attribute is expanded before any task is run, so you
>> cannot refer to any properties except those defined on the command line
>> via -D or -propertfile (or Eclipse's equivalent whatever that is) or
>> system properties.

> Please find below a longer version of my dialogue with Ant:
> C:\>ant -buildfile=c:/tolvendev/tolven/build.xml createPropertiesFiles

>  Buildfile: c:\tolvendev\tolven\build.xml
>  createPropertiesFiles:
>  BUILD SUCCESSFUL Total time: 0 seconds

so it is not the basedir of c:/tolvendev/tolven/build.xml that is
causing problems.

> C:\>ant -buildfile=c:/tolvendev/tolven/build.xml clean-build-run-installer
>  Buildfile: c:\tolvendev\tolven\build.xml clean:
>      [echo] tolven: c:\tolvendev\tolven\build.xml
>  selectComponents:
>  clean-all:
>      [echo] tolven: c:\tolvendev\tolven\build.xml
>  clean:
>      [echo] tolvenInstaller: c:\tolvendev\tolven\installer\build.xml
> tolvenWS-clean:
> BUILD FAILED c:\tolvendev\tolven\build.xml:173: Basedir c:\tolvendev\tolven\${tolven.home}\tolvenClient does not exist
> Total time: 0 seconds

Here I can only guess.  The [echo]s seem to indicate different build
files and my best guess is line 173 of c:\tolvendev\tolven\build.xml
contains a <ant> or <subant> task that is invoking another build file
that references ${tolven.home}.

Furthermore I can only guess that tolven's build system is expecting you
to specify the tolven.home property somewhere somehow.  My next guess is
this is documented somewhere by the person who's written the build file,
please go and read the documentation of said system.

> The tolven.home is C:\TolvenDev\TolvenTolvenClient is at
> C:\TolvenDev\Tolven\TolvenClient.

I'd rather assume the correct value for tolven.home to be C:\TolvenDev,
but that's guesswork.

> Are you suggesting I should replace the basedir attribute in the
> property file to literal path?

Which property file?

> I could try that and see but would prefer a better way as I would be
> changing similar path for many projects in the property file against
> advice by Tolven not to edit that file.

So Tolven will know how and where to correctly set the property - please
take a closer look at Tolven's documentation.

Stefan

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


Re: Build Failed on Vista: File Not Found Error

Posted by Ismail <ij...@yahoo.com>.
--- On Tue, 9/15/09, Stefan Bodewig <bo...@apache.org> wrote:

From: Stefan Bodewig <bo...@apache.org>
Subject: Re: Build Failed on Vista: File Not Found Error
To: user@ant.apache.org
Date: Tuesday, September 15, 2009, 6:18 AM

On 2009-09-14, Ismail Jibrin <im...@yahoo.com> wrote:

> I am trying to build Tolven projects on Eclipse but got the following
> error.

> BUILD FAILEDc:\tolvendev\tolven\build.xml:173: Basedir c:\tolvendev\tolven\${tolven.home}\tolvenClient does not exist

> I know the file c:\tolvendev\tolven\${tolven.home}\tolvenClient exists
> and there is no free space in the name.
>IMJ

>You mean the directory is literally named
>c:\tolvendev\tolven\${tolven.home}\tolvenClient including the $ and the
>{ and } characters?  Or do you mean the directory exists if you mentally
>replace ${tolven.home} with some other value?

>For some reason Ant wants to use a basedir containing a property with a
>value it doesn't know and thus cannot expand.  Please note that
><project>'s basedir attribute is expanded before any task is run, so you
>cannot refer to any properties except those defined on the command line
>via -D or -propertfile (or Eclipse's equivalent whatever that is) or
>system properties.

>Stefan

Stefan,Thanks for the response.Please find below a longer version of my dialogue with Ant:
C:\>ant -buildfile=c:/tolvendev/tolven/build.xml createPropertiesFiles Buildfile: c:\tolvendev\tolven\build.xml createPropertiesFiles: BUILD SUCCESSFUL Total time: 0 seconds
C:\>ant -buildfile=c:/tolvendev/tolven/build.xml clean-build-run-installer Buildfile: c:\tolvendev\tolven\build.xml clean: [echo] tolven: c:\tolvendev\tolven\build.xml selectComponents: clean-all: [echo] tolven: c:\tolvendev\tolven\build.xml clean: [echo] tolvenInstaller: c:\tolvendev\tolven\installer\build.xml tolvenWS-clean: BUILD FAILED c:\tolvendev\tolven\build.xml:173: Basedir c:\tolvendev\tolven\${tolven.home}\tolvenClient does not exist Total time: 0 seconds C:\>---------------------The tolven.home is C:\TolvenDev\TolvenTolvenClient is at C:\TolvenDev\Tolven\TolvenClient. Are you suggesting I should replace the basedir attribute in the property file to literal path? I could try that and see but would prefer a better way as I would be changing similar path for many projects in the property file against advice by Tolven not to edit that file.Thanks,IMJ
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Build Failed on Vista: File Not Found Error

Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-09-14, Ismail Jibrin <im...@yahoo.com> wrote:

> I am trying to build Tolven projects on Eclipse but got the following
> error.

> BUILD FAILEDc:\tolvendev\tolven\build.xml:173: Basedir c:\tolvendev\tolven\${tolven.home}\tolvenClient does not exist

> I know the file c:\tolvendev\tolven\${tolven.home}\tolvenClient exists
> and there is no free space in the name.

You mean the directory is literally named
c:\tolvendev\tolven\${tolven.home}\tolvenClient including the $ and the
{ and } characters?  Or do you mean the directory exists if you mentally
replace ${tolven.home} with some other value?

For some reason Ant wants to use a basedir containing a property with a
value it doesn't know and thus cannot expand.  Please note that
<project>'s basedir attribute is expanded before any task is run, so you
cannot refer to any properties except those defined on the command line
via -D or -propertfile (or Eclipse's equivalent whatever that is) or
system properties.

Stefan

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