ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: javac and fileset
Date Fri, 05 Apr 2002 20:20:13 GMT
I think you are confusing paths and filesets. Try simply:

    <target name="build">
        <javac srcdir="${source.home}"
               destdir="${output.home}">
            <classpath refid="compile.classpath" />
            <exclude name="com/mv/util/BackingStore.java" />
        </javac>
    </target>

--DD

-----Original Message-----
From: Paul Erion [mailto:p_erion@yahoo.com] 
Sent: Friday, April 05, 2002 1:53 PM
To: ant-user@jakarta.apache.org
Subject: javac and fileset

Is it possible to use a file set (referenced via an id) to specify the
files to be compiled by javac?  The following is what I have ...

    <path id="compile.source">
        <fileset dir="${source.home}">
            <include name="**/*.java" />
            <exclude name="com.mv.util.BackingStore.java" />
        </fileset>
    </path>


    <target name="build">
        <javac  destdir="${output.home}">
            <classpath refid="compile.classpath" />
            <src refid="compile.source" />
        </javac>
    </target>

and the error I get is (with some of my directory structure stripped
out)...

    c:\Projects\Foo\build.xml:86: C:\Projects\src\bar.java is not a
directory.

I'm using Ant 1.4.1 and JDK 1.3.1_02 on WinXP Pro

Any help would be greatly appreciated.

:Paul

p.s., Searching the archives I came across a post by T Master (August
22, 2001) claiming to be doing just what I want, and the sample code
provided is almost exactly what I'm using ... hopefully this means I'm
just being brain dead in some fashion.


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message