Browse Source

Copyright owner The Apache Software Foundation

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276066 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 21 years ago
parent
commit
33c1770074
10 changed files with 40 additions and 26 deletions
  1. +1
    -1
      LICENSE
  2. +1
    -1
      docs/LICENSE
  3. +4
    -1
      proposal/xdocs/build.xml
  4. +1
    -1
      proposal/xdocs/dvsl/build.xml
  5. BIN
      proposal/xdocs/dvsl/lib/velocity-dvsl-0.42.jar
  6. +9
    -1
      proposal/xdocs/dvsl/task.dvsl
  7. +18
    -18
      proposal/xdocs/src/org/apache/tools/ant/taskdefs/Property.xml
  8. +4
    -1
      proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml
  9. +1
    -1
      xdocs/stylesheets/site.vsl
  10. +1
    -1
      xdocs/stylesheets/templates.vm

+ 1
- 1
LICENSE View File

@@ -187,7 +187,7 @@
* same "printed page" as the copyright notice for easier
* 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");
* you may not use this file except in compliance with the License.


+ 1
- 1
docs/LICENSE View File

@@ -187,7 +187,7 @@
* same "printed page" as the copyright notice for easier
* 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");
* you may not use this file except in compliance with the License.


+ 4
- 1
proposal/xdocs/build.xml View File

@@ -408,7 +408,10 @@
<fileset dir="lib" includes="*.jar"/>
</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>



+ 1
- 1
proposal/xdocs/dvsl/build.xml View File

@@ -36,7 +36,7 @@
<dvsl basedir="${taskdocs.src}" destdir="${manual.dest}"
style="task.dvsl" extension=".html"
toolboxfile="toolbox.props"
includes="**/*.xml">
includes="property/property.xml">
<velconfig name="velocimacro.library" value="" />
</dvsl>
</target>


BIN
proposal/xdocs/dvsl/lib/velocity-dvsl-0.42.jar View File


+ 9
- 1
proposal/xdocs/dvsl/task.dvsl View File

@@ -463,6 +463,7 @@ $word.substring(0,1).toUpperCase()$word.substring(1)
</td>
<td bgcolor="#ffffff" height="1">
<font size="$source-font-size"><pre>$toolbox.htmlescape.getText( $node.value() )</pre></font>
#* *#$context.applyTemplates("*")
</td>
<td bgcolor="$source-color" width="1">
<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>
</div>
#end

#match("ant:*")
&lt;$node.name()
#foreach ( $item in $node.getAttributes() )
$item.=$qq$node.getAttributeValue($item)$qq
#end
&gt;
&lt;$node.name()/&gt;
#end

#match("table")
<table>


+ 18
- 18
proposal/xdocs/src/org/apache/tools/ant/taskdefs/Property.xml View File

@@ -1,5 +1,5 @@
<!-- property task -->
<external>
<external xmlns:ant="http://ant.apache.org">
<description>

<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>

<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 &quot;dist&quot;.</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 &quot;foo.properties&quot;.</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 &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>
<source><![CDATA[
<property file="${user.home}/.ant-global.properties"/>
]]></source>
<source>
<ant: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.
@@ -51,11 +51,11 @@ variants, this will most likely resolve to the user's directory in the &quot;Doc
and Settings&quot; folder. Older windows variants such as Windows 98/ME are less
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 &quot;env&quot;.
Note that this only works on <em>select</em> operating systems.
Two of the values are shown being echoed.


+ 4
- 1
proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml View File

@@ -26,7 +26,10 @@
</subsection>
</description>
<section anchor="examples" name="Examples">
<pre>
<source><![CDATA[
shell-prompt> m4 foo.m4 > foo
]]></source>
<pre>
&lt;project name="subant" default="subant1"&gt;
&lt;property name="build.dir" value="subant.build"/&gt;
&lt;target name="subant1"&gt;


+ 1
- 1
xdocs/stylesheets/site.vsl View File

@@ -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");
* you may not use this file except in compliance with the License.


+ 1
- 1
xdocs/stylesheets/templates.vm View File

@@ -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");
* you may not use this file except in compliance with the License.


Loading…
Cancel
Save