Andrei wrote:
Hi guys. I have a problem with macrodef usage. I declared a macrodef to start
jBoss
<macrodef name="start-jboss">
<attribute name="conf"
description="The config name passed in as the -c option to jboss"/>
<attribute name="host" default="${node0}"
description="The hostname/address passed in as the -b option to jboss"
/>
<attribute name="jvmargs" default="-Xmx256m"
description="An additional jvmarg line set after any ${jpda.cmdline}"/>
<sequential>
<echo message="Will start the jboss instance @{host} with @{conf}"/>
<java classname="org.jboss.Main" fork="true" spawn="true"
dir="${jboss.dist}/bin">
<classpath refid="jboss.boot.classpath"/>
<jvmarg line="${jpda.cmdline}" />
<jvmarg line="@{jvmargs}" />
<arg value="-c"/>
<arg value="@{conf}"/>
<arg value="-b"/>
<arg value="@{host}"/>
</java>
</sequential>
</macrodef>
and here is the target who uses this macro:
<target name="ss">
<start-jboss conf="default" jvmargs="-Xmx256m"/>
</target>
When i try to run the target ss i get the following mesage:
file:C:/mytest/build.xml:35: Unexpected element "macrodef" What means
this? Can anybody help me?
what does ant -version say?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]