git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276066 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -187,7 +187,7 @@ | |||||
| * same "printed page" as the copyright notice for easier | * same "printed page" as the copyright notice for easier | ||||
| * identification within third-party archives. | * identification within third-party archives. | ||||
| * | * | ||||
| * Copyright [yyyy] Apache Software Foundation | |||||
| * Copyright [yyyy] [name of copyright owner] | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -187,7 +187,7 @@ | |||||
| * same "printed page" as the copyright notice for easier | * same "printed page" as the copyright notice for easier | ||||
| * identification within third-party archives. | * identification within third-party archives. | ||||
| * | * | ||||
| * Copyright [yyyy] Apache Software Foundation | |||||
| * Copyright [yyyy] [name of copyright owner] | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -408,7 +408,10 @@ | |||||
| <fileset dir="lib" includes="*.jar"/> | <fileset dir="lib" includes="*.jar"/> | ||||
| </path> | </path> | ||||
| <path> | <path> | ||||
| <fileset dir="${ant.home}/lib" includes="*.jar"/> | |||||
| <!-- <fileset dir="${ant.home}/lib" includes="*.jar"/> --> | |||||
| <fileset dir="../../lib" includes="*.jar"/> | |||||
| <fileset dir="../../lib/optional" includes="*.jar"/> | |||||
| <pathelement location="../../build/classes"/> | |||||
| </path> | </path> | ||||
| </path> | </path> | ||||
| @@ -36,7 +36,7 @@ | |||||
| <dvsl basedir="${taskdocs.src}" destdir="${manual.dest}" | <dvsl basedir="${taskdocs.src}" destdir="${manual.dest}" | ||||
| style="task.dvsl" extension=".html" | style="task.dvsl" extension=".html" | ||||
| toolboxfile="toolbox.props" | toolboxfile="toolbox.props" | ||||
| includes="**/*.xml"> | |||||
| includes="property/property.xml"> | |||||
| <velconfig name="velocimacro.library" value="" /> | <velconfig name="velocimacro.library" value="" /> | ||||
| </dvsl> | </dvsl> | ||||
| </target> | </target> | ||||
| @@ -463,6 +463,7 @@ $word.substring(0,1).toUpperCase()$word.substring(1) | |||||
| </td> | </td> | ||||
| <td bgcolor="#ffffff" height="1"> | <td bgcolor="#ffffff" height="1"> | ||||
| <font size="$source-font-size"><pre>$toolbox.htmlescape.getText( $node.value() )</pre></font> | <font size="$source-font-size"><pre>$toolbox.htmlescape.getText( $node.value() )</pre></font> | ||||
| #* *#$context.applyTemplates("*") | |||||
| </td> | </td> | ||||
| <td bgcolor="$source-color" width="1"> | <td bgcolor="$source-color" width="1"> | ||||
| <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> | <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> | ||||
| @@ -482,7 +483,14 @@ $word.substring(0,1).toUpperCase()$word.substring(1) | |||||
| </table> | </table> | ||||
| </div> | </div> | ||||
| #end | #end | ||||
| #match("ant:*") | |||||
| <$node.name() | |||||
| #foreach ( $item in $node.getAttributes() ) | |||||
| $item.=$qq$node.getAttributeValue($item)$qq | |||||
| #end | |||||
| > | |||||
| <$node.name()/> | |||||
| #end | |||||
| #match("table") | #match("table") | ||||
| <table> | <table> | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- property task --> | <!-- property task --> | ||||
| <external> | |||||
| <external xmlns:ant="http://ant.apache.org"> | |||||
| <description> | <description> | ||||
| <p>Sets a property (by name and value), or set of properties (from file or resource) in the project.</p> | <p>Sets a property (by name and value), or set of properties (from file or resource) in the project.</p> | ||||
| @@ -26,23 +26,23 @@ | |||||
| </description> | </description> | ||||
| <section anchor="examples" name="Examples"> | <section anchor="examples" name="Examples"> | ||||
| <source><![CDATA[ | |||||
| <property name="foo.dist" value="dist"/> | |||||
| ]]></source> | |||||
| <source> | |||||
| <ant:property name="foo.dist" value="dist"/> | |||||
| </source> | |||||
| <p>sets the property <code>foo.dist</code> to the value "dist".</p> | <p>sets the property <code>foo.dist</code> to the value "dist".</p> | ||||
| <source><![CDATA[ | |||||
| <property file="foo.properties"/> | |||||
| ]]></source> | |||||
| <source> | |||||
| <ant:property file="foo.properties"/> | |||||
| </source> | |||||
| <p>reads a set of properties from a file called "foo.properties".</p> | <p>reads a set of properties from a file called "foo.properties".</p> | ||||
| <source><![CDATA[ | |||||
| <property resource="foo.properties"/> | |||||
| ]]></source> | |||||
| <source> | |||||
| <ant:property resource="foo.properties"/> | |||||
| </source> | |||||
| <p>reads a set of properties from a resource called "foo.properties".</p> | <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 | <p>Note that you can reference a global properties file for all of your Ant | ||||
| builds using the following:</p> | builds using the following:</p> | ||||
| <source><![CDATA[ | |||||
| <property file="${user.home}/.ant-global.properties"/> | |||||
| ]]></source> | |||||
| <source> | |||||
| <ant:property file="${user.home}/.ant-global.properties"/> | |||||
| </source> | |||||
| <p>since the "user.home" property is defined by the Java virtual machine | <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 | 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. | the file system depends on the operating system version and the JVM implementation. | ||||
| @@ -51,11 +51,11 @@ variants, this will most likely resolve to the user's directory in the "Doc | |||||
| and Settings" folder. Older windows variants such as Windows 98/ME are less | and Settings" folder. Older windows variants such as Windows 98/ME are less | ||||
| predictable, as are other operating system/JVM combinations.</p> | predictable, as are other operating system/JVM combinations.</p> | ||||
| <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> | |||||
| <source> | |||||
| <ant:property environment="env"/> | |||||
| <ant:echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/> | |||||
| <ant: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". | <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. | Note that this only works on <em>select</em> operating systems. | ||||
| Two of the values are shown being echoed. | Two of the values are shown being echoed. | ||||
| @@ -26,7 +26,10 @@ | |||||
| </subsection> | </subsection> | ||||
| </description> | </description> | ||||
| <section anchor="examples" name="Examples"> | <section anchor="examples" name="Examples"> | ||||
| <pre> | |||||
| <source><![CDATA[ | |||||
| shell-prompt> m4 foo.m4 > foo | |||||
| ]]></source> | |||||
| <pre> | |||||
| <project name="subant" default="subant1"> | <project name="subant" default="subant1"> | ||||
| <property name="build.dir" value="subant.build"/> | <property name="build.dir" value="subant.build"/> | ||||
| <target name="subant1"> | <target name="subant1"> | ||||
| @@ -1,5 +1,5 @@ | |||||
| #* | #* | ||||
| * Copyright 2003-2004 Apache Software Foundation | |||||
| * Copyright 2003-2004 The Apache Software Foundation | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| #* | #* | ||||
| * Copyright 2000-2004 Apache Software Foundation | |||||
| * Copyright 2000-2004 The Apache Software Foundation | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||