You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2001/07/13 10:56:41 UTC
cvs commit: jakarta-ant/webpage/xdocs faq.xml
bodewig 01/07/13 01:56:38
Modified: webpage/docs faq.html
webpage/xdocs faq.xml
Log:
Add two FAQs - had two answer the first one at least twice this week
and the second one has been part of the defunct interactive FAQ.
Revision Changes Path
1.12 +149 -0 jakarta-ant/webpage/docs/faq.html
Index: faq.html
===================================================================
RCS file: /home/cvs/jakarta-ant/webpage/docs/faq.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- faq.html 2001/07/04 11:41:57 1.11
+++ faq.html 2001/07/13 08:56:21 1.12
@@ -140,6 +140,14 @@
<li><a href="#always-recompiles">
Why does Ant always recompile all my Java files?
</a></li>
+ <li><a href="#passing-cli-args">
+ How do I pass parameters from the command line to my
+ build file?
+ </a></li>
+ <li><a href="#jikes-switches">
+ How can I use Jikes specific command line
+ switches?
+ </a></li>
</ul>
</blockquote>
</td></tr>
@@ -411,6 +419,147 @@
<p>If your setup is different, Ant's heuristic won't work and
it will recompile classes that are up to date. Ant is not the
only tool, that expects a source tree layout like this.</p>
+ </blockquote>
+ </td></tr>
+ </table>
+ </a>
+ <a name="passing-cli-args">
+ <table border="0" cellspacing="0" cellpadding="2" width="100%">
+ <tr><td bgcolor="#828DA6">
+ <font color="#ffffff" face="arial,helvetica,sanserif">
+ <strong>
+ How do I pass parameters from the command line to my
+ build file?
+ </strong>
+ </font>
+ </td></tr>
+ <tr><td>
+ <blockquote>
+ <p>Use properties: <code>ant
+ -D<name>=<value></code> lets you define values for
+ properties. These can then be used within your build file as
+ any normal property: <code>${<name>}</code> will put in
+ <code><value></code>.</p>
+ </blockquote>
+ </td></tr>
+ </table>
+ </a>
+ <a name="jikes-switches">
+ <table border="0" cellspacing="0" cellpadding="2" width="100%">
+ <tr><td bgcolor="#828DA6">
+ <font color="#ffffff" face="arial,helvetica,sanserif">
+ <strong>
+ How can I use Jikes specific command line
+ switches?
+ </strong>
+ </font>
+ </td></tr>
+ <tr><td>
+ <blockquote>
+ <p>A couple of switches are supported via magic
+ properties:</p>
+ <table>
+ <tr>
+ <td bgcolor="#039acc" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ switch
+ </font>
+ </td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ property
+ </font>
+ </td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ default
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ +E
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ build.compiler.emacs
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ false == not set
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ -nowarn
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ build.compiler.warnings
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ true == not set
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ +P
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ build.compiler.pedantic
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ false == not set
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ +F
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ build.compiler.fulldepend
+ </font>
+ </td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
+ valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ false == not set
+ </font>
+ </td>
+ </tr>
+ </table>
</blockquote>
</td></tr>
</table>
1.9 +58 -0 jakarta-ant/webpage/xdocs/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/jakarta-ant/webpage/xdocs/faq.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- faq.xml 2001/06/26 13:42:28 1.8
+++ faq.xml 2001/07/13 08:56:32 1.9
@@ -138,6 +138,64 @@
</answer>
</faq>
+
+ <faq id="passing-cli-args">
+ <question>How do I pass parameters from the command line to my
+ build file?</question>
+ <answer>
+
+ <p>Use properties: <code>ant
+ -D<name>=<value></code> lets you define values for
+ properties. These can then be used within your build file as
+ any normal property: <code>${<name>}</code> will put in
+ <code><value></code>.</p>
+
+ </answer>
+ </faq>
+
+ <faq id="jikes-switches">
+ <question>How can I use Jikes specific command line
+ switches?</question>
+
+ <answer>
+
+ <p>A couple of switches are supported via magic
+ properties:</p>
+
+ <table>
+ <tr>
+ <th>switch</th>
+ <th>property</th>
+ <th>default</th>
+ </tr>
+
+ <tr>
+ <td>+E</td>
+ <td>build.compiler.emacs</td>
+ <td>false == not set</td>
+ </tr>
+
+ <tr>
+ <td>-nowarn</td>
+ <td>build.compiler.warnings</td>
+ <td>true == not set</td>
+ </tr>
+
+ <tr>
+ <td>+P</td>
+ <td>build.compiler.pedantic</td>
+ <td>false == not set</td>
+ </tr>
+
+ <tr>
+ <td>+F</td>
+ <td>build.compiler.fulldepend</td>
+ <td>false == not set</td>
+ </tr>
+ </table>
+
+ </answer>
+ </faq>
</faqsection>
<faqsection title="Ant and IDEs/Editors">