Hello,

Stefan Moebius wrote:
--- Bill Burton <[EMAIL PROTECTED]> wrote:
Navigation could easily be generated for each page. The layout
should really be done with CSS instead of tables. This would provide more flexibility such as hiding the navigation when the page is printed.


I totally agree. And this way, the index could even be made sticky. If
you need any help regarding HTML/CSS, let me know.

Yes, that would be greatly appreciated as I'm not yet well versed in using CSS for layout. If you or someone would like to refactor the attached HTML file to use CSS, that would be a big help. Then these changes could then be applied to the proposal/xdocs/dvsl/task.dvsl stylesheet.


Some work has already been done in this area for Ant's site pages. See http://marc.theaimsgroup.com/?l=ant-dev&m=104311582419747&w=2.

Attached is the DVSL transformed XML for the <javac> task. It's in text format to keep from (hopefully) being stripped from the message. For some reason, gump is not pulling in the associated javac.xml file so that version has the javadoc alone without the content merged XML file.

Thanks,
-Bill

Stefan

=====
Stefan Moebius <[EMAIL PROTECTED]> Wurzener Str. 43 +49 351 8475827
01127 Dresden +49 172 8739617

    
<html>
<head>
  <meta http-equiv="Content-Language" content="en-us">
  <title>Javac
 Task</title>
</head>

<body bgcolor="#ffffff" text="#000000" link="#525D76"
      alink="#525D76" vlink="#525D76">

<table border="0" width="100%" cellspacing="4">

  <!-- PAGE HEADER -->
  <tr>
    <td>
      <table border="0" width="100%"><tr>
          <td valign="bottom">
            <font size="+3" face="arial,helvetica,sanserif"><strong>Javac
 Task</strong></font>
            <br><font face="arial,helvetica,sanserif">Compiles Java source 
files.</font>
          </td>
          <td>
            <!-- PROJECT LOGO -->
            <a href="http://ant.apache.org/";>
              <img src="../../images/ant_logo_large.gif" align="right" 
alt="Apache Ant" border="0"/>
            </a>
          </td>
      </tr></table>
    </td>
  </tr>

  <!-- START RIGHT SIDE MAIN BODY -->
  <tr>
    <td  valign="top" align="left">

          <!-- Applying task/description -->
    <!-- Start Description -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>

      <tr><td bgcolor="#525D76">
        <font color="#ffffff" face="arial,helvetica.sanserif">
          <a name="description">
          <strong>Description</strong></a></font>
      </td></tr>

      <tr><td><blockquote>
<p>Compiles a Java source tree.</p>
<p>The source and destination directory will be recursively scanned for Java
source files to compile. Only Java files that have no corresponding class file
or where the class file is older than the java file will be compiled.</p>
<p>Note: Ant uses only the names of the source and class files to find
the classes that need a rebuild. It will not scan the source and therefor
will have no knowledge about nested classes, classes that are named different
from the source file and so on.</p>
<p>The directory structure of the source tree should follow the package
hierarchy.</p>
<p>It is possible to refine the set of files that are being compiled/copied.
This can be done with the <i>includes</i>, <i>includesfile</i>, 
<i>excludes</i>, <i>excludesfile</i> and <i>defaultexcludes</i>
attributes. With the <i>includes</i> or <i>includesfile</i> attribute you 
specify the files you want to
have included by using patterns. The <i>exclude</i> or <i>excludesfile</i> 
attribute is used to specify
the files you want to have excluded. This is also done with patterns. And
finally with the <i>defaultexcludes</i> attribute, you can specify whether you
want to use default exclusions or not. See the section on <a 
href="../dirtasks.html#directorybasedtasks">directory based tasks</a>, on how 
the
inclusion/exclusion of files works, and how to write patterns.</p>
<p>It is possible to use different compilers. This can be selected with the
"build.compiler" property or the compiler attribute. Here are the choices:-</p>
<ul>
  <li>classic (the standard compiler of JDK 1.1/1.2) - javac1.1 and
     javac1.2 can be used as aliases</li>
  <li>modern (the standard compiler of JDK 1.3/1.4) - javac1.3 and
     javac1.4 can be used as aliases</li>
  <li>jikes (the <a 
href="http://oss.software.ibm.com/developerworks/opensource/jikes/project"; 
target="_top">Jikes</a>
    compiler)</li>
  <li>jvc (the Command-Line Compiler from Microsoft's SDK for Java /
    Visual J++) - microsoft can be used as an alias</li>
  <li>kjc (the <a href="http://www.dms.at/kopi/"; target="_top">kopi</a>
    compiler)</li>
  <li>gcj (the gcj compiler from gcc)</li>
  <li>sj (Symantec java compiler) - symantec can be used as an alias</li>
  <li>extJavac (run either modern or classic in a JVM of its own)</li>
</ul>
<p>For JDK 1.1/1.2, classic is the default. For JDK 1.3/1.4, modern is the 
default.
If you wish to use a different compiler interface than those
supplied, write a class that implements the CompilerAdapter interface
(package org.apache.tools.ant.taskdefs.compilers). Supply the full
classname in the "build.compiler" property.</p>
<p>The fork attribute overrides the build.compiler setting and expects
a JDK1.1 or higher to be set in java.home.</p>
<p>This task will drop all entries that point to non-existent
files/directories from the CLASSPATH it passes to the compiler.</p>
<p><strong>Windows Note:</strong>When the modern compiler is used
in unforked mode on Windows, it locks up the files present in the
classpath of the &lt;javac&gt; 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.</p>

      </blockquote></td></tr>

    </table>
    <!-- End Description -->

    <!-- Start Attributes -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>

      <tr><td bgcolor="#525D76">
        <font color="#ffffff" face="arial,helvetica.sanserif">
          <a name="attributes">
          <strong>Parameters</strong></a></font>
      </td></tr>

      <tr><td><blockquote>
        <table>
          <tr>
        <td bgcolor="#cccccc" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif"><b>Attribute</b></font>
        </td>
        <td bgcolor="#cccccc" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif"><b>Description</b></font>
        </td>
        <td bgcolor="#cccccc" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif"><b>Type</b></font>
        </td>
          </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">bootclasspathref</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Adds a reference to a classpath defined elsewhere.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Reference</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">bootclasspath</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Sets the bootclasspath that will be used to compile the classes 
against.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Path</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">classpath</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Set the classpath to be used for this compilation.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Path</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">classpathref</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Adds a reference to a classpath defined elsewhere.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Reference</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">compiler</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Choose the implementation for this particular task.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">debug</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Indicates whether source should be compiled with debug information; 
defaults to off.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">debuglevel</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Keyword list to be appended to the -g command-line switch. This will 
be ignored by all implementations except modern and classic(ver >= 1.2). Legal 
values are none or a comma-separated list of the following keywords: lines, 
vars, and source. If debuglevel is not specified, by default, :none will be 
appended to -g. If debug is not turned on, this attribute will be ignored.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">depend</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Enables dependency-tracking for compilers that support this (jikes 
and classic).
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">deprecation</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Indicates whether source should be compiled with deprecation 
information; defaults to off.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">destdir</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Set the destination directory into which the Java source files should 
be compiled.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.io.File</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">encoding</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Set the Java source file encoding name.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">executable</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Sets the the name of the javac executable.  <p>Ignored unless fork is 
true or extJavac has been specified as the compiler.</p>
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">extdirs</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Sets the extension directories that will be used during the 
compilation.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Path</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">failonerror</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Indicates whether the build will continue even if there are 
compilation errors; defaults to true.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">fork</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          If true, forks the javac compiler.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">includeantruntime</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          If true, includes Ant's own classpath in the classpath.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">includejavaruntime</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          If true, includes the Java runtime libraries in the classpath.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">listfiles</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          If true, list the source files being handed off to the compiler.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">memoryinitialsize</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          The initial size of the memory for the underlying VM if javac is run 
externally; ignored otherwise. Defaults to the standard VM memory setting. 
(Examples: 83886080, 81920k, or 80m)
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">memorymaximumsize</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          The maximum size of the memory for the underlying VM if javac is run 
externally; ignored otherwise. Defaults to the standard VM memory setting. 
(Examples: 83886080, 81920k, or 80m)
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">nowarn</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          If true, enables the -nowarn option.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">optimize</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          If true, compiles with optimization enabled.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">source</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Value of the -source command-line switch; will be ignored by all 
implementations except modern and jikes. If you use this attribute together 
with jikes, you must make sure that your version of jikes supports the -source 
switch. Legal values are 1.3 and 1.4 - by default, no -source argument will be 
used at all.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">sourcepath</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Set the sourcepath to be used for this compilation.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Path</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">sourcepathref</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Adds a reference to a source path defined elsewhere.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Reference</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">srcdir</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Set the source directories to find the source Java files.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">org.apache.tools.ant.types.Path</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">target</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          Sets the target VM that the classes will be compiled for. Valid 
strings are "1.1", "1.2", and "1.3".
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">java.lang.String</font>
        </td>
    </tr>
    <!-- Attribute -->
    <tr>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">verbose</font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          If true, asks the compiler for verbose output.
        </font>
        </td>
        <td bgcolor="#eeeeee" valign="top" align="left">
          <font color="#000000" size="-1" 
face="arial,helvetica,sanserif">boolean</font>
        </td>
    </tr>

        </table>
      </blockquote></td></tr>

    </table>
    <!-- End Attributes -->

    <!-- Start Elements -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>

      <tr><td bgcolor="#525D76">
        <font color="#ffffff" face="arial,helvetica.sanserif">
          <a name="elements">
          <strong>Parameters as nested elements</strong></a></font>
      </td></tr>

      <tr><td><blockquote>
    <!-- Start Element -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>
      <tr><td bgcolor="#828DA6">
        <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
          <strong>bootclasspath</strong> 
(org.apache.tools.ant.types.Path)</font>
      </td></tr>
      <tr><td><blockquote>
        Adds a path to the bootclasspath.
<short-description><![CDATA[Adds a path to the 
bootclasspath.]]></short-description>
<description>
          <![CDATA[Adds a path to the bootclasspath.]]>
        </description>

      </blockquote></td></tr>
    </table>
    <!-- End Element -->
    <!-- Start Element -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>
      <tr><td bgcolor="#828DA6">
        <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
          <strong>classpath</strong> (org.apache.tools.ant.types.Path)</font>
      </td></tr>
      <tr><td><blockquote>
        Adds a path to the classpath.
<short-description><![CDATA[Adds a path to the classpath.]]></short-description>
<description>
          <![CDATA[Adds a path to the classpath.]]>
        </description>

      </blockquote></td></tr>
    </table>
    <!-- End Element -->
    <!-- Start Element -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>
      <tr><td bgcolor="#828DA6">
        <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
          <strong>extdirs</strong> (org.apache.tools.ant.types.Path)</font>
      </td></tr>
      <tr><td><blockquote>
        Adds a path to extdirs.
<short-description><![CDATA[Adds a path to extdirs.]]></short-description>
<description>
          <![CDATA[Adds a path to extdirs.]]>
        </description>

      </blockquote></td></tr>
    </table>
    <!-- End Element -->
    <!-- Start Element -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>
      <tr><td bgcolor="#828DA6">
        <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
          <strong>sourcepath</strong> (org.apache.tools.ant.types.Path)</font>
      </td></tr>
      <tr><td><blockquote>
        Adds a path to sourcepath.
<short-description><![CDATA[Adds a path to sourcepath.]]></short-description>
<description>
          <![CDATA[Adds a path to sourcepath.]]>
        </description>

      </blockquote></td></tr>
    </table>
    <!-- End Element -->
    <!-- Start Element -->
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>
      <tr><td bgcolor="#828DA6">
        <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
          <strong>src</strong> (org.apache.tools.ant.types.Path)</font>
      </td></tr>
      <tr><td><blockquote>
        Adds a path for source compilation.
<short-description><![CDATA[Adds a path for source 
compilation.]]></short-description>
<description>
          <![CDATA[Adds a path for source compilation.]]>
        </description>

      </blockquote></td></tr>
    </table>
    <!-- End Element -->

      </blockquote></td></tr>

    </table>
    <!-- End Elements -->

    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>

      <tr><td bgcolor="#525D76">
          <font color="#ffffff" face="arial,helvetica.sanserif">
                              <a name="examples">
          <strong>Examples</strong></a></font>
      </td></tr>

      <tr><td><blockquote>
        <pre>  &lt;javac srcdir="${src}"
         destdir="${build}"
         classpath="xyz.jar"
         debug="on"
  /&gt;</pre>
<p>compiles all <code>.java</code> files under the <code>${src}</code>
directory, and stores
the <code>.class</code> files in the <code>${build}</code> directory.
The classpath used contains <code>xyz.jar</code>, and debug information is 
on.</p>
<pre>  &lt;javac srcdir="${src}"
         destdir="${build}"
         fork="true"
  /&gt;</pre>
<p>compiles all <code>.java</code> files under the <code>${src}</code>
directory, and stores the <code>.class</code> files in the
<code>${build}</code> directory.  This will fork off the javac
compiler using the default javac executable.</p>
<pre>  &lt;javac srcdir="${src}"
         destdir="${build}"
         fork="java$$javac.exe"
  /&gt;</pre>
<p>compiles all <code>.java</code> files under the <code>${src}</code>
directory, and stores the <code>.class</code> files in the
<code>${build}</code> directory.  This will fork off the javac
compiler using the executable named <code>java$javac.exe</code>.  Note
that the <code>$</code> sign needs to be escaped by a second one.</p>
<pre>  &lt;javac srcdir="${src}"
         destdir="${build}"
         includes="mypackage/p1/**,mypackage/p2/**"
         excludes="mypackage/p1/testpackage/**"
         classpath="xyz.jar"
         debug="on"
  /&gt;</pre>
<p>compiles <code>.java</code> files under the <code>${src}</code>
directory, and stores the
<code>.class</code> files in the <code>${build}</code> directory.
The classpath used contains <code>xyz.jar</code>, and debug information is on.
Only files under <code>mypackage/p1</code> and <code>mypackage/p2</code> are
used. Files in the <code>mypackage/p1/testpackage</code> directory are excluded
from compilation.</p>
<pre>  &lt;javac srcdir="${src}:${src2}"
         destdir="${build}"
         includes="mypackage/p1/**,mypackage/p2/**"
         excludes="mypackage/p1/testpackage/**"
         classpath="xyz.jar"
         debug="on"
  /&gt;</pre>
<p>is the same as the previous example, with the addition of a second
source path, defined by
the property <code>src2</code>. This can also be represented using nested
<code>&lt;src&gt;</code> elements as follows:</p>
<pre>  &lt;javac destdir="${build}"
         classpath="xyz.jar"
         debug="on"&gt;
    &lt;src path="${src}"/&gt;
    &lt;src path="${src2}"/&gt;
    &lt;include name="mypackage/p1/**"/&gt;
    &lt;include name="mypackage/p2/**"/&gt;
    &lt;exclude name="mypackage/p1/testpackage/**"/&gt;
  &lt;/javac&gt;</pre>
<p><b>Note:</b> If you are using Ant on Windows and a new DOS window pops up
for every use of an external compiler, this may be a problem of the JDK you are 
using.
This problem may occur with all JDKs &lt; 1.2.</p>
<p><b>Note:</b> If you wish to compile only source-files located in some 
packages below a
common root you should not include these packages in the srcdir-attribute. Use 
include/exclude-attributes
or elements to filter for these packages. If you include part of your 
package-structure inside the srcdir-attribute
(or nested src-elements) Ant will start to recompile your sources every time 
you call it.</p>

      </blockquote></td></tr>

    </table>
    <table border="0" cellspacing="0" cellpadding="2" width="100%">
      <tr><td>&nbsp;</td></tr>

      <tr><td bgcolor="#525D76">
          <font color="#ffffff" face="arial,helvetica.sanserif">
                              <a name="jikes">
          <strong>Jikes Notes</strong></a></font>
      </td></tr>

      <tr><td><blockquote>
        <p>Jikes supports some extra options, which can be set be defining
properties prior to invoking the task. The ant developers are aware that
this is ugly and inflexible -expect a better solution in the future. All
the options are boolean, and must be set to "true" or "yes" to be
interpreted as anything other than false; by default
build.compiler.warnings is "true" while all others are "false"</p>
<table>
<tr>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        build.compiler.emacs
        
    </font>
</td>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        Enable emacs compatible error messages
    
    </font>
</td>

</tr>
<tr>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        build.compiler.warnings<br/>
        <b>This property has been deprecated, use the nowarn attribute
          instead</b>
        
    </font>
</td>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        don't disable warning messages
    
    </font>
</td>

</tr>
<tr>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        build.compiler.pedantic
        
    </font>
</td>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        enable pedantic warnings
    
    </font>
</td>

</tr>
<tr>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        build.compiler.fulldepend
        
    </font>
</td>
<td bgcolor="#eeeeee" valign="top" align="left">
    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
       
        enable full dependency checking,<br/>
        "+F" in the jikes manual.
    
    </font>
</td>

</tr>

</table>

      </blockquote></td></tr>

    </table>

    </td>
  </tr>
  <!-- END RIGHT SIDE MAIN BODY -->

  <!-- FOOTER SEPARATOR -->
  <tr>
    <td>
      <hr noshade="" size="1"/>
    </td>
  </tr>

  <!-- PAGE FOOTER -->
  <tr>
    <td>
      <div align="center"><font color="#525D76" size="-1"><em>
        Copyright &#169; 2000-2003, Apache Software Foundation
      </em></font></div>
    </td>
  </tr>

</table>

</body>
</html>

Reply via email to