diff --git a/docs/manual/CoreTasks/javac.html b/docs/manual/CoreTasks/javac.html index 29d3ed1c3..c555011a8 100644 --- a/docs/manual/CoreTasks/javac.html +++ b/docs/manual/CoreTasks/javac.html @@ -173,7 +173,11 @@ invoking the compiler.
false
.
build.compiler.jvc.extensions
to false before invoking
<javac>
.
++ The Sun javac compiler has a bootclasspath command + line option - this corresponds to the "bootclasspath" attribute/element + of the <javac> task. The Sun compiler also allows more + control over the boot classpath using the -X and -J-X attributes. + One can set these by using the <compilerarg>. Since Ant 1.6.0, + there is a shortcut to convert path references to strings that + can by used in an OS independent fashion (see + pathshortcut). For example: +
++ <path id="lib.path.ref"> + <fileset dir="lib" includes="*.jar"/> + </path> + <javac srcdir="src" destdir="classes"> + <compilerarg arg="-Xbootstrap/p:${toString:lib.path.ref}"/> + </javac> ++ + + +
The openjdk diff --git a/docs/manual/using.html b/docs/manual/using.html index 7fbfc4f03..7ee89fdb9 100644 --- a/docs/manual/using.html +++ b/docs/manual/using.html @@ -494,6 +494,24 @@ can be written as: <path id="base.path" path="${classpath}"/> +
+ In Ant 1.6 a shortcut for converting paths to OS specific strings + in properties has been added. One can use the expression + ${toString:pathreference} to convert a path element + reference to a string that can be used for a path argument. + For example: +
++ <path id="lib.path.ref"> + <fileset dir="lib" includes="*.jar"/> + </path> + <javac srcdir="src" destdir="classes"> + <compilerarg arg="-Xbootstrap/p:${toString:lib.path.ref}"/> + </javac> ++ +
Several tasks take arguments that will be passed to another process on the command line. To make it easier to specify arguments