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.
|
- <?xml version="1.0"?>
-
- <!--
- ==============================================================================
-
- Sample build file
-
- Authors:
- Peter Donald <donaldp@apache.org>
-
- Legal:
- Copyright (c) 2000 The Apache Software Foundation. All Rights Reserved.
-
- ==============================================================================
- -->
-
- <project name="MySample" default="main" basedir=".">
-
- <property name="year" value="2000"/>
-
- <target name="main" depends="property-test" />
-
- <!--
- ===================================================================
- Help on usage
- ===================================================================
- -->
- <target name="option-test">
-
- <prim-test
- integer="1"
- integer2="2"
- short="3"
- short2="4"
- long="5"
- long2="6"
- byte="7"
- byte2="8"
- string="aString"
- float="1.0"
- float2="2.0"
- double="3.0"
- double2="4.0"
- />
-
- <sub-elements-test>
- <create-beep message="Evaluation of ant.install.dir=${ant.install.dir}" />
- <add-beep message="Evaluation of ant.install.lib=${ant.install.lib}" />
- </sub-elements-test>
-
- <conf-test message="Test of configuration=${ant.install.lib}" />
-
- <content-test>123</content-test>
-
- </target>
-
- <target name="property-test">
- <property name="blah" value="fred" />
- <property name="${blah}" value="barney" />
-
- <register-tasklet lib="../../dist/lib/core.tsk"
- name="echo2"
- classname="org.apache.ant.tasks.core.Echo" />
-
- <!--
- <register-tasklib lib="../../dist/lib/core.tsk" />
- <register-converter classname="org.apache.ant.convert.core.StringToClassConverter"
- source-type="java.lang.String"
- destination-type="java.lang.Class"
- lib="../../dist/lib/core.tsk" />
- -->
-
- <echo message="Doing the funky Echo with ${blah} ${fred} Year=${year}!"/>
- <echo2 message="Luke to Echo base. Can you hear me?"/>
-
- <ant-call target="property-test2">
- <param name="blah" value="blah-value" />
- </ant-call>
-
- </target>
-
- <target name="property-test2">
- <echo message="This should fail ...."/>
- <echo message="${blah}"/>
- <echo message="Whoa - it no fail. Did you use ant-call to call me and set param blah?"/>
- </target>
-
- </project>
|