From f7cf153214016d459c2de0df7413decfdd55ee60 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig With Ant >= 1.5, you can also use nested
+ <compilerarg>
elements with the
+ <javac>
task.
By default the parser assumes you are using the UTF-8
- encoding instead of your platform's default. For most western
- european contries you should set the encoding to
+ encoding instead of your platform's default. For most Western
+ European countries you should set the encoding to
ISO-8859-1
. To do so, make the very first line
of you build file read like
CLASSPATH
as well.
To solve this, you have two major options:
CLASSPATH
as well this is not what you want,
otherwise you wouldn't have found this FAQ entry.<depend>
task
for dependency checking based on other than just
-existence/modification times.
+existence/modification times.
When the source files are part of a package, the directory structure of the source tree should follow the package hierarchy.
@@ -47,7 +47,7 @@ setting thecompiler
attribute, specific to the current
<javac>
task.
Valid values for either the
build.compiler
property or the compiler
-attribute are:
+attribute are:
classic
(the standard compiler of JDK 1.1/1.2) –
javac1.1
and
@@ -56,7 +56,7 @@ attribute are:
javac1.3
and
javac1.4
can be used as aliases.jikes
(the Jikes
+ href="http://oss.software.ibm.com/developerworks/opensource/jikes/" target="_top">Jikes
compiler).jvc
(the Command-Line Compiler from Microsoft's SDK
for Java / Visual J++) – microsoft
can be used
@@ -69,7 +69,6 @@ attribute are:
extJavac
(run either modern or classic in a JVM of
its own).The default is javac1.x
with x
depending
on the JDK version you use while you are running Ant.
If you wish to use a different compiler interface than those
@@ -98,7 +97,6 @@ classpath of the <javac>
task, and does not release them.
The side effect of this is that you will not be able to delete or move
those files later on in the build. The workaround is to fork when
invoking the compiler.
srcdir | Location of the java files. (See the - Note below.) | + note below.)Yes, unless nested <src> elements are present. |
Copyright © 2000-2002 Apache Software Foundation. diff --git a/xdocs/faq.xml b/xdocs/faq.xml index 980b53009..bc0888117 100644 --- a/xdocs/faq.xml +++ b/xdocs/faq.xml @@ -270,6 +270,10 @@ +
With Ant >= 1.5, you can also use nested
+ <compilerarg>
elements with the
+ <javac>
task.
By default the parser assumes you are using the UTF-8
- encoding instead of your platform's default. For most western
- european contries you should set the encoding to
+ encoding instead of your platform's default. For most Western
+ European countries you should set the encoding to
ISO-8859-1
. To do so, make the very first line
of you build file read like
To solve this, you have two major options:
CLASSPATH
as well this is not what you want,
otherwise you wouldn't have found this FAQ entry.