Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 21271 invoked from network); 2 Aug 2002 12:02:16 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Aug 2002 12:02:16 -0000 Received: (qmail 15645 invoked by uid 97); 2 Aug 2002 12:02:10 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 15501 invoked by uid 97); 2 Aug 2002 12:02:09 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 15430 invoked by uid 98); 2 Aug 2002 12:02:08 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Sent: 2 Aug 2002 12:01:44 GMT Message-ID: <3D4A74A8.2000801@ehatchersolutions.com> Date: Fri, 02 Aug 2002 08:01:44 -0400 From: Erik Hatcher User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Really puzzled References: <3D4A6452.7040905@ertonline.gr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: >>> >>> For additional commands, e-mail: >>> >>> >>> >> >> >> >> ------------------------------------------------------------------------ >> >> -- >> To unsubscribe, e-mail: >> For additional commands, e-mail: >> > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: