You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jh...@apache.org on 2004/05/11 18:37:02 UTC
cvs commit: ant/docs faq.html
jhm 2004/05/11 09:37:02
Modified: xdocs faq.xml
docs faq.html
Log:
hint to projects.xml; os-specific configuration
Revision Changes Path
1.54 +22 -1 ant/xdocs/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/ant/xdocs/faq.xml,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- faq.xml 20 Apr 2004 07:27:21 -0000 1.53
+++ faq.xml 11 May 2004 16:37:02 -0000 1.54
@@ -223,6 +223,23 @@
</faqsection>
<faqsection title="How do I ...">
+ <faq id="implement-os-specific-configuration">
+ <question>How do I realize os--specific configurations?</question>
+ <answer>
+ <p>The core idea is using property files which name accords to the
+ os-name. Then simply use the build-in property <tt>os.name</tt>.</p>
+ <p>For better use you should also provide a file with defaul values.
+ But be careful with the correct os-names. For test simply <echo>
+ the ${os.name} on all machines and you can be sure to use the right
+ file names.</p>
+ <source><![CDATA[
+ <property file="${os.name}.properties"/>
+ <property file="default.properties"/>
+]]></source>
+ </answer>
+ </faq>
+
+
<faq id="adding-external-tasks">
<question>How do I add an external task that I've written to the
page "External Tools and Task"?</question>
@@ -252,8 +269,12 @@
href="http://cvs.apache.org/viewcvs.cgi/~checkout~/ant/xdocs/external.xml">this</a>
document.</p>
+ <p>If you have written something bigger than a 'simple plugin' to Ant it
+ may be better to add the link to <a href="projects.html">projects.html</a>.
+ The procedure to add it is the same. The file to patch is <a
+ href="http://cvs.apache.org/viewcvs.cgi/~checkout~/ant/xdocs/projects.xml">this</a>
+ document. The syntax of that file is the same.</p>
</answer>
-
</faq>
<faq id="passing-cli-args">
1.98 +21 -0 ant/docs/faq.html
Index: faq.html
===================================================================
RCS file: /home/cvs/ant/docs/faq.html,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- faq.html 20 Apr 2004 07:27:20 -0000 1.97
+++ faq.html 11 May 2004 16:37:02 -0000 1.98
@@ -206,6 +206,9 @@
</ul>
<h4 class="toc">How do I ...</h4>
<ul>
+ <li><a href="#implement-os-specific-configuration">
+ How do I realize os--specific configurations?
+ </a></li>
<li><a href="#adding-external-tasks">
How do I add an external task that I've written to the
page "External Tools and Task"?
@@ -589,6 +592,20 @@
or use the zip archive instead (you can extract it using
<code>jar xf</code>).</p>
<p class="faq">
+ <a name="implement-os-specific-configuration"></a>
+ How do I realize os--specific configurations?
+ </p>
+ <p>The core idea is using property files which name accords to the
+ os-name. Then simply use the build-in property <tt>os.name</tt>.</p>
+ <p>For better use you should also provide a file with defaul values.
+ But be careful with the correct os-names. For test simply <echo>
+ the ${os.name} on all machines and you can be sure to use the right
+ file names.</p>
+ <pre class="code">
+ <property file="${os.name}.properties"/>
+ <property file="default.properties"/>
+</pre>
+ <p class="faq">
<a name="adding-external-tasks"></a>
How do I add an external task that I've written to the
page "External Tools and Task"?
@@ -613,6 +630,10 @@
</ul>
<p>The preferred format for this information is a patch to <a href="http://cvs.apache.org/viewcvs.cgi/~checkout~/ant/xdocs/external.xml">this</a>
document.</p>
+ <p>If you have written something bigger than a 'simple plugin' to Ant it
+ may be better to add the link to <a href="projects.html">projects.html</a>.
+ The procedure to add it is the same. The file to patch is <a href="http://cvs.apache.org/viewcvs.cgi/~checkout~/ant/xdocs/projects.xml">this</a>
+ document. The syntax of that file is the same.</p>
<p class="faq">
<a name="passing-cli-args"></a>
How do I pass parameters from the command line to my
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org