Browse Source

<path> is not a task but a data type - and all data types can be used

outside of targets.

<typedef> is another task that may be used outside of targets.

I "fixed" that by replacing path with typedef in Steve's text, but we
really should talk about data types here as well - unfortunatley we
don't talk about data types in the manual at all, so it takes a bigger
effort.

Some year 2002 bugs.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271491 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
17832b2eea
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      docs/manual/OptionalTasks/sound.html
  2. +1
    -1
      docs/manual/using.html
  3. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/GenerateKey.java

+ 1
- 1
docs/manual/OptionalTasks/sound.html View File

@@ -96,7 +96,7 @@ more than once.
randomly selects a sound-file to play when the build succeeds or fails. randomly selects a sound-file to play when the build succeeds or fails.


<hr> <hr>
<p align="center">Copyright &copy; 2001 Apache Software Foundation. All rights
<p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
Reserved.</p> Reserved.</p>


</body> </body>


+ 1
- 1
docs/manual/using.html View File

@@ -263,7 +263,7 @@ ant.java.version the JVM version Ant detected; currently it can hold
</pre> </pre>


Notice that we are declaring properties outside any target. The Notice that we are declaring properties outside any target. The
<tt>&lt;property&gt;</tt>,<tt>&lt;path&gt;</tt> and <tt>&lt;taskdef&gt;</tt>
<tt>&lt;property&gt;</tt>,<tt>&lt;typedef&gt;</tt> and <tt>&lt;taskdef&gt;</tt>
tasks are special in that they can be declared outside any target. When you tasks are special in that they can be declared outside any target. When you
do this they are evaluated before any targets are executed. No other tasks do this they are evaluated before any targets are executed. No other tasks
can be declared outside targets. can be declared outside targets.


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/GenerateKey.java View File

@@ -1,7 +1,7 @@
/* /*
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2000 The Apache Software Foundation. All rights
* Copyright (c) 2000,2002 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without


Loading…
Cancel
Save