Date: 2004-03-09T00:02:03
Editor: StefanBodewig <[EMAIL PROTECTED]>
Wiki: Ant Wiki
Page: NewAntFeaturesInDetail/PresetDef
URL: http://wiki.apache.org/ant/NewAntFeaturesInDetail/PresetDef
remove some <code> tags
Change Log:
------------------------------------------------------------------------------
@@ -10,7 +10,7 @@
wherever you use <better-ant>, it will behave exactly like the <ant> task but
with a different default value.
-You can also define child elements. Say you want all your <javac> tasks to
compile against a set of jars living in <code>/our/jar/repository/</code>, you
could define
+You can also define child elements. Say you want all your <javac> tasks to
compile against a set of jars living in {{{/our/jar/repository/}}}, you could
define
{{{
<presetdef name="my-javac">
@@ -25,7 +25,7 @@
and use <my-javac> wherever you'd use <javac> instead.
-It is interesting to note that both <code>presetdef</code> and
<code>macrodef</code> dynamically define a task that can then be invoked as any
other. Properly declared, the resulting tasks can be used interchangeably.
Here is a simple example, in which the <code>filter</code> target will echo a
message either to the console or to a file depending on whether the property
<code>destfile</code> has been set:
+It is interesting to note that both <presetdef> and <macrodef> dynamically
define a task that can then be invoked as any other. Properly declared, the
resulting tasks can be used interchangeably. Here is a simple example, in
which the {{{filter}}} target will echo a message either to the console or to a
file depending on whether the property {{{destfile}}} has been set:
{{{
<target name="-tocon" unless="destfile">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]