I solved the problem by upgrading to ant 1.6.5 .

----- Original Message ----- From: "Andrei" <[EMAIL PROTECTED]>
To: "Ant Users List" <user@ant.apache.org>
Sent: Thursday, November 24, 2005 10:48 AM
Subject: start jboss task failing after a compile task


I have a problem starting jboss when running the following target sequence "clean compile aa". From my test i observed that jboss start task fails if there exists a compile target in the build sequence. If i cancel the build ( CTRL + C ) in the moment when the message "Terminate batch job (Y/N)?" appears, the start jboss target runs and successfully starts JBoss The sequence "clean aa" works fine. Does any body has a logical explanation for my problem? How can i fix this problem? There exists an workaround for this?

Here are the targets that i use:

<target name="aa">
   <echo message="jboss.dist= ${jboss.dist}"/>
   <start-jboss conf="default"/>
   <echo message="wait for JBoss to start"/>
   <wait-on-host/>

   <antcall target="test-mytest"/>
   <echo message="Test OK stopping JBoss ..."/>
   <stop-jboss/>
</target>

  <macrodef name="start-jboss">
       <attribute name="conf"/>
<attribute name="jvmargs" default="-Djava.endorsed.dirs=C:\java\jboss\lib\endorsed"/>
       <sequential>
<echo message="Will start the jboss instance localhost with @{conf}"/> <java classname="org.jboss.Main" fork="true" spawn="true" dir="c:/java/jboss/bin">
               <classpath refid="jboss.boot.classpath"/>
               <jvmarg line="${jpda.cmdline}"/>
               <jvmarg line="@{jvmargs}"/>
               <arg value="-c"/>
               <arg value="@{conf}"/>
           </java>
       </sequential>
   </macrodef>

   <target name="compile">
       <mkdir dir="${build.classes.dir}"/>
       <javac
           destdir="${build.classes.dir}"
           debug="on"
           debuglevel="lines,source"
           deprecation="off"
           optimize="on"
           classpathref="local.path"
           >
           <src path="${src.dir}"/>
       </javac>
   </target>

   <target name="clean">
       <delete dir="${build.dir}"/>
   </target>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to