ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei" <and...@netrom.ro>
Subject Macrodef Problem Urgent
Date Wed, 09 Nov 2005 12:17:55 GMT
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?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message