You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Liying Miao <li...@famu.edu> on 2005/07/06 17:07:37 UTC

Ant Configuration Problem

Hi All,


I have a problem with running ant 1.6.2. I have set ANT_HOME in path.

Here is the problem:

When I type Ant, it works:
-------------------------------------------------------------------
C:\UPORTAL>ant

C:\UPORTAL>set ANT_HOME=./Ant_1-6-2

C:\UPORTAL>./Ant_1-6-2/bin/ant.bat
Buildfile: build.xml

help:
     [echo] Please read the README file which explains how to operate this
uPort
al quick-start package
     [echo] To see the possible ant targets, type 'ant -projecthelp'

BUILD SUCCESSFUL
Total time: 0 seconds
-------------------------------------------------------------------
However, when I type ant -buildfile HyperContent1_4\build.xml, it doesn't
read build.xml in another directory.
--------------------------------------------------------------------
C:\UPORTAL>./Ant_1-6-2/bin/ant.bat -buildfile
You must specify a buildfile when using the -buildfile argument
-------------------------------------------------------------------------
Then when I tried directly:
C:\UPORTAL>./ant_1-6-2/bin/ant.bat -buildfile HyperContent1_4\build.xml

I get error message '.' is not recognized as an internal or external
command, operable program or batch file.

My path:
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
Files\Co
mmon Files\OpSession\Shared;C:\Program Files\Common Files\OpSession\Viewer
Share
d;C:\Program Files\Common Files\Adaptec
Shared\System;C:\PROGRA~1\IBM\SQLLIB\BIN
;C:\PROGRA~1\IBM\SQLLIB\FUNCTION; C:\Program
Files\Java\jdk1.5.0_02\bin;C:\Progr
am Files\MySQL\MySQL Server 4.1\bin;C:\UPORTAL\Ant_1-6-2\\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

Please help! I couldn't figure it out!!!

Liying Miao
ERP/IT 
Florida A&M University 




RE: Ant Configuration Problem

Posted by Liying Miao <li...@famu.edu>.
Hi Jurgen,

You were right, this error goes away by being changed to "/". I just don't
understand why it works in all the other uPortal ant builds. Shall I change
it in ant.bat or some other file so that it's universal? Ignore if uPortal
doesn't sound familiar to you.

Thanks very much.
Liying  

-----Original Message-----
From: jh@web.de [mailto:jh@web.de] 
Sent: Wednesday, July 06, 2005 1:53 PM
To: Liying Miao; user@ant.apache.org
Subject: Re: Ant Configuration Problem

On Wed, 6 Jul 2005 11:07:37 -0400, Liying Miao wrote:

>C:\UPORTAL>set ANT_HOME=./Ant_1-6-2

Try backslashes, and a FULL path, not a relative one.


Ciao, Jürgen



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


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


Re: Ant Configuration Problem

Posted by Juergen Hermann <jh...@web.de>.
On Wed, 6 Jul 2005 11:07:37 -0400, Liying Miao wrote:

>C:\UPORTAL>set ANT_HOME=./Ant_1-6-2

Try backslashes, and a FULL path, not a relative one.


Ciao, Jürgen



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