Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2003 09:13:34 +0200
From:      Ernst de Haan <ernst.dehaan@nl.wanadoo.com>
To:        Jonathan Chen <jonc@chen.org.nz>, freebsd-java@freebsd.org
Subject:   Re: ant script annoyances
Message-ID:  <200309100913.34213.ernst.dehaan@nl.wanadoo.com>
In-Reply-To: <20030909215210.GA5404@grimoire.chen.org.nz>
References:  <20030909215210.GA5404@grimoire.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
Although I do see the usefulness of the current behaviour of the 'ant' 
script, I also recognize the need for different behaviour in some cases.

The fastest and easiest short-term solution for this is to add an 
environment variable that will make the 'ant' script behave as you would 
like it to.

Ernst

On dinsdag 9 september 2003 23:52, Jonathan Chen wrote:
> Hi,
>
> I'd like to make a plea to remove the following bits from the "ant"
> script of the port:
>
>     # FreeBSD-specific: Add the .jar files from
> ${PREFIX}/share/java/classes for JAR_FILE in
> "/usr/local/share/java/classes"/*.jar; do
>
>         # If the directory is empty, then the input string is returned
>         if [ -f "${JAR_FILE}" ]; then
>             if [ -z "${LOCALCLASSPATH}" ]; then
>                 LOCALCLASSPATH="${JAR_FILE}"
>             else
>                 LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}"
>             fi
>         fi
>     done
>
> I can't see the rationale for the addition of the jar files; any
> decent project that reference the common jar files would make a copy
> of it in the project's supplementary lib directory for maximum
> portability. The adverse effects of adding this are:
>
>     1. it pollutes the environment.
>     2. build.xml files fails in subtle ways on FreeBSD compared
>        to other Java platforms (eg: xdoclet task definition
>        with classpathref). This means I can't just move project from
>        other systems to FreeBSD simply, and vice versa.
>
> Cheers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309100913.34213.ernst.dehaan>