ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shailesh Sharma <shailesh_s...@yahoo.com>
Subject Re: AW: ANT environment setup ?
Date Tue, 30 Sep 2003 16:02:02 GMT
ohhhhhhhhh ........
 
i ran ./profile
i ran . ./profile
 
 
and then i did echo $PATH
 
the PATH is NOT set ......what is the problem ???
 


Claudio Corsi <ccorsi@progress.com> wrote:

Do an echo $PATH first to insure that it is part of the PATH.

Then check that your ant script is executable.

Shailesh Sharma wrote:

> i did this too:
> 
> unix-prompt> ant 
> ksh: ant: not found
> 
> 
> the above is that what iam getting.
> 
> 
> Eddie Bernard wrote:
> That's because you used:
> prompt> ./ant
> which implies that you want to run the executable from the current directory
> (i.e. '.')
> 
> What you wanted is:
> prompt> ant
> which will find the ant executable from your defined $PATH
> 
> 
> -----Original Message-----
> From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com]
> Sent: Tuesday, September 30, 2003 6:57 AM
> To: Ant Users List
> Subject: Re: AW: ANT environment setup ?
> 
> 
> I have this directory structure:
> ---------------
> all my jars are here:
> 
> /user/bea/weblogic81/server/lib/ant/ant.jar
> /user/bea/weblogic81/server/lib/ant/jakarta-oro-2.0.4.jar
> /user/bea/weblogic81/server/lib/ant/optional.jar
> 
> -----------------
> 
> 
> ------------------
> my executable ant is here:
> /user/bea/weblogic81/server/bin/ant
> /user/bea/weblogic81/server/bin/antRun
> /user/bea/weblogic81/server/bin/antRun.pl
> 
> ---------------
> 
> 
> Now i need to run ANT from my profile:
> ----------------
> here is where my .profile is:
> /export/home/man7yrd
> 
> and i want to run ant from this place and not from
> /user/bea/weblogic81/server/bin
> 
> ---------------------------
> 
> i have changed my .profile file something like this:
> PATH=/usr/bin:/usr/sbin
> ANT_HOME=/user/bea/weblogic81/server
> export ANT_HOME
> set PATH=$ANT_HOME/bin:$PATH
> export PATH
> 
> -----------------
> 
> then i made this .profile as an executable like this:
> 
> chmod +x .profile
> 
> and then i ran this .profile file like this with no errors:
> 
> ./.profile
> 
> and then when i did this from here:
> 
> unix-box>/export/home/man7yrd
> ./ant
> 
> it says ....../ant: not found
> 
> what is the matter ?
> please help !!!
> 
> 
> 
> 
> Antoine_Levy-Lambert wrote:
> 
> 
> -----Ursprungliche Nachricht-----
> Von: Shailesh Sharma [mailto:shailesh_scea@yahoo.com]
> Gesendet: Dienstag, 30. September 2003 03:04
> An: Ant Users List
> Betreff: ANT environment setup ?
> 
> 
> Hi,
> 
>>Iam working on a UNIX box. I need to setup my ANT environment. Here is
> 
> where my ant's executable is installed at:
> /opt/bea/weblogic81/server/bin
> 
> 
>>Iam assuming this path because when i type "./ant build.xml" from here
> 
> .....it tells me that ANT is OK ........but when i run "./ant build.xml"
> from anywhere else ......it gives me error that ant is not found or
> something.
> 
> 
>>I need to know if i need to run this ./ant command from say,
> 
> /export/home/sxrdfe/applications/./ant build.xml
> 
> Run /opt/bea/weblogic81/server/bin/ant -f build.xml
> 
> actually you do not need to say -f build.xml because build.xml is the
> default for build files
> You might want to put /opt/bea/weblogic81/server/bin in the path
> 
> 
> Another alternative is that you download say ant1.5.4 from ant.apache.org,
> by following the download links.
> 
> Then follow the installation instructions.
> 
> (set ANT_HOME to the directory where you install ant, set PATH to include
> $ANT_HOME/bin, and install under $ANT_HOME/lib the library dependencies that
> you want to use, like for instance netcomponents.jar if you plan to use the
> ftp task, ...)
> 
> Cheers,
> 
> Antoine
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search



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


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message