Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
repost: trooubled with ant from source install

repost: trooubled with ant from source install

2007-07-23       - By Tena Sakai
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hi Peter,

I don't have ANT_SRC set.  I supposed it is in
$ANT_HOME/src, but I issued a command:

   find /usr/local/ant/apache-ant-1.7.0 -name ant

and it came back with:

   /usr/local/ant/apache-ant-1.7.0/src/etc/poms/ant
   /usr/local/ant/apache-ant-1.7.0/src/etc/testcases/taskdefs/ant
   /usr/local/ant/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant
   /usr/local/ant/apache-ant-1.7.0/src/script/ant
   /usr/local/ant/apache-ant-1.7.0/src/main/org/apache/tools/ant
   /usr/local/ant/apache-ant-1.7.0/src/resources/org/apache/tools/ant
   /usr/local/ant/apache-ant-1.7.0/build/classes/org/apache/tools/ant

Do you have any idea which one I should use?

Thank you.

Tena Sakai
tsakai@(protected)



-----Original Message-----
From: Peter Reilly [mailto:peter.kitt.reilly@(protected)]
Sent: Mon 7/23/2007 11:10 AM
To: Ant Users List
Subject: Re: repost: trooubled with ant from source install

On 7/23/07, Tena Sakai <tsakai@(protected)> wrote:
> Hi Peter,
>
> I like what you mention.  I located and looked at the
> file fetch.xml.  I would like to pursue this avenue.
> But I am clueless as to how I can "invoke" this xml
> file.  Would you please tell me how I can do so?
> Thank you.

use ant.
cd $ANT_SRC
ant -f fetch.xml -Ddest=optional

Peter

>
> Tena Sakai
> tsakai@(protected)
>
>
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@(protected)]
> Sent: Mon 7/23/2007 10:14 AM
> To: Ant Users List
> Subject: Re: repost: trooubled with ant from source install
>
> On 7/23/07, Alexey Solofnenko <A.Solofnenko@(protected)> wrote:
> > I do not think you need to download any jars, if you are building ANT
> > for yourself - you have to have all necessary jars already to run ANT.
>
> This is not quite correct.
> The optional tasks/types need jars to be downloaded and
> placed in $ANT_SRC/lib/optional.
>
> I normally compile a subset of ant for testing.
>
> To compile all of ant, one needs non publiclly available
> jars (weblogic, starteam and others).
>
> The file fetch.xml gets most of the
> publically available jars and places then
> in the currect place (depending on how fetch.xml is called
> - check the fetch.xml file for a read me).
>
> Peter
>
>
> >
> > I have an automated script to build ANT. First, the script empties
> > CLASSPATH,  sets JAVA_HOME and PATH. Then copies all necessary jars into
> > $ANT_DIR/lib/optional folder, deletes $ANT_DIR/bootstrap, and runs
> > "call build.bat distribution".
> >
> > There can be additional steps to make ANT to forget about any previously
> > installed ANT on your system.
> >
> > - Alexey.
> >
> > Tena Sakai wrote:
> > > Hi,
> > >
> > > Sorry to repost, but I haven't got much response...
> > >
> > > I am having a problem with installing ant 1.7.0 from source
> > > on redhat enterprise server (amd-64).
> > >
> > > What happens is that when I issue a command:
> > >
> > >   sh build.sh -Ddist.dir=/usr/local/ant dist
> > >
> > > it complains that a bunch of jar files were not built because no
> > > files were included.  For example:
> > >
> > >   /usr/local/ant/apache-ant-1.7.0/build/lib/ant-apache-regexp.jar
> > >
> > > According to the instruction on website:
> > >
> > >   Make sure you have downloaded any auxiliary jars required to
> > >   build tasks you are interested in. These should be added to
> > >   the lib/optional directory of the source tree.
> > >
> > > I went and got jakarta-regexp-1.5.tar.gz, gunzip'ed, untar'ed
> > > and found a file jakarta-regexp.jar (as well as jakarta-regexp-1.5.jar,
> > > which turns out to be the same as the other), and copied it into
> > > ...src/lib/optional directory (which didn't exist; so I created
> > > it).  I tried with 'sh build.sh bla bla' once again, but the
> > > result is the same as before, it seems.  I have tried to put
> > > the jar file into a different lib/optional directories, but the
> > > result seems the same through out.  I am at wit's end as to
> > > how to interpret this instruction (one more time):
> > >
> > >   Make sure you have downloaded any auxiliary jars required to
> > >   build tasks you are interested in. These should be added to
> > >   the lib/optional directory of the source tree.
> > >
> > > I am starting to feel it is a mistake to follow the instruction
> > > above to letters.  Maybe, instead, I need to provide java source
> > > files and the build process will make jar files out of the source
> > > code and put them into a destination?  Is there somebody out there
> > > (I am sure the answer is yes) who have done this and willing to
> > > give me a hand, please?  I would greatly appreciate it.
> > >
> > > Thank you in advance.
> > >
> > >
> > > Tena Sakai
> > > tsakai@(protected)
> > >
> > >
> >
> > --
> > ------------------------------------------------------------------------
> > Alexey N. Solofnenko <http://trelony.cjb.net/>
> > Pleasant Hill, CA (GMT-8 usually)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.