ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Really puzzled
Date Fri, 02 Aug 2002 12:01:44 GMT
Just for the record.... ANT_HOME does not need to be set, as the shell 
(or .bat) scripts set it appropriately relative to the directory where 
the wrapper shell/batch script is.

Anakreon Mejdi wrote:
> ANT_HOME and JAVA_HOME should also be exported.
> In your home directory should exist a file called .bash_profile.
> Open it with a text editor and write
> ANT_HOME=The directory where ant is installed
> JAVA_HOME= The directory where jdk is
> export ANT_HOME JAVA_HOME
> PATH=$ANT_HOME/bin:$PATH
> 
> save the file and type
> source ~/.bash_profile
> 
> Whenever you loggin those enviroment variables will be present
> 
> Bob Hays, Computer Geek wrote:
> 
>> I just looked in my 1.4.1 installation and there is indeed a script called
>> "ant" in the bin directory.  However, you do need to put that 
>> directory onto
>> your PATH just like in Windows, just with a minor change of path separator
>> character (on UNIXen, use colon, not semicolon).
>>
>> So, assuming you're using bash as your shell (most Linuxen seem to 
>> ship that
>> way today), you should do:
>>
>> export PATH=${PATH}:{installation base directory}/bin
>> cd {directory with build.xml file}
>> ant
>>
>> where {installation base directory} is where you installed ant and
>> {directory with build.xml file} is probably self-explanitory:-).
>>
>> If that doesn't work, please drop back which version of ant you're 
>> using and
>> a "deep" directory listing of your installation (you can do
>>
>> ls -r
>>
>> I believe, to get a recursive listing - use
>>
>> man ls
>>
>> to get help with the directory command for linux).
>>
>> Hope that helps.  Have fun! - Bob
>> --
>> Bob Hays                           "Discipline is never an end in
>> 135 S. LaSalle                      itself, only a means to an end."
>> MS 3010                            -- King Crimson
>> Chicago, IL  60602                 "Whoever flees history will be
>> (312) 904-4668 (V)                  pursued by history."
>> (312) 904-0322 (F)                 -- Janusz Korczak
>> electricbob@telocity.com           "Faster! Faster! Until the thrill
>> http://alephnaught.net              of speed overcomes the fear of
>>                                     death."
>> "Nothing great was ever achieved   -- Hunter S. Thompson
>>  without enthusiasm."              "Security is very frequently the
>> -- Ralph Waldo Emerson              commencement of calamity."
>> "A common mistake that people       -- Paterculus
>>  make when trying to design        "Problems cannot be solved at the
>>  something foolproof is to          same level of awareness that
>>  underestimate the ingenuity        created them."
>>  of complete fools."               -- Albert Einstein
>> -- Douglas Adams                   "People will work for money, but
>>                                     they'll give a piece of their
>>                                     lives for meaning."
>>                                    -- Schwab's Dawn Lapore
>>                                    "Creativity is allowing oneself to
>>                                     make mistakes. Art is knowing which
>>                                     ones to keep."
>>                                    -- Scott Adams
>>                                    "The surest way to corrupt a youth
>>                                     is to instruct him to hold in higher
>>                                     regard those who think alike than
>>                                     those who think differently."
>>                                    -- Nietzche
>> -----BEGIN GEEK CODE BLOCK-----
>> Version: 3.1
>> GCS d+(-)@ s+:+ a C++(+++)$ U$ P+$ L@ E+++$ W+++$ N++ !o-- K--? w$ !O
>> M$ V@ PS+ PE !Y+ PGP t !5-- !X !R tv+ b++() DI+ !D- G-- e++ h--- r+++
>> y+++**
>> ------END GEEK CODE BLOCK------
>>
>>
>>
>>> -----Original Message-----
>>> From: Pat [mailto:pat.haszard@clear.net.nz]
>>> Sent: Friday, August 02, 2002 5:13 AM
>>> To: ant-user@jakarta.apache.org
>>> Subject: Really puzzled
>>>
>>>
>>> Hi
>>> I have successfully installed Ant on my Windows machine and used
>>> it to rebuild
>>> some code I have modified (the Grinder), worked great  :)
>>>
>>> Also have now installed Ant on my new Linux (RedHat) machine,
>>> however I am a
>>> Linux newbie and am completely stumped as to how to use it   :(
>>> The documentation quite clearly states that after the
>>> installation it is as
>>> simple as typing   ant   (in a directory that contains a build.xml)
>>> but there is no unix shell script by the name of   ant
>>> there is ant.bat and that works fine on the Windows machine, and
>>> there are
>>> perl and python scripts (runant.pl and runant.py) but as I noted the
>>> documentation is quite explicit,  "type  ant",  and there is no
>>> differentiation based on OS (that I can find), I have even downloaded an
>>> earlier version of ant just in case the shell script had been lost in my
>>> first attempt.
>>>
>>> I am sure there is a very simple answer, but I have read the
>>> documentation
>>> forward, back and sideways.  My apologies for asking basic linux/unix
>>> questions on this list, but this has me really puzzled as to what
>>> I am not
>>> understanding.
>>>
>>> Many thanks,
>>> Pat.
>>>
>>>
>>>
>>> --
>>> To unsubscribe, e-mail:   
>>> <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>> For additional commands, e-mail: 
>>> <mailto:ant-user-help@jakarta.apache.org>
>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> --
>> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 



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


Mime
View raw message