On Mon, May 09, 2005, Michael Schloh wrote:

> On Sun, May 08, 2005, Matthias KURZ wrote:
> > Some packages are expecting the ant jars under $ANT_HOME/lib and not
> > elsewhere. And they are also not looking for $ANT_LIB. That the jars can
> > be found under $ANT_HOME/lib is also described in the ant manual.
> > I changed the packaging of ant in this regard and i also included the docs.
> >
> Thanks for your changes, most of which are integrated into today's ant
> package:
> 
>   ftp://ftp.openpkg.org/current/SRC/ant-1.6.3-20050509.src.rpm
> 
> To build:
> 
>   $ openpkg rpm --rebuild --define 'with_docs yes' \
>       ftp://ftp.openpkg.org/current/SRC/ant-1.6.3-20050509.src.rpm
> 
> I left the ant jars in libexec, to match the package structure of the other
> Java (j2se and j2ee) packages. I made the docs a conditional option for the

I understand this for the j2se package, because there are really platform
dependent files. I do not understand this for platform independent bytecode
stuff. But then, i'm not going to share this stuff, anyway. So, no problem.
ANT_HOME=$prefix/libexec/ant and a subdirectory lib in $prefix/libexec/ant
looks ugly, but no problem :). I'm still waiting for someone looking for
$(ANT_HOME)/etc/*xsl. But it's not packaged, anyway, until now.

> same reason. Marking files with %docdir is going to be a one shot operation
> across all packages that include documentation.

I'll write a separate mail regarding documentation this afternoon. But one
word to the installation. I used the tar|tar thing, because i was not sure
that all supported platforms support a mv across filesystem boundaries. I'd
be much happier if i could do this. All platforms i use are supporting the
mv across filesystem boundaries.

> Looking at the %{l_prefix}/bin/ant program (as delivered by apache):
> 
>   # set ANT_LIB location
>   ANT_LIB="${ANT_HOME}/lib"
> 
> ...it seems that the ant launcher jar expects ANT_LIB to point to the jar
> lib directory and ANT_HOME to point to the parent ant directory.

Well, that's a matter of interpretation. I'd say the launcher expects the
jars in $(ANT_HOME)/lib. 

>                                                                  This is
> documented as well in the vendor WHATSNEW and welcome.html files.

I cannot find ANT_LIB in WHATSNEW or welcome.html. But look for ANT_HOME.
I also cannot find ANT_LIB in the docs (grep -r ANT_LIB $prefix/share/ant).
But watch this: http://ant.apache.org/manual/running.html#libs

>                                                                   If you
> have some negative experience with this, it would be useful to know the
> details. Maybe some third party software is not using these variables
> correctly, or another defacto standard is beginning to form?

In fact quite a few packages built with the ant package in the old form.
But i guess, they all just used the laucher that was modified to match
the OpenPKG packaging. They did not really look at the jars. The netbeans
package does this. Or it did this - i did not check with the latest version
and i do not have time, currently. I also found $(ANT_HOME)/lib quite a
few times, those days, when i googled for it.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to