antoine     2003/12/17 14:13:25

  Modified:    src/main/org/apache/tools/ant/taskdefs Property.java
               proposal/xdocs/src/org/apache/tools/ant/taskdefs
                        Property.xml
  Log:
  We will feel more like maintaining or creating the xdocs example if we
  do not need to escape the examples in XML entities.
  
  Revision  Changes    Path
  1.68      +1 -0      ant/src/main/org/apache/tools/ant/taskdefs/Property.java
  
  Index: Property.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Property.java,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- Property.java     15 Sep 2003 16:55:01 -0000      1.67
  +++ Property.java     17 Dec 2003 22:13:25 -0000      1.68
  @@ -104,6 +104,7 @@
    *
    * @ant.attribute.group name="name" description="One of these, when using 
the name attribute"
    * @ant.attribute.group name="noname" description="One of these, when not 
using the name attribute"
  + * @ant.task category="property"
    */
   public class Property extends Task {
   
  
  
  
  1.2       +17 -9     
ant/proposal/xdocs/src/org/apache/tools/ant/taskdefs/Property.xml
  
  Index: Property.xml
  ===================================================================
  RCS file: 
/home/cvs/ant/proposal/xdocs/src/org/apache/tools/ant/taskdefs/Property.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Property.xml      29 Apr 2003 00:07:23 -0000      1.1
  +++ Property.xml      17 Dec 2003 22:13:25 -0000      1.2
  @@ -26,15 +26,23 @@
   </description>
   
   <section anchor="examples" name="Examples">
  -<pre>  &lt;property name=&quot;foo.dist&quot; 
value=&quot;dist&quot;/&gt;</pre>
  +    <source><![CDATA[
  +    <property name="foo.dist" value="dist"/>
  +        ]]></source>
   <p>sets the property <code>foo.dist</code> to the value &quot;dist&quot;.</p>
  -<pre>  &lt;property file=&quot;foo.properties&quot;/&gt;</pre>
  +    <source><![CDATA[
  +    <property file="foo.properties"/>
  +        ]]></source>
   <p>reads a set of properties from a file called 
&quot;foo.properties&quot;.</p>
  -<pre>  &lt;property resource=&quot;foo.properties&quot;/&gt;</pre>
  +    <source><![CDATA[
  +    <property resource="foo.properties"/>
  +        ]]></source>
   <p>reads a set of properties from a resource called 
&quot;foo.properties&quot;.</p>
   <p>Note that you can reference a global properties file for all of your Ant
   builds using the following:</p>
  -<pre>  &lt;property 
file=&quot;${user.home}/.ant-global.properties&quot;/&gt;</pre>
  +    <source><![CDATA[
  +    <property file="${user.home}/.ant-global.properties"/>
  +        ]]></source>
   <p>since the &quot;user.home&quot; property is defined by the Java virtual 
machine
   to be your home directory.  Where the &quot;user.home&quot; property 
resolves to in
   the file system depends on the operating system version and the JVM 
implementation.
  @@ -43,11 +51,11 @@
   and Settings&quot; folder. Older windows variants such as Windows 98/ME are 
less 
   predictable, as are other operating system/JVM combinations.</p>
   
  -<pre>
  -  &lt;property environment=&quot;env&quot;/&gt;
  -  &lt;echo message=&quot;Number of Processors = 
${env.NUMBER_OF_PROCESSORS}&quot;/&gt;
  -  &lt;echo message=&quot;ANT_HOME is set to = ${env.ANT_HOME}&quot;/&gt;
  -</pre>
  +<source><![CDATA[
  +  <property environment="env">
  +  <echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}">
  +  <echo message="ANT_HOME is set to = ${env.ANT_HOME}">
  +]]></source>
   <p>reads the system environment variables and stores them in properties, 
prefixed with &quot;env&quot;.
   Note that this only works on <em>select</em> operating systems.
   Two of the values are shown being echoed. 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to