call the defined macro?
--- Mayuresh Kshirsagar <[EMAIL PROTECTED]>
wrote:
> Hi I am trying the following block:
>
> <target name="init">
> <tstamp/>
>
> <macrodef name="ReadConfig">
> <attribute name="buildType" default="all"/>
> <element name="SomeMoreTasks" optional="true"/>
> <sequential>
> <echo message="The build type is @{buildType}"/>
> <echo message="Reading property file
> @{buildType}.cfg"/>
>
> <!--Check if the config file is available-->
> <assert>
> <available file="@{buildType}.cfg"/>
> </assert>
>
> <property file="@{buildType}.cfg"/>
> <SomeMoreTasks/>
> <fail/>
> </sequential>
> </macrodef>
> </target>
>
> But the fail as I have placed doesn't fail the
> build. Only if I place
> fail outside macrodef, then alone does the build
> file. How can I make
> the build file by placing <fail/> where it is?
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]