ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject javac task
Date Thu, 28 Nov 2002 08:58:07 GMT

One thing I would like to know is the way the files to be compiled are
Take the following src directory structure:

src -+
         +- org -+
                       +- foo -+-

Now if the file has the package name:
and has no package name, then:
after the compilation, we'll have in a build directory:

build -+ Foo2.class
            +- org -+
                          +- foo -+- Foo.class

Now, if I re run ant (same task), I'll get the Foo2.class compiled,
why? Can't the javac task manage a package check to perform
best file-set-compilation-dependencies?

Here is the command window output:

C:\Foo>ant -version
Apache Ant version 1.5.1 compiled on October 2 2002
Buildfile: build.xml

    [mkdir] Created dir: C:\Foo\build
    [javac] Compiling 2 source files to C:\Foo\build
    [javac] C:\Foo\src\org\foo\
    [javac] C:\Foo\src\org\foo\

Total time: 3 seconds
Buildfile: build.xml

    [javac] Compiling 1 source file to C:\Foo\build
    [javac] C:\Foo\src\org\foo\

Total time: 3 seconds

and the archive contains all the files.

(See attached file:


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 


Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

View raw message