You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jesper Linvald <JE...@maerskdata.dk> on 2004/06/29 15:23:53 UTC
maven parallel/sequential
Hello all,
I been trying to get the ant parallel task to work with no success :(
In my goal I have:
<parallel>
<sequential>
<attainGoal name="weblogic:server-start"/>
<waitfor maxwait="3" maxwaitunit="minute"
checkevery="100" checkeveryunit="millisecond">
<http url=
"http://localhost:7001/console/login/LoginForm.jsp"/>
</waitfor>
<attainGoal name="selfservice:weblogic-deploy" />
</sequential>
</parallel>
The "weblogic:server-start" uses the java task to startup a weblogic
server (fork=true)
The starts up fine but nothing more happens - I never get to the
"selfservice:weblogic-deploy" - the server blocks the process...
Can anybody tell me what I might be doing wrong?
I also tried prepending "ant" to the tags (<ant:parallel>) but this makes
no difference...
Best regards
Jesper Linvald
MAERSK DATA TRANSPORT
Tel no.: +45 3911 1891
e-mail: JELI@maerskdata.dk
RE: maven parallel/sequential
Posted by Jesper Linvald <je...@kabelnettet.dk>.
Thank you very much - will try this right away.... :)
>-----Original Message-----
>From: Maksimenko Alexander [mailto:maksimenko@bird.cris.net]
>Sent: 29. juni 2004 15:37
>To: Maven Users List
>Subject: Re: maven parallel/sequential
>
>use
>xmlns:threads="jelly:threads"
>
><threads:thread>
> <attainGoal name="weblogic:server-start"/>
></threads:thread>
>
><waitfor ....
><attainGoal name="selfservice:weblogic-deploy" />
>
>
>perhaps you also need to add dependency :
> <dependency>
> <groupId>commons-jelly</groupId>
> <artifactId>commons-jelly-tags-threads</artifactId>
> <version>20030211.143515</version>
> </dependency>
>
>
>>Hello all,
>>
>>I been trying to get the ant parallel task to work with no success :(
>>
>>In my goal I have:
>> <parallel>
>> <sequential>
>> <attainGoal name="weblogic:server-start"/>
>> <waitfor maxwait="3" maxwaitunit="minute"
>>checkevery="100" checkeveryunit="millisecond">
>> <http url=
>>"http://localhost:7001/console/login/LoginForm.jsp"/>
>> </waitfor>
>> <attainGoal name="selfservice:weblogic-deploy" />
>> </sequential>
>> </parallel>
>>
>>The "weblogic:server-start" uses the java task to startup a weblogic
>>server (fork=true)
>>The starts up fine but nothing more happens - I never get to the
>>"selfservice:weblogic-deploy" - the server blocks the process...
>>
>>Can anybody tell me what I might be doing wrong?
>>
>>I also tried prepending "ant" to the tags (<ant:parallel>) but this makes
>>no difference...
>>
>>Best regards
>>
>>Jesper Linvald
>>MAERSK DATA TRANSPORT
>>Tel no.: +45 3911 1891
>>e-mail: JELI@maerskdata.dk
>>
>>
>>
>
>
>--
>Maksimenko Alexander
>Softwarium, www.softwarium.net
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.708 / Virus Database: 464 - Release Date: 18-06-2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 18-06-2004
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven parallel/sequential
Posted by Maksimenko Alexander <ma...@bird.cris.net>.
use
xmlns:threads="jelly:threads"
<threads:thread>
<attainGoal name="weblogic:server-start"/>
</threads:thread>
<waitfor ....
<attainGoal name="selfservice:weblogic-deploy" />
perhaps you also need to add dependency :
<dependency>
<groupId>commons-jelly</groupId>
<artifactId>commons-jelly-tags-threads</artifactId>
<version>20030211.143515</version>
</dependency>
>Hello all,
>
>I been trying to get the ant parallel task to work with no success :(
>
>In my goal I have:
> <parallel>
> <sequential>
> <attainGoal name="weblogic:server-start"/>
> <waitfor maxwait="3" maxwaitunit="minute"
>checkevery="100" checkeveryunit="millisecond">
> <http url=
>"http://localhost:7001/console/login/LoginForm.jsp"/>
> </waitfor>
> <attainGoal name="selfservice:weblogic-deploy" />
> </sequential>
> </parallel>
>
>The "weblogic:server-start" uses the java task to startup a weblogic
>server (fork=true)
>The starts up fine but nothing more happens - I never get to the
>"selfservice:weblogic-deploy" - the server blocks the process...
>
>Can anybody tell me what I might be doing wrong?
>
>I also tried prepending "ant" to the tags (<ant:parallel>) but this makes
>no difference...
>
>Best regards
>
>Jesper Linvald
>MAERSK DATA TRANSPORT
>Tel no.: +45 3911 1891
>e-mail: JELI@maerskdata.dk
>
>
>
--
Maksimenko Alexander
Softwarium, www.softwarium.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven parallel/sequential
Posted by "Jefferson K. French" <je...@frenches.org>.
I tried this a few months ago with no luck myself. Someone suggested
it might be a bug in the Jelly Ant taglib, so I grabbed the sources
and started playing around with it. It does look to me to be a bug in
jelly:ant. I tried to come up with a fix, but after a while realized I
was two tangents past my original problem, and looked for a
workaround.
I've used Jelly's thread package a few times with success, although
when I had to spawn multiple processes and wait for them all to
complete, the Jelly gave me problems and I ended up writing an Ant
task to do it.
Jeff
On Tue, 29 Jun 2004, at 15:23:53 [GMT +0200] Jesper Linvald wrote:
> Hello all,
> I been trying to get the ant parallel task to work with no success :(
> In my goal I have:
> <parallel>
> <sequential>
> <attainGoal name="weblogic:server-start"/>
> <waitfor maxwait="3" maxwaitunit="minute"
> checkevery="100" checkeveryunit="millisecond">
> <http url=
> "http://localhost:7001/console/login/LoginForm.jsp"/>
> </waitfor>
> <attainGoal name="selfservice:weblogic-deploy" />
> </sequential>
> </parallel>
> The "weblogic:server-start" uses the java task to startup a weblogic
> server (fork=true)
> The starts up fine but nothing more happens - I never get to the
> "selfservice:weblogic-deploy" - the server blocks the process...
> Can anybody tell me what I might be doing wrong?
> I also tried prepending "ant" to the tags (<ant:parallel>) but this makes
> no difference...
> Best regards
> Jesper Linvald
> MAERSK DATA TRANSPORT
> Tel no.: +45 3911 1891
> e-mail: JELI@maerskdata.dk
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven parallel/sequential
Posted by Dion Gillard <di...@gmail.com>.
Have you tried the jelly thread tag?
On Tue, 29 Jun 2004 15:23:53 +0200, Jesper Linvald <je...@maerskdata.dk> wrote:
>
> Hello all,
>
> I been trying to get the ant parallel task to work with no success :(
>
> In my goal I have:
> <parallel>
> <sequential>
> <attainGoal name="weblogic:server-start"/>
> <waitfor maxwait="3" maxwaitunit="minute"
> checkevery="100" checkeveryunit="millisecond">
> <http url=
> "http://localhost:7001/console/login/LoginForm.jsp"/>
> </waitfor>
> <attainGoal name="selfservice:weblogic-deploy" />
> </sequential>
> </parallel>
>
> The "weblogic:server-start" uses the java task to startup a weblogic
> server (fork=true)
> The starts up fine but nothing more happens - I never get to the
> "selfservice:weblogic-deploy" - the server blocks the process...
>
> Can anybody tell me what I might be doing wrong?
>
> I also tried prepending "ant" to the tags (<ant:parallel>) but this makes
> no difference...
>
> Best regards
>
> Jesper Linvald
> MAERSK DATA TRANSPORT
> Tel no.: +45 3911 1891
> e-mail: JELI@maerskdata.dk
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: maven parallel/sequential
Posted by Charles Daniels <cj...@yahoo.com>.
You need to move <attainGoal name="weblogic:server-start"/> just above your
<sequential> tag (and just after your <parallel> tag). As you have it
written, nothing will execute in parallel since all of your subtasks are
within the sequential tags.
> -----Original Message-----
> From: Jesper Linvald [mailto:JELI@maerskdata.dk]
> Sent: Tuesday, June 29, 2004 9:24 AM
> To: users@maven.apache.org
> Subject: maven parallel/sequential
>
>
> Hello all,
>
> I been trying to get the ant parallel task to work with no success :(
>
> In my goal I have:
> <parallel>
> <sequential>
> <attainGoal name="weblogic:server-start"/>
> <waitfor maxwait="3" maxwaitunit="minute"
> checkevery="100" checkeveryunit="millisecond">
> <http url=
> "http://localhost:7001/console/login/LoginForm.jsp"/>
> </waitfor>
> <attainGoal name="selfservice:weblogic-deploy" />
> </sequential>
> </parallel>
>
> The "weblogic:server-start" uses the java task to startup a weblogic
> server (fork=true)
> The starts up fine but nothing more happens - I never get to the
> "selfservice:weblogic-deploy" - the server blocks the process...
>
> Can anybody tell me what I might be doing wrong?
>
> I also tried prepending "ant" to the tags (<ant:parallel>) but this makes
> no difference...
>
> Best regards
>
> Jesper Linvald
> MAERSK DATA TRANSPORT
> Tel no.: +45 3911 1891
> e-mail: JELI@maerskdata.dk
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org