ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Francis <brett.fran...@mediagate.com>
Subject Random Classes not being Compiled
Date Fri, 04 Aug 2000 02:28:40 GMT
O.K. Here's a strange one...

We've been struggling with this for a while now and have lost hope of
resolving it ourselves. When we compile using Ant with the following
target not all of the classes that should be created using the
-sourcepath option to javac are actually getting compiled.

When we do the same compilation from the command line the -sourcepath
option works fine and the appropriate classes are built.

What's even stranger is that when running the *same build.xml* file
using Ant on different machines.. different classes in the -sourcepath
are being missed.

Here's our target:
-----------------------
    <target name="accessor" depends="prepare">

        <echo message="### Building Accessors..."/>
        <!-- cleaning any old class files -->
        <deltree dir="${accessor.build}/com"/>
        <deltree dir="${accessor.build}/net"/>

        <!-- cleaning old jars -->
        <delete file="${accessor-dl.build}/accessor-dl.jar"/>
        <delete file="${accessor.build}/accessor.jar"/>
        <delete file="${accessor.build}/tools.jar"/>

        <javac srcdir="${source}"
            destdir="${accessor.build}"
            classpath="${accessor.classpath}"
            includes="com/mediagate/adapter/**,com/mediagate/tools/**"
            debug="on"/>

        <rmic stubversion="1.2"
classname="net.jini.lookup.ServiceDiscoveryManager.LookupCacheImpl.LookupListener"

            base="${accessor.build}"/>

        <!-- Build Accessor JAR file -->
        <jar jarfile="${accessor.build}/accessor.jar"
            basedir="${accessor.build}"
            includes="com/**,net/**"
            excludes="com/mediagate/tools/**"/>

        <!-- Build Tools JAR file -->
        <jar jarfile="${accessor.build}/tools.jar"
            basedir="${accessor.build}"
            includes="com/mediagate/tools/**" />

    </target>
-----------------------
...all the variables are resolving fine.

But classes that should be compiled into the "destdir" of the javac
command are not actually showing up. The target "prepare" that this
target depends upon simply creates the directories that will receive the
created classes and jars.
_________________________________________
|> Brett Francis
|> mediagate, inc.
|> mailto:brett@mediagate.com



Mime
View raw message