Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2003 09:52:10 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        freebsd-java@freebsd.org
Subject:   ant script annoyances
Message-ID:  <20030909215210.GA5404@grimoire.chen.org.nz>

next in thread | raw e-mail | index | archive | help

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.
-- 
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
                         Power corrupts, Absolute Power is pretty neat



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