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> <property name="foo.dist" value="dist"/></pre> + <source><![CDATA[ + <property name="foo.dist" value="dist"/> + ]]></source> <p>sets the property <code>foo.dist</code> to the value "dist".</p> -<pre> <property file="foo.properties"/></pre> + <source><![CDATA[ + <property file="foo.properties"/> + ]]></source> <p>reads a set of properties from a file called "foo.properties".</p> -<pre> <property resource="foo.properties"/></pre> + <source><![CDATA[ + <property resource="foo.properties"/> + ]]></source> <p>reads a set of properties from a resource called "foo.properties".</p> <p>Note that you can reference a global properties file for all of your Ant builds using the following:</p> -<pre> <property file="${user.home}/.ant-global.properties"/></pre> + <source><![CDATA[ + <property file="${user.home}/.ant-global.properties"/> + ]]></source> <p>since the "user.home" property is defined by the Java virtual machine to be your home directory. Where the "user.home" property resolves to in the file system depends on the operating system version and the JVM implementation. @@ -43,11 +51,11 @@ and Settings" folder. Older windows variants such as Windows 98/ME are less predictable, as are other operating system/JVM combinations.</p> -<pre> - <property environment="env"/> - <echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/> - <echo message="ANT_HOME is set to = ${env.ANT_HOME}"/> -</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 "env". 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]