You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Tena Sakai <ts...@gallo.ucsf.edu> on 2007/07/23 18:52:07 UTC

repost: trooubled with ant from source install

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@gallo.ucsf.edu

RE: repost: trooubled with ant from source install

Posted by Tena Sakai <ts...@gallo.ucsf.edu>.
Hi Alexey,

Thanks for your reply.  I would like to dispute what you
mention.  Here's what happens in a bit more detail demarcated
by two lines of plus signs, within which my comments are in
angular brackets.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[tsakai@vixen apache-ant-1.7.0]$ sh build.sh -Ddist.dir=/usr/local/ant dist... Bootstrapping Ant Distribution... Compiling Ant ClassesNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: Some input files use unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.... Copying Required Files... Building Ant DistributionBuildfile: build.xmlbootstrap:prepare:check_for_optional_packages:build:Created dir: /usr/local/ant/apache-ant-1.7.0/build/libCompiling 225 source files to /usr/local/ant/apache-ant-1.7.0/build/classesNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.Copying 4 files to /usr/local/ant/apache-ant-1.7.0/build/classesCopying 2 files to /usr/local/ant/apache-ant-1.7.0/build/classesCopying 2 files to /usr/local/ant/apache-ant-1.7.0/build/classes/org/apache/tools/ant/taskdefs/optional/junit/xsl

jars:
Copying 5 files to /usr/local/ant/apache-ant-1.7.0/build
Copying 1 file to /usr/local/ant/apache-ant-1.7.0/build
Building jar: /usr/local/ant/apache-ant-1.7.0/build/lib/ant-launcher.jar
Building jar: /usr/local/ant/apache-ant-1.7.0/build/lib/ant.jar
Building jar: /usr/local/ant/apache-ant-1.7.0/build/lib/ant-bootstrap.jar
Building jar: /usr/local/ant/apache-ant-1.7.0/build/lib/ant-nodeps.jar
Building jar: /usr/local/ant/apache-ant-1.7.0/build/lib/ant-trax.jar
Warning: skipping jar archive /usr/local/ant/apache-ant-1.7.0/build/lib/ant-apache-resolver.jar because no files were included.
Warning: skipping jar archive /usr/local/ant/apache-ant-1.7.0/build/lib/ant-apache-resolver.jar because no files were included.
Building jar: /usr/local/ant/apache-ant-1.7.0/build/lib/ant-junit.jar
<Note that it says something about junit>
Warning: skipping jar archive /usr/local/ant/apache-ant-1.7.0/build/lib/ant-apache-regexp.jar because no files were included.
Warning: skipping jar archive /usr/local/ant/apache-ant-1.7.0/build/lib/ant-apache-regexp.jar because no files were included.

<Lots of lines like above are omitted.>
<BTW, it's interesting to note that they all appear in pairs of two.>

compile-tests:

test-jar:

BUILD FAILED
/usr/local/ant/apache-ant-1.7.0/build.xml:1105: The following error occurred while executing this line:
/usr/local/ant/apache-ant-1.7.0/build.xml:911: We cannot build the test jar unless JUnit is present,
      as JUnit is needed to compile the test classes.

Total time: 9 seconds
... Failed Building Ant Distribution !
Bootstrap FAILED
[tsakai@vixen apache-ant-1.7.0]$
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

In my very limited understanding, what it's trying to do is to get
ant into a state (this is called bootstrap) so that it can do more
work by invoking that ant.  Alas, I can't get it to bootsrap, it
seems.

Any suggestion, arguments?

Regards,

Tena Sakai
tsakai@gallo.ucsf.edu




-----Original Message-----
From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
Sent: Mon 7/23/2007 10:01 AM
To: Ant Users List
Subject: Re: repost: trooubled with ant from source install
 
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.

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@gallo.ucsf.edu
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)


FINAL CHAPTER: repost: trooubled with ant from source install

Posted by Tena Sakai <ts...@gallo.ucsf.edu>.
Hi

It seems I got through.  To recap, I am building ant 1.7.0 from
source on redhat linux enterprise server (AMD 64).  My destination
$ANT_HOME environmental variable is set as /usr/local/home.  Below's
a successful procedure.  My comments are in parentheses.

  cd /usr/local
  mkdir ant
  cd ant
  (download apache-ant-1.7.0-src.tar.gz in here, decompress, and untar)

  cd apache-ant-a.7.0
  sh build.sh -Ddist.dir=/usr/local/ant dist
  (it fails, but keep going)

  sh bootstrap.sh -f fetch.xml -Ddest=optional all
  (this works, although it says BUILD FAILED; keep going)

  sh build.sh -Ddist.dir=/usr/local/ant dist
  (it reports some problem, but told me BUILD SUCCESSFUL)

  sh build.sh install
  (again some unpleasant reports, but ends with BUILD SUCCESSFUL)

Many thanks for Alexey Solofnenko and Peter Reilly.  Without
excellent assistance from them, I don't think I'd have gotten
through.

Thank you, Alexey!
Thank you, Peter!

Regards,

Tena Sakai
tsakai@gallo.ucsf.edu

-----Original Message-----
From: Tena Sakai [mailto:tsakai@gallo.ucsf.edu]
Sent: Mon 7/23/2007 1:16 PM
To: Ant Users List; Ant Users List
Subject: RE: repost: trooubled with ant from source install
 
Hi Alexey,

I am getting somewhere!  Please stay with me just a bit longer.
I bent your instruction just a bit and typed:

    bootstrap.sh -f fetch.xml -Ddest=optional all

which downloaded some files and built a bunch of targets
as specified by xml target "all".  And it came back with

    BUILD FAILED
    Target "bootstrap" does not exist in the project "fetch".

I have two questions:

(1) It sounds like it is still looking for a target bootstrap.
    Is it safe to ignore this message?

(2) Now that I have built these targets, can I go back to
    the process I was doing before?  Namely, to reissue the
    command:

    sh build.sh -Ddist.dir=/usr/local/ant dist

Regards,

Tena Sakai
tsakai@gallo.ucsf.edu




-----Original Message-----
From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
Sent: Mon 7/23/2007 12:28 PM
To: Ant Users List
Subject: Re: repost: trooubled with ant from source install
 
bootstrap.sh -f fetch.xml all

I also see the error, but fetch.xml is executed normally.

- Alexey.

Tena Sakai wrote:
> Hi Alexey,
>
>   
>> What about "bootstrap.sh -f fetch.xml"?
>>     
>
> I just did that and got:
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> [tsakai@vixen apache-ant-1.7.0]$ bootstrap.sh -f fetch.xml
> ... Bootstrapping Ant Distribution
> ... Compiling Ant Classes
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> ... Copying Required Files
> ... Building Ant Distribution
> Buildfile: fetch.xml
>
> BUILD FAILED
> Target "bootstrap" does not exist in the project "fetch". 
>
> Total time: 0 seconds
> ... Failed Building Ant Distribution !
> [tsakai@vixen apache-ant-1.7.0]$
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
>
> I grep'ed bootstrap in fetch.xml and it doesn't have any.
> I see lots of target tags with different names.  I also
> a warning:
>
>     <!--
>        This is not used as
>        1. we want the names of the libraries to be fixed, or it will
> break  Ant's manifest.
>        2. We like to get the more recent artifacts than are in the repo
> at the time of writing (2006-10-16)
>        3. Xerces has a dependency on v 1.3.03 of Xml-apis, which is
> wrong.
>        If/when the artifacts stabilize, we could switch to it.
>        -->
>
> So my question now is how can I pass the target names to
> the invoked fetch.xml?  And do you know which names the
> warning above is referring to?  There are a bunch of them
> after the warning.
>
> Thank you.
>
>
> Tena Sakai
> tsakai@gallo.ucsf.edu
>
>
> -----Original Message-----
> From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
> Sent: Mon 7/23/2007 11:46 AM
> To: Ant Users List
> Subject: Re: repost: trooubled with ant from source install
>  
> What about "bootstrap.sh -f fetch.xml"?
>
> - Alexey.
>
> Tena Sakai wrote:
>   
>> 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@gallo.ucsf.edu
>>
>>
>>
>> -----Original Message-----
>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>> 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 <ts...@gallo.ucsf.edu> 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@gallo.ucsf.edu
>>>
>>>
>>> -----Original Message-----
>>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>>> 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....@mdl.com> 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@gallo.ucsf.edu
>>>>>
>>>>>
>>>>>         
>>>>>           
>>>> --
>>>>
>>>>       
>>>>         
> ------------------------------------------------------------------------
>   
>>   
>>     
>>>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>>>> Pleasant Hill, CA (GMT-8 usually)
>>>>
>>>>
>>>>       
>>>>         
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>>   
>>     
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)



RE: repost: trooubled with ant from source install

Posted by Tena Sakai <ts...@gallo.ucsf.edu>.
Hi Alexey,

I am getting somewhere!  Please stay with me just a bit longer.
I bent your instruction just a bit and typed:

    bootstrap.sh -f fetch.xml -Ddest=optional all

which downloaded some files and built a bunch of targets
as specified by xml target "all".  And it came back with

    BUILD FAILED
    Target "bootstrap" does not exist in the project "fetch".

I have two questions:

(1) It sounds like it is still looking for a target bootstrap.
    Is it safe to ignore this message?

(2) Now that I have built these targets, can I go back to
    the process I was doing before?  Namely, to reissue the
    command:

    sh build.sh -Ddist.dir=/usr/local/ant dist

Regards,

Tena Sakai
tsakai@gallo.ucsf.edu




-----Original Message-----
From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
Sent: Mon 7/23/2007 12:28 PM
To: Ant Users List
Subject: Re: repost: trooubled with ant from source install
 
bootstrap.sh -f fetch.xml all

I also see the error, but fetch.xml is executed normally.

- Alexey.

Tena Sakai wrote:
> Hi Alexey,
>
>   
>> What about "bootstrap.sh -f fetch.xml"?
>>     
>
> I just did that and got:
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> [tsakai@vixen apache-ant-1.7.0]$ bootstrap.sh -f fetch.xml
> ... Bootstrapping Ant Distribution
> ... Compiling Ant Classes
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> ... Copying Required Files
> ... Building Ant Distribution
> Buildfile: fetch.xml
>
> BUILD FAILED
> Target "bootstrap" does not exist in the project "fetch". 
>
> Total time: 0 seconds
> ... Failed Building Ant Distribution !
> [tsakai@vixen apache-ant-1.7.0]$
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
>
> I grep'ed bootstrap in fetch.xml and it doesn't have any.
> I see lots of target tags with different names.  I also
> a warning:
>
>     <!--
>        This is not used as
>        1. we want the names of the libraries to be fixed, or it will
> break  Ant's manifest.
>        2. We like to get the more recent artifacts than are in the repo
> at the time of writing (2006-10-16)
>        3. Xerces has a dependency on v 1.3.03 of Xml-apis, which is
> wrong.
>        If/when the artifacts stabilize, we could switch to it.
>        -->
>
> So my question now is how can I pass the target names to
> the invoked fetch.xml?  And do you know which names the
> warning above is referring to?  There are a bunch of them
> after the warning.
>
> Thank you.
>
>
> Tena Sakai
> tsakai@gallo.ucsf.edu
>
>
> -----Original Message-----
> From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
> Sent: Mon 7/23/2007 11:46 AM
> To: Ant Users List
> Subject: Re: repost: trooubled with ant from source install
>  
> What about "bootstrap.sh -f fetch.xml"?
>
> - Alexey.
>
> Tena Sakai wrote:
>   
>> 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@gallo.ucsf.edu
>>
>>
>>
>> -----Original Message-----
>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>> 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 <ts...@gallo.ucsf.edu> 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@gallo.ucsf.edu
>>>
>>>
>>> -----Original Message-----
>>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>>> 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....@mdl.com> 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@gallo.ucsf.edu
>>>>>
>>>>>
>>>>>         
>>>>>           
>>>> --
>>>>
>>>>       
>>>>         
> ------------------------------------------------------------------------
>   
>>   
>>     
>>>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>>>> Pleasant Hill, CA (GMT-8 usually)
>>>>
>>>>
>>>>       
>>>>         
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>>   
>>     
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)


Re: repost: trooubled with ant from source install

Posted by Alexey Solofnenko <A....@mdl.com>.
bootstrap.sh -f fetch.xml all

I also see the error, but fetch.xml is executed normally.

- Alexey.

Tena Sakai wrote:
> Hi Alexey,
>
>   
>> What about "bootstrap.sh -f fetch.xml"?
>>     
>
> I just did that and got:
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> [tsakai@vixen apache-ant-1.7.0]$ bootstrap.sh -f fetch.xml
> ... Bootstrapping Ant Distribution
> ... Compiling Ant Classes
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> ... Copying Required Files
> ... Building Ant Distribution
> Buildfile: fetch.xml
>
> BUILD FAILED
> Target "bootstrap" does not exist in the project "fetch". 
>
> Total time: 0 seconds
> ... Failed Building Ant Distribution !
> [tsakai@vixen apache-ant-1.7.0]$
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
>
> I grep'ed bootstrap in fetch.xml and it doesn't have any.
> I see lots of target tags with different names.  I also
> a warning:
>
>     <!--
>        This is not used as
>        1. we want the names of the libraries to be fixed, or it will
> break  Ant's manifest.
>        2. We like to get the more recent artifacts than are in the repo
> at the time of writing (2006-10-16)
>        3. Xerces has a dependency on v 1.3.03 of Xml-apis, which is
> wrong.
>        If/when the artifacts stabilize, we could switch to it.
>        -->
>
> So my question now is how can I pass the target names to
> the invoked fetch.xml?  And do you know which names the
> warning above is referring to?  There are a bunch of them
> after the warning.
>
> Thank you.
>
>
> Tena Sakai
> tsakai@gallo.ucsf.edu
>
>
> -----Original Message-----
> From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
> Sent: Mon 7/23/2007 11:46 AM
> To: Ant Users List
> Subject: Re: repost: trooubled with ant from source install
>  
> What about "bootstrap.sh -f fetch.xml"?
>
> - Alexey.
>
> Tena Sakai wrote:
>   
>> 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@gallo.ucsf.edu
>>
>>
>>
>> -----Original Message-----
>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>> 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 <ts...@gallo.ucsf.edu> 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@gallo.ucsf.edu
>>>
>>>
>>> -----Original Message-----
>>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>>> 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....@mdl.com> 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@gallo.ucsf.edu
>>>>>
>>>>>
>>>>>         
>>>>>           
>>>> --
>>>>
>>>>       
>>>>         
> ------------------------------------------------------------------------
>   
>>   
>>     
>>>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>>>> Pleasant Hill, CA (GMT-8 usually)
>>>>
>>>>
>>>>       
>>>>         
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>>   
>>     
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)

RE: repost: trooubled with ant from source install

Posted by Tena Sakai <ts...@gallo.ucsf.edu>.
Hi Alexey,

> What about "bootstrap.sh -f fetch.xml"?

I just did that and got:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[tsakai@vixen apache-ant-1.7.0]$ bootstrap.sh -f fetch.xml
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
... Copying Required Files
... Building Ant Distribution
Buildfile: fetch.xml

BUILD FAILED
Target "bootstrap" does not exist in the project "fetch". 

Total time: 0 seconds
... Failed Building Ant Distribution !
[tsakai@vixen apache-ant-1.7.0]$
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 

I grep'ed bootstrap in fetch.xml and it doesn't have any.
I see lots of target tags with different names.  I also
a warning:

    <!--
       This is not used as
       1. we want the names of the libraries to be fixed, or it will break  Ant's manifest.
       2. We like to get the more recent artifacts than are in the repo at the time of writing (2006-10-16)
       3. Xerces has a dependency on v 1.3.03 of Xml-apis, which is wrong.
       If/when the artifacts stabilize, we could switch to it.
       -->

So my question now is how can I pass the target names to
the invoked fetch.xml?  And do you know which names the
warning above is referring to?  There are a bunch of them
after the warning.

Thank you.


Tena Sakai
tsakai@gallo.ucsf.edu


-----Original Message-----
From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
Sent: Mon 7/23/2007 11:46 AM
To: Ant Users List
Subject: Re: repost: trooubled with ant from source install
 
What about "bootstrap.sh -f fetch.xml"?

- Alexey.

Tena Sakai wrote:
> 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@gallo.ucsf.edu
>
>
>
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> 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 <ts...@gallo.ucsf.edu> 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@gallo.ucsf.edu
>>
>>
>> -----Original Message-----
>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>> 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....@mdl.com> 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@gallo.ucsf.edu
>>>>
>>>>
>>>>         
>>> --
>>>
>>>       
> ------------------------------------------------------------------------
>   
>>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>>> Pleasant Hill, CA (GMT-8 usually)
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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
>
>
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)


Re: repost: trooubled with ant from source install

Posted by Alexey Solofnenko <A....@mdl.com>.
What about "bootstrap.sh -f fetch.xml"?

- Alexey.

Tena Sakai wrote:
> 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@gallo.ucsf.edu
>
>
>
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> 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 <ts...@gallo.ucsf.edu> 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@gallo.ucsf.edu
>>
>>
>> -----Original Message-----
>> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
>> 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....@mdl.com> 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@gallo.ucsf.edu
>>>>
>>>>
>>>>         
>>> --
>>>
>>>       
> ------------------------------------------------------------------------
>   
>>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>>> Pleasant Hill, CA (GMT-8 usually)
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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
>
>
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)

RE: repost: trooubled with ant from source install

Posted by Tena Sakai <ts...@gallo.ucsf.edu>.
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@gallo.ucsf.edu



-----Original Message-----
From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
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 <ts...@gallo.ucsf.edu> 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@gallo.ucsf.edu
>
>
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> 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....@mdl.com> 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@gallo.ucsf.edu
> > >
> > >
> >
> > --
> > ------------------------------------------------------------------------
> > Alexey N. Solofnenko <http://trelony.cjb.net/>
> > Pleasant Hill, CA (GMT-8 usually)
> >
> >
>
> ---------------------------------------------------------------------
> 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



Re: repost: trooubled with ant from source install

Posted by Peter Reilly <pe...@gmail.com>.
On 7/23/07, Tena Sakai <ts...@gallo.ucsf.edu> 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@gallo.ucsf.edu
>
>
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> 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....@mdl.com> 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@gallo.ucsf.edu
> > >
> > >
> >
> > --
> > ------------------------------------------------------------------------
> > Alexey N. Solofnenko <http://trelony.cjb.net/>
> > Pleasant Hill, CA (GMT-8 usually)
> >
> >
>
> ---------------------------------------------------------------------
> 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


RE: repost: trooubled with ant from source install

Posted by Tena Sakai <ts...@gallo.ucsf.edu>.
Hi Alexey,

I don't have bootstrap directory anywhere under the
distribution tree.  What I have is:

    /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

Care to pick one?

Thank you.

Tena Sakai
tsakai@gallo.ucsf.edu



-----Original Message-----
From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
Sent: Mon 7/23/2007 11:15 AM
To: Ant Users List
Subject: Re: repost: trooubled with ant from source install
 
Run as following: .\bootstrap\bin\ant -f fetch.xml

- Alexey.

Tena Sakai 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.
>
> Tena Sakai
> tsakai@gallo.ucsf.edu
>
>
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> 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....@mdl.com> 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@gallo.ucsf.edu
>>>
>>>
>>>       
>> --
>>
>>     
> ------------------------------------------------------------------------
>   
>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>> Pleasant Hill, CA (GMT-8 usually)
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)


Re: repost: trooubled with ant from source install

Posted by Alexey Solofnenko <A....@mdl.com>.
Run as following: .\bootstrap\bin\ant -f fetch.xml

- Alexey.

Tena Sakai 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.
>
> Tena Sakai
> tsakai@gallo.ucsf.edu
>
>
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> 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....@mdl.com> 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@gallo.ucsf.edu
>>>
>>>
>>>       
>> --
>>
>>     
> ------------------------------------------------------------------------
>   
>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>> Pleasant Hill, CA (GMT-8 usually)
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)

RE: repost: trooubled with ant from source install

Posted by Tena Sakai <ts...@gallo.ucsf.edu>.
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.

Tena Sakai
tsakai@gallo.ucsf.edu


-----Original Message-----
From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
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....@mdl.com> 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@gallo.ucsf.edu
> >
> >
>
> --
> ------------------------------------------------------------------------
> Alexey N. Solofnenko <http://trelony.cjb.net/>
> Pleasant Hill, CA (GMT-8 usually)
>
>

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



Re: repost: trooubled with ant from source install

Posted by Peter Reilly <pe...@gmail.com>.
On 7/23/07, Alexey Solofnenko <A....@mdl.com> 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@gallo.ucsf.edu
> >
> >
>
> --
> ------------------------------------------------------------------------
> Alexey N. Solofnenko <http://trelony.cjb.net/>
> Pleasant Hill, CA (GMT-8 usually)
>
>

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


Re: repost: trooubled with ant from source install

Posted by Alexey Solofnenko <A....@mdl.com>.
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.

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@gallo.ucsf.edu
>
>   

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)