You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chuck Amadi <ch...@breconbeacons.org> on 2001/07/13 11:25:54 UTC

Ant problem - but getting closer any suggestions on snippet

Hi , getting closer i cd to
C:\>cd:\ant
C:\ant>ant
Buildfile: buildfile.xml

Build FAILED

C:\ant\build.xml:19: The file or path you specified
(..\..\..\nbuild\netbeans)
is invalid realative to C:\ant

Total time : 1 second

Getting Closer :^}.


set ANT_HOME=C:\ant
set classpath=%ANT_HOME%\lib\ant.jar
set PATH=%PATH%;%ANT_HOME%\bin
set JAVA_HOME=C:\JDK1.3

Cheers Chuck


--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.



Re: Ant problem - but getting closer any suggestions on snippet

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Hi, I have installed ant and for some unknown reason my set up can't
locate the build.xml file.Firstly i downloaded a good sample build.xml
file and placed it alongside my bin,lib & doc's files to no avail. Thus
i have tried the - find option albeit same response.

Thus i am wondering have i got to place the build.xml file in my
Netbeans dir as apparently the -find option will look for the build.mxl
file in thecurrent directory and thus towards the root dir.

Thus my dos-prompt does not have a build.xml file eventhough there is a
build file in the same folder.

Any Suggestions cheers Chuck

Chuck Amadi wrote:

>    Part 1.1.1    Type: Plain Text (text/plain)
>              Encoding: 8bit
>
>                           Name: buildxml.doc
>    buildxml.doc           Type: Winword File (application/msword)
>                       Encoding: base64
>                Download Status: Not downloaded with message

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.



Re: Ant problem - but getting closer any suggestions on snippet

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Thus any suggestions as im lead to believe from your comments that my build.xml
sample file should actuallly be in my netbeans dir and not ant .As this would make
sence to create or utilise a build.xml file in netbeans , albiet i already had a
build.xml file in my webapps but -find option failed to locate it. Thus i why i
downloaded the sample build.xml and placed in my ant dir . I have sent this to you
vis a at/ment.
1) Store the BuildFile (build.xml in my source file in
Netbeans/J-tomcat/webapps/src/build.xml
2)execute ant from the src dir.
Am i on the right track

Cheers Chuck

Joey Gibson wrote:

> On Fri, 13 Jul 2001 10:25:54 +0100, Chuck Amadi
> <ch...@breconbeacons.org> wrote:
>
> ||| Hi , getting closer i cd to
> ||| C:\>cd:\ant
> ||| C:\ant>ant
> ||| Buildfile: buildfile.xml
> |||
> ||| Build FAILED
> |||
> ||| C:\ant\build.xml:19: The file or path you specified
> ||| (..\..\..\nbuild\netbeans)
> ||| is invalid realative to C:\ant
>
>         I can't really tell without seeing your buildfile, but if you just cd'd
> into C:\Ant that path '..\..\..\nbuild\netbeans' is clearly invalid. '..'
> means 'back one directory'. What you have means 'go back THREE directories,
> then go down into the 'nbuild' directory, then into the 'netbeans'
> directory. If this is coming from C:\Ant, there is no way to go back more
> than one directory.
>
> Joey
>
> -- Sun Certified Java2 Programmer
> -- My Pocket Smalltalk Stuff: www.joeygibson.com/st
> --
> -- "We thought about killin' him, but we kinda
> --  hated to go that far...."

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.


Re: Ant problem - but getting closer any suggestions on snippet

Posted by Joey Gibson <jo...@joeygibson.com>.
On Fri, 13 Jul 2001 10:25:54 +0100, Chuck Amadi
<ch...@breconbeacons.org> wrote:

||| Hi , getting closer i cd to
||| C:\>cd:\ant
||| C:\ant>ant
||| Buildfile: buildfile.xml
||| 
||| Build FAILED
||| 
||| C:\ant\build.xml:19: The file or path you specified
||| (..\..\..\nbuild\netbeans)
||| is invalid realative to C:\ant

	I can't really tell without seeing your buildfile, but if you just cd'd
into C:\Ant that path '..\..\..\nbuild\netbeans' is clearly invalid. '..'
means 'back one directory'. What you have means 'go back THREE directories,
then go down into the 'nbuild' directory, then into the 'netbeans'
directory. If this is coming from C:\Ant, there is no way to go back more
than one directory.

Joey

-- Sun Certified Java2 Programmer
-- My Pocket Smalltalk Stuff: www.joeygibson.com/st
--
-- "We thought about killin' him, but we kinda 
--  hated to go that far...."