ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Oatham" <matthewoat...@hotmail.com>
Subject Re: Javac oddities
Date Thu, 20 Feb 2003 12:43:22 GMT
Yes this is how I have defined the task

<project name="testCompile" default="compile" basedir=".">
    <target name="compile">
        <javac srcdir="C:\WorkArea\5_14\Code\com"
               destdir="C:\WorkArea\5_14\Build\classesTest"
               depend="true">
            <classpath>
                <pathelement path="${classpath}"/>
                    <fileset dir="C:\WorkArea\5_14\Build\Lib">
                        <include name="**/*.jar"/>
                    </fileset>
            </classpath>
        </javac>
    </target>
</project>

As an aside I see that depend will only work with compilers that support
this. Although when I set the compiler to classic I get other problems!

Regards.


----- Original Message -----
From: "Pellier, Marc" <Marc.Pellier@atosorigin.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Thursday, February 20, 2003 12:24 PM
Subject: RE: Javac oddities


do you set the attribut depend="true" of javac

-----Original Message-----
From: Matthew Oatham [mailto:matthewoatham@hotmail.com]
Sent: jeudi 20 février 2003 13:24
To: user@ant.apache.org
Subject: Javac oddities


Hi,

When running the javac task everything works fine, however when running the
project a second time with the -debug option I can see that the source is
being re-compiled, well I get msgs like ...

[javac] MLWriter.java added as
C:\WorkArea\5_14\Build\classesTest\XMLWriter.class doesn't exist.

But XMLWriter.class does exists, I can see it in the directory from the
first time the javac task was run. I thought the behaviour of the javac task
was only to compile if the source didn't hava a class file or the source was
newer than the class?

Any thoughts?

Regards.

Matthew


****************************************************************************
Disclaimer:
This electronic transmission and any files attached to it are strictly
confidential and intended solely for the addressee. If you are not
the intended addressee, you must not disclose, copy or take any
action in reliance of this transmission. If you have received this
transmission in error, please notify the sender by return and delete
the transmission.  Although the sender endeavors to maintain a
computer virus free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages
resulting from any virus transmitted.
Thank You.
****************************************************************************


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


Mime
View raw message