ant script annoyances

Ernst de Haan ernst.dehaan at nl.wanadoo.com
Wed Sep 10 00:13:34 PDT 2003


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.



More information about the freebsd-java mailing list