Re: build hangs under Anthill but not from cmd-line
Varban <[email protected]> Tue, 22 Aug 2006 14:08:42 -0400
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Organization | Urbancode |
| Message-ID | <[email protected]> |
Hi Marcio,
since all Anthill does is execute ant with the parameters you specify, it
looks like there has to be some sort of environment setting difference
between the command line and the anthill process. Usually we see that when
the servlet container runs Anthill under a system user with very limited
permissions.
I would suggest that you include a task in your build script that will print
out all of the environment settings so that you can compare them with the
command line environment settings (you can probably tell which user is
running Anthill from there as well).
In this case it seems that ant cannot access the loopback interface?
Regards,
Varban
On Tuesday 22 August 2006 13:17, Marcio Marchini wrote:
> Hi,
>
> I was finally able to narrow down where the build was hanging in my
> case. It's here:
>
> <target name="init-fitnesse" depends="init" unless="testsFailed"
> description="Initializes Fitnesse for Acceptance Tests">
> <!-- First check if there is a public FitNesse server running locally -->
> <echo message="First check if there is a public FitNesse server
> running locally at
> http://${fitnesse.server_host}:${fitnesse.server_port}" />
> <condition property="fitesse.public.running">
> <http url="http://${fitnesse.server_host}:${fitnesse.server_port}" />
> </condition>
> <!-- Check for JARs -->
> <echo message="Check for JARs" />
>
>
>
> The last thing it prints is
> init-fitnesse:
> [echo] First check if there is a public FitNesse server running
> locally at http://localhost:5050
>
>
> And nothing after that. With ProcessExplorer (sysinternals) I can see
> that there's a java.exe running, eating no CPU at all. This is the one
> that launches right after cmd.exe (ant). SO, my guess is that it is
> stuck in the line that checks if the URL exists.
>
> The same build works from the cmd-line, passing the exact same
> parameters as Anthill is passing.
>
> The same build works fine from Eclipse.
>
> The same build works fine from Luntbuild.
>
> Now... why is it freezing on the line above under Anthill???
>
> Ideas? Tips? Thanks,
>
> marcio
> _______________________________________________
> Anthill mailing list
> Anthill-IWHQxnLZ/[email protected]
> http://lists.urbancode.com/mailman/listinfo/anthill