ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Ant Configuration Problem
Date Thu, 07 Jul 2005 06:10:56 GMT
Hhm "-buildfile" works for me.
Try that out:

* create a directory (I used c:\temp\ant-test)
* write in buildfile there
  <project>
      <echo>${basedir}</echo>
  </project>
* create another directory (I used c:\temp\ant-test\dir)
* copy the buildfile into that dir
* go to your dir (...\ant-test)
* try the default
  C:\TEMP\ant-test>ant
  Buildfile: build.xml
       [echo] C:\TEMP\ant-test
* try the other buildfile
  C:\TEMP\ant-test>ant -buildfile dir\build.xml
  Buildfile: dir\build.xml
       [echo] C:\TEMP\ant-test\dir 
* or absolute
  C:\TEMP\ant-test>ant -buildfile c:\TEMP\ant-test\dir\build.xml
  Buildfile: c:\TEMP\ant-test\dir\build.xml
       [echo] C:\TEMP\ant-test\dir


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Liying Miao [mailto:liying.miao@famu.edu] 
>Gesendet: Mittwoch, 6. Juli 2005 20:17
>An: 'Ant Users List'
>Betreff: RE: Ant Configuration Problem
>
>Hi Rob,
>
>
>I have an absolute path in the environment variable. What you 
>saw is actually written in ant.bat file which is part of the 
>delivered uPortal project.
>
>Thanks,
>Liying
>
>-----Original Message-----
>From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
>Sent: Wednesday, July 06, 2005 1:16 PM
>To: Ant Users List
>Subject: RE: Ant Configuration Problem
>
>I would try setting ANT_HOME to an absolute path, rather than 
>a relative path. Then at least you could cd to the directory 
>that the buildfile is in and run ant.
>
>-Rob A
>
>> -----Original Message-----
>> From: Liying Miao [mailto:liying.miao@famu.edu]
>> Sent: Wednesday, July 06, 2005 8:08 AM
>> To: user@ant.apache.org
>> Subject: 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
>> 
>> 
>> 
>> 
>
>
>---------------------------------------------------------------------
>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
>
>

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


Mime
View raw message