ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Roe" <>
Subject Classpath issue....I think...
Date Wed, 27 Jun 2001 21:32:54 GMT

I am getting several errors upon compiling my source tree and I believe that
it's a classpath issue. My project compiles fine when I use Kawa but when I
try to compile the same source through my build file it squawks at me. I
have only been working with Ant to create a build file in very short fits
and starts over the past couple of weeks, so I am a total newbie. Below are
the salient bits of my build.xml file. I know (rhetorically speaking) that
it has something to do with my understanding of setting my classpath. The
classpath is also set properly in my environment. Is it correct that Ant
passes the classpath assembled in the build file to the compiler essentially
bypassing the one set in the environment? 

Thank you,

<project name="app" default="notarget" >

  <property name="bin"  value="d:/App/gaming/bin"/>
  <property name="path.bin.lib"  value="d:/App/gaming/bin/game/lib"/>
  <property name="gaming"  value="d:/App/gaming"/>

  <property name="src" value="d:/App/gaming/src"/>
  <property name="build.compiler" value="jikes"/>

<!-- =================================================================== -->
<!-- Set up project classpath                                            -->
<!-- =================================================================== -->
  <path id="project.class.path">
    <pathelement location="java" />
    <fileset dir="${path.bin.lib}">
      <include name="*.jar" />
    <pathelement location="${gaming}/bin/game"/>
    <pathelement location="d:/JRun/lib/servlet.jar"/>
    <pathelement location="${gaming}/src"/>
    <pathelement path="${java.class.path}/"/>

<!-- =================================================================== -->
<!-- Compile targets.                                                    -->
<!-- =================================================================== -->
    <target name="init">
      <echo message="In init before compiling..."/>
      <property name="dist.src" value="d:/App/gaming/src"/>
      <property name="" value="d:/buildtemp"/>

    <target name="compilecom" depends="init">
      <echo message="Compiling *com*..."/>
      <javac destdir="${}" debug="on" verbose="on">
        <src path="${dist.src}/com"/>
        <classpath refid="project.class.path" />
        <include name="**"/>
        <exclude name="**/build"/>



View raw message