You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <project>
-
- <target name="simple">
- <macrodef name="my.echo">
- <attribute name="text"/>
- <sequential>
- <echo message="${text}"/>
- </sequential>
- </macrodef>
- <my.echo text="Hello World"/>
- </target>
-
- <target name="text">
- <macrodef name="my.echo">
- <attribute name="text"/>
- <sequential>
- <echo>${text}</echo>
- </sequential>
- </macrodef>
- <my.echo text="Inner Text"/>
- </target>
-
- <target name="uri">
- <macrodef name="echo" uri="abc">
- <attribute name="text"/>
- <sequential>
- <echo message="${text}"/>
- </sequential>
- </macrodef>
- <x:echo xmlns:x="abc" text="Hello World"/>
- </target>
-
- <target name="nested">
- <macrodef name="nested">
- <element name="nested"/>
- <sequential>
- <nested/>
- </sequential>
- </macrodef>
-
- <nested>
- <nested>
- <echo>A nested element</echo>
- </nested>
- </nested>
- </target>
-
- <target name="xpathstyle">
- <macrodef name="testing" attributestyle="xpath">
- <attribute name="abc"/>
- <sequential>
- <echo>attribute is @abc@abc</echo>
- </sequential>
- </macrodef>
-
- <testing abc="this is a test"/>
- </target>
- </project>
|