ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Downing" <>
Subject javac Classpath
Date Thu, 12 Apr 2001 17:44:39 GMT
Apologies for being stupid here - I'm trying to get a javac task to have  a
classpath that points to a jar file that isn't in the build base directory.
The location of the jar is in a path specified by
an environment variable.  Is it possible to get a fileset to point to this
environment specified
My build.xml:
<project name="dbAccessTest" default="compile">
  <property name="src" value="src"/>
  <property name="build" value="build"/>
  <property environment="env"/>
  <property name="j2ee_home" value="${env.J2EE_HOME}"/>
  <property name="java_home" value="${env.JAVA_HOME}"/>

  <target name="init">
    <delete dir="${build}"/>
    <mkdir dir="${build}"/>
    <mkdir dir="${build}/lib"/>
    <mkdir dir="${build}/classes"/>
  </target>   <target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${build}/classes"
      <classpath path="${j2ee_home}">
        <fileset dir="lib">
          <include name="j2ee.jar"/>

View raw message