[Anthill-pro] problems with spawn fork in javaw task.
Brian Dellisanti
bdd at urbancode.com
Mon Apr 28 10:32:24 CDT 2008
Ronald,
It is also critical that the command not produce any output, or else it will
block once the output buffer is full. You can discard the output by adding
'> NUL' (without quotes) to the end of your command.
Regards,
Brian
On Mon, Apr 28, 2008 at 11:11 AM, Ryan Smith <rws at urbancode.com> wrote:
> Ronald,
>
> Unfortunately on Windows it is not possible to process the output of the
> Ant script and for the Ant script to spawn a disconnected process. The
> nature of spawning another process causes the output streams to stay open.
> We can accomplish this with our Shell builder if you click the check box to
> close the streams. You would have to enter the java command as it would
> appear on the command line.
>
> Ryan Smith
>
> Ronald Barrett wrote:
>
> > Hi all,
> > I am woking on an ant build file that is using the ant java task. I
> > want to be able to spawn a new task and then exit the build.xml.
> > This is the target I am using.
> >
> > <java dir="${install.dir}/server/${config.name}/conf"
> > classname="org.jboss.Main" fork="true" spawn="true" >
> >
> > <arg line=" -c ${config.name} "/>
> >
> > <arg line=" -b ${jboss.bind.address} "/>
> >
> > <jvmarg value="-server"/>
> >
> > <jvmarg value="-Xms312m"/>
> >
> > <jvmarg value="-Xmx312m"/>
> >
> > <classpath>
> >
> > <pathelement path="${install.dir}/bin/run.jar"/>
> >
> > <pathelement path="${jdk_home}/lib/tools.jar"/>
> >
> > </classpath>
> >
> > </java>
> >
> >
> >
> > This works on a linux machine but on a windows box the anthillpro
> > job/step hangs a the end. It shows a Build Successful but the indicator is
> > still running. The job can only be ended by aborting the job. Is this a
> > known issue? Can anyone help.
> >
> >
> > Thanks,
> >
> >
> > Ron Barrett
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Anthill-pro mailing list
> > Anthill-pro at lists.urbancode.com
> > http://lists.urbancode.com/mailman/listinfo/anthill-pro
> >
>
> --
> ===========================================================
> Ryan Smith. 2044 Euclid Ave., Suite 600
> Developer Cleveland, Ohio 44115
> Urbancode, Inc.
> email: rws at urbancode.com
> web: www.urbancode.com phone: 216-858-9000
> web: www.anthillpro.com fax: 216-858-9602
> ===========================================================
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080428/cfbaa68c/attachment-0001.htm
More information about the Anthill-pro
mailing list