You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Maksimenko Alexander <al...@softwarium.net> on 2006/06/14 12:55:09 UTC

build is not finished if start executable

hi!
I spent 2 days to the following problem :
I start executable in ant script

    <target name=" ">
        <exec executable="cmd" dir="." spawn="true">       
            <arg line="/C start calc.exe"/>
        </exec>
    </target>

the execution of ant script has been finished but continuum build is not 
marked finished until I close calculator application

I look at continuum's log file and find out that it starts ant script by 
following shell command:

ant -f build.xml  continium

So I perform this command in shell and everything is ok - ant script has 
been finished just after calculator is launched

Did I miss  something or is it a bug?

Re: build is not finished if start executable

Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Emmanuel Venisse wrote:
> Hmm, very strange.
>
> Do you have updated your ant script? 
> http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build 
>

yes of cause
has anybody tried to restart server in project build? I thought it is 
common task for continues  integration to restart server

>
> Emmanuel
>
> Maksimenko Alexander a écrit :
>> Emmanuel Venisse wrote:
>>> BUILD SUCCESSFUL isn't a continuum message but a ant message.
>>>
>>> it's perhaps a bug in ShellCommandHelper, the exit code is return by 
>>> Process class and printed in AbstractBuildExecutor (line 189).
>>> so if you don't have "Exit code:" in your log, it's because Process 
>>> objec doesn't return it.
>>>
>>> Can you try with a non gui app?
>>
>> yes
>> the same result ;(
>>>
>>> Emmanuel
>>>
>>> Maksimenko Alexander a écrit :
>>>> Emmanuel Venisse wrote:
>>>>> if it's all your logs, the ant process isn't finished because you 
>>>>> should have "return code = 0" in log
>>>>>
>>>>
>>>> but if it's not  finished  - what does it mean BUILD SUCCESSFUL 
>>>> message in continuum's log?
>>>> if I perform this task in shell  then ant process will be finished
>>>> so may be incorrect work in ShellCommandHelper ?
>>>>
>>>> ps this log message is appear when I close calculator application
>>>>
>>>>> Emmanuel
>>>>>
>>>>> Maksimenko Alexander a écrit :
>>>>>> Emmanuel Venisse wrote:
>>>>>>> Can you send your continuum logs?
>>>>>> it's nothing odd in the log :
>>>>>>
>>>>>> INFO  Continuum                      - Enqueuing 'processbuilder' 
>>>>>> (Build definition id=1).
>>>>>> INFO  ContinuumScm                   - Updating project: id: '1', 
>>>>>> name 'processbuilder'.
>>>>>> INFO  ScmManager                     - Executing: svn --username 
>>>>>> *** --password ***** --non-interactive update
>>>>>> INFO  ScmManager                     - Working directory: 
>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>
>>>>>> DEBUG ScmManager                     - At revision 3172.
>>>>>> NFO  Action:update-project-from-working-directory - Updating 
>>>>>> project 'processbuilder' from checkout.
>>>>>> INFO  ShellCommandHelper             - Executing: 
>>>>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>>>>>> INFO  ShellCommandHelper             - Working directory: 
>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>
>>>>>>
>>>>>>
>>>>>> my build target:
>>>>>>
>>>>>>    <target name="continium">
>>>>>>        <exec executable="cmd" dir="${engine.dir}" 
>>>>>> spawn="true">                  <arg line="/C start calc.exe"/>
>>>>>>        </exec>
>>>>>>
>>>>>>        <waitfor maxwait="30" maxwaitunit="second" 
>>>>>> timeoutproperty="server.is.unavailable">
>>>>>>              <http url="http://localhost"/>
>>>>>>        </waitfor>              <echo>finish</echo>
>>>>>>    </target>
>>>>>>
>>>>>> build result:
>>>>>>
>>>>>> Buildfile: build.xml
>>>>>>
>>>>>> continium:
>>>>>>     [echo] finish
>>>>>>
>>>>>> BUILD SUCCESSFUL
>>>>>>
>>>>>>
>>>>>> Total time: 39 seconds
>>>>>>
>>>>>>
>>>>>> but state is "Build In Progess" ;(
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>



Re: build is not finished if start executable

Posted by Marcin Gurbisz <gu...@gmail.com>.
Hi,

I have the same problem. I want to run jboss after successful build
using exec ant task but this hangs continuum build. I believed that
adding spawn="true" attribute will solve the problem (seems that ant
process waits for jboss process to finish, thus continuum waits too)
but result is the same - continuum hangs.
Problem seems not to be Continuum specific problem - please also look
at http://www.dehora.net/journal/2005/04/cruisecontrol_not_starting_jboss_container.html.
Have anybody started jboss from continuum using ant/maven1 without
hanging Continuum?

Cheers,
Marcin

On 6/19/06, Maksimenko Alexander <ma...@bird.cris.net> wrote:
> Emmanuel Venisse wrote:
> > Which server do you want to restart?
>
> jboss
> but even I start simple bat file continuum is not finished until this
> bat does not mark it's build as finished until this bat is not stopped
>
> are you successful in restarting another server?
> >
> > Maksimenko Alexander a écrit :
> >> Emmanuel Venisse wrote:
> >>> Hmm, very strange.
> >>>
> >>> Do you have updated your ant script?
> >>> http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build
> >>>
> >>
> >> yes of cause
> >> has anybody tried to restart server in project build? I think it is
> >> common task for continues  integration
> >>
> >>>
> >>> Emmanuel
> >>>
> >>> Maksimenko Alexander a écrit :
> >>>> Emmanuel Venisse wrote:
> >>>>> BUILD SUCCESSFUL isn't a continuum message but a ant message.
> >>>>>
> >>>>> it's perhaps a bug in ShellCommandHelper, the exit code is return
> >>>>> by Process class and printed in AbstractBuildExecutor (line 189).
> >>>>> so if you don't have "Exit code:" in your log, it's because
> >>>>> Process objec doesn't return it.
> >>>>>
> >>>>> Can you try with a non gui app?
> >>>>
> >>>> yes
> >>>> the same result ;(
> >>>>>
> >>>>> Emmanuel
> >>>>>
> >>>>> Maksimenko Alexander a écrit :
> >>>>>> Emmanuel Venisse wrote:
> >>>>>>> if it's all your logs, the ant process isn't finished because
> >>>>>>> you should have "return code = 0" in log
> >>>>>>>
> >>>>>>
> >>>>>> but if it's not  finished  - what does it mean BUILD SUCCESSFUL
> >>>>>> message in continuum's log?
> >>>>>> if I perform this task in shell  then ant process will be finished
> >>>>>> so may be incorrect work in ShellCommandHelper ?
> >>>>>>
> >>>>>> ps this log message is appear when I close calculator application
> >>>>>>
> >>>>>>> Emmanuel
> >>>>>>>
> >>>>>>> Maksimenko Alexander a écrit :
> >>>>>>>> Emmanuel Venisse wrote:
> >>>>>>>>> Can you send your continuum logs?
> >>>>>>>> it's nothing odd in the log :
> >>>>>>>>
> >>>>>>>> INFO  Continuum                      - Enqueuing
> >>>>>>>> 'processbuilder' (Build definition id=1).
> >>>>>>>> INFO  ContinuumScm                   - Updating project: id:
> >>>>>>>> '1', name 'processbuilder'.
> >>>>>>>> INFO  ScmManager                     - Executing: svn
> >>>>>>>> --username *** --password ***** --non-interactive update
> >>>>>>>> INFO  ScmManager                     - Working directory:
> >>>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1
> >>>>>>>>
> >>>>>>>> DEBUG ScmManager                     - At revision 3172.
> >>>>>>>> NFO  Action:update-project-from-working-directory - Updating
> >>>>>>>> project 'processbuilder' from checkout.
> >>>>>>>> INFO  ShellCommandHelper             - Executing:
> >>>>>>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
> >>>>>>>> INFO  ShellCommandHelper             - Working directory:
> >>>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> my build target:
> >>>>>>>>
> >>>>>>>>    <target name="continium">
> >>>>>>>>        <exec executable="cmd" dir="${engine.dir}"
> >>>>>>>> spawn="true">                  <arg line="/C start calc.exe"/>
> >>>>>>>>        </exec>
> >>>>>>>>
> >>>>>>>>        <waitfor maxwait="30" maxwaitunit="second"
> >>>>>>>> timeoutproperty="server.is.unavailable">
> >>>>>>>>              <http url="http://localhost"/>
> >>>>>>>>        </waitfor>              <echo>finish</echo>
> >>>>>>>>    </target>
> >>>>>>>>
> >>>>>>>> build result:
> >>>>>>>>
> >>>>>>>> Buildfile: build.xml
> >>>>>>>>
> >>>>>>>> continium:
> >>>>>>>>     [echo] finish
> >>>>>>>>
> >>>>>>>> BUILD SUCCESSFUL
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Total time: 39 seconds
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> but state is "Build In Progess" ;(
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> >>
> >
> >
>
>

Re: build is not finished if start executable

Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Emmanuel Venisse wrote:
> Which server do you want to restart?

jboss
but even I start simple bat file continuum is not finished until this 
bat does not mark it's build as finished until this bat is not stopped

are you successful in restarting another server?
>
> Maksimenko Alexander a écrit :
>> Emmanuel Venisse wrote:
>>> Hmm, very strange.
>>>
>>> Do you have updated your ant script? 
>>> http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build 
>>>
>>
>> yes of cause
>> has anybody tried to restart server in project build? I think it is 
>> common task for continues  integration
>>
>>>
>>> Emmanuel
>>>
>>> Maksimenko Alexander a écrit :
>>>> Emmanuel Venisse wrote:
>>>>> BUILD SUCCESSFUL isn't a continuum message but a ant message.
>>>>>
>>>>> it's perhaps a bug in ShellCommandHelper, the exit code is return 
>>>>> by Process class and printed in AbstractBuildExecutor (line 189).
>>>>> so if you don't have "Exit code:" in your log, it's because 
>>>>> Process objec doesn't return it.
>>>>>
>>>>> Can you try with a non gui app?
>>>>
>>>> yes
>>>> the same result ;(
>>>>>
>>>>> Emmanuel
>>>>>
>>>>> Maksimenko Alexander a écrit :
>>>>>> Emmanuel Venisse wrote:
>>>>>>> if it's all your logs, the ant process isn't finished because 
>>>>>>> you should have "return code = 0" in log
>>>>>>>
>>>>>>
>>>>>> but if it's not  finished  - what does it mean BUILD SUCCESSFUL 
>>>>>> message in continuum's log?
>>>>>> if I perform this task in shell  then ant process will be finished
>>>>>> so may be incorrect work in ShellCommandHelper ?
>>>>>>
>>>>>> ps this log message is appear when I close calculator application
>>>>>>
>>>>>>> Emmanuel
>>>>>>>
>>>>>>> Maksimenko Alexander a écrit :
>>>>>>>> Emmanuel Venisse wrote:
>>>>>>>>> Can you send your continuum logs?
>>>>>>>> it's nothing odd in the log :
>>>>>>>>
>>>>>>>> INFO  Continuum                      - Enqueuing 
>>>>>>>> 'processbuilder' (Build definition id=1).
>>>>>>>> INFO  ContinuumScm                   - Updating project: id: 
>>>>>>>> '1', name 'processbuilder'.
>>>>>>>> INFO  ScmManager                     - Executing: svn 
>>>>>>>> --username *** --password ***** --non-interactive update
>>>>>>>> INFO  ScmManager                     - Working directory: 
>>>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>>>
>>>>>>>> DEBUG ScmManager                     - At revision 3172.
>>>>>>>> NFO  Action:update-project-from-working-directory - Updating 
>>>>>>>> project 'processbuilder' from checkout.
>>>>>>>> INFO  ShellCommandHelper             - Executing: 
>>>>>>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>>>>>>>> INFO  ShellCommandHelper             - Working directory: 
>>>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> my build target:
>>>>>>>>
>>>>>>>>    <target name="continium">
>>>>>>>>        <exec executable="cmd" dir="${engine.dir}" 
>>>>>>>> spawn="true">                  <arg line="/C start calc.exe"/>
>>>>>>>>        </exec>
>>>>>>>>
>>>>>>>>        <waitfor maxwait="30" maxwaitunit="second" 
>>>>>>>> timeoutproperty="server.is.unavailable">
>>>>>>>>              <http url="http://localhost"/>
>>>>>>>>        </waitfor>              <echo>finish</echo>
>>>>>>>>    </target>
>>>>>>>>
>>>>>>>> build result:
>>>>>>>>
>>>>>>>> Buildfile: build.xml
>>>>>>>>
>>>>>>>> continium:
>>>>>>>>     [echo] finish
>>>>>>>>
>>>>>>>> BUILD SUCCESSFUL
>>>>>>>>
>>>>>>>>
>>>>>>>> Total time: 39 seconds
>>>>>>>>
>>>>>>>>
>>>>>>>> but state is "Build In Progess" ;(
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>


Re: build is not finished if start executable

Posted by Emmanuel Venisse <em...@venisse.net>.
Which server do you want to restart?

Maksimenko Alexander a écrit :
> Emmanuel Venisse wrote:
>> Hmm, very strange.
>>
>> Do you have updated your ant script? 
>> http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build 
>>
> 
> yes of cause
> has anybody tried to restart server in project build? I think it is 
> common task for continues  integration
> 
>>
>> Emmanuel
>>
>> Maksimenko Alexander a écrit :
>>> Emmanuel Venisse wrote:
>>>> BUILD SUCCESSFUL isn't a continuum message but a ant message.
>>>>
>>>> it's perhaps a bug in ShellCommandHelper, the exit code is return by 
>>>> Process class and printed in AbstractBuildExecutor (line 189).
>>>> so if you don't have "Exit code:" in your log, it's because Process 
>>>> objec doesn't return it.
>>>>
>>>> Can you try with a non gui app?
>>>
>>> yes
>>> the same result ;(
>>>>
>>>> Emmanuel
>>>>
>>>> Maksimenko Alexander a écrit :
>>>>> Emmanuel Venisse wrote:
>>>>>> if it's all your logs, the ant process isn't finished because you 
>>>>>> should have "return code = 0" in log
>>>>>>
>>>>>
>>>>> but if it's not  finished  - what does it mean BUILD SUCCESSFUL 
>>>>> message in continuum's log?
>>>>> if I perform this task in shell  then ant process will be finished
>>>>> so may be incorrect work in ShellCommandHelper ?
>>>>>
>>>>> ps this log message is appear when I close calculator application
>>>>>
>>>>>> Emmanuel
>>>>>>
>>>>>> Maksimenko Alexander a écrit :
>>>>>>> Emmanuel Venisse wrote:
>>>>>>>> Can you send your continuum logs?
>>>>>>> it's nothing odd in the log :
>>>>>>>
>>>>>>> INFO  Continuum                      - Enqueuing 'processbuilder' 
>>>>>>> (Build definition id=1).
>>>>>>> INFO  ContinuumScm                   - Updating project: id: '1', 
>>>>>>> name 'processbuilder'.
>>>>>>> INFO  ScmManager                     - Executing: svn --username 
>>>>>>> *** --password ***** --non-interactive update
>>>>>>> INFO  ScmManager                     - Working directory: 
>>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>>
>>>>>>> DEBUG ScmManager                     - At revision 3172.
>>>>>>> NFO  Action:update-project-from-working-directory - Updating 
>>>>>>> project 'processbuilder' from checkout.
>>>>>>> INFO  ShellCommandHelper             - Executing: 
>>>>>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>>>>>>> INFO  ShellCommandHelper             - Working directory: 
>>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> my build target:
>>>>>>>
>>>>>>>    <target name="continium">
>>>>>>>        <exec executable="cmd" dir="${engine.dir}" 
>>>>>>> spawn="true">                  <arg line="/C start calc.exe"/>
>>>>>>>        </exec>
>>>>>>>
>>>>>>>        <waitfor maxwait="30" maxwaitunit="second" 
>>>>>>> timeoutproperty="server.is.unavailable">
>>>>>>>              <http url="http://localhost"/>
>>>>>>>        </waitfor>              <echo>finish</echo>
>>>>>>>    </target>
>>>>>>>
>>>>>>> build result:
>>>>>>>
>>>>>>> Buildfile: build.xml
>>>>>>>
>>>>>>> continium:
>>>>>>>     [echo] finish
>>>>>>>
>>>>>>> BUILD SUCCESSFUL
>>>>>>>
>>>>>>>
>>>>>>> Total time: 39 seconds
>>>>>>>
>>>>>>>
>>>>>>> but state is "Build In Progess" ;(
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
> 
> 
> 
> 


Re: build is not finished if start executable

Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Emmanuel Venisse wrote:
> Hmm, very strange.
>
> Do you have updated your ant script? 
> http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build 
>

yes of cause
has anybody tried to restart server in project build? I think it is 
common task for continues  integration

>
> Emmanuel
>
> Maksimenko Alexander a écrit :
>> Emmanuel Venisse wrote:
>>> BUILD SUCCESSFUL isn't a continuum message but a ant message.
>>>
>>> it's perhaps a bug in ShellCommandHelper, the exit code is return by 
>>> Process class and printed in AbstractBuildExecutor (line 189).
>>> so if you don't have "Exit code:" in your log, it's because Process 
>>> objec doesn't return it.
>>>
>>> Can you try with a non gui app?
>>
>> yes
>> the same result ;(
>>>
>>> Emmanuel
>>>
>>> Maksimenko Alexander a écrit :
>>>> Emmanuel Venisse wrote:
>>>>> if it's all your logs, the ant process isn't finished because you 
>>>>> should have "return code = 0" in log
>>>>>
>>>>
>>>> but if it's not  finished  - what does it mean BUILD SUCCESSFUL 
>>>> message in continuum's log?
>>>> if I perform this task in shell  then ant process will be finished
>>>> so may be incorrect work in ShellCommandHelper ?
>>>>
>>>> ps this log message is appear when I close calculator application
>>>>
>>>>> Emmanuel
>>>>>
>>>>> Maksimenko Alexander a écrit :
>>>>>> Emmanuel Venisse wrote:
>>>>>>> Can you send your continuum logs?
>>>>>> it's nothing odd in the log :
>>>>>>
>>>>>> INFO  Continuum                      - Enqueuing 'processbuilder' 
>>>>>> (Build definition id=1).
>>>>>> INFO  ContinuumScm                   - Updating project: id: '1', 
>>>>>> name 'processbuilder'.
>>>>>> INFO  ScmManager                     - Executing: svn --username 
>>>>>> *** --password ***** --non-interactive update
>>>>>> INFO  ScmManager                     - Working directory: 
>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>
>>>>>> DEBUG ScmManager                     - At revision 3172.
>>>>>> NFO  Action:update-project-from-working-directory - Updating 
>>>>>> project 'processbuilder' from checkout.
>>>>>> INFO  ShellCommandHelper             - Executing: 
>>>>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>>>>>> INFO  ShellCommandHelper             - Working directory: 
>>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>>
>>>>>>
>>>>>>
>>>>>> my build target:
>>>>>>
>>>>>>    <target name="continium">
>>>>>>        <exec executable="cmd" dir="${engine.dir}" 
>>>>>> spawn="true">                  <arg line="/C start calc.exe"/>
>>>>>>        </exec>
>>>>>>
>>>>>>        <waitfor maxwait="30" maxwaitunit="second" 
>>>>>> timeoutproperty="server.is.unavailable">
>>>>>>              <http url="http://localhost"/>
>>>>>>        </waitfor>              <echo>finish</echo>
>>>>>>    </target>
>>>>>>
>>>>>> build result:
>>>>>>
>>>>>> Buildfile: build.xml
>>>>>>
>>>>>> continium:
>>>>>>     [echo] finish
>>>>>>
>>>>>> BUILD SUCCESSFUL
>>>>>>
>>>>>>
>>>>>> Total time: 39 seconds
>>>>>>
>>>>>>
>>>>>> but state is "Build In Progess" ;(
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>


Re: build is not finished if start executable

Posted by Emmanuel Venisse <em...@venisse.net>.
Hmm, very strange.

Do you have updated your ant script? 
http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build

Emmanuel

Maksimenko Alexander a écrit :
> Emmanuel Venisse wrote:
>> BUILD SUCCESSFUL isn't a continuum message but a ant message.
>>
>> it's perhaps a bug in ShellCommandHelper, the exit code is return by 
>> Process class and printed in AbstractBuildExecutor (line 189).
>> so if you don't have "Exit code:" in your log, it's because Process 
>> objec doesn't return it.
>>
>> Can you try with a non gui app?
> 
> yes
> the same result ;(
>>
>> Emmanuel
>>
>> Maksimenko Alexander a écrit :
>>> Emmanuel Venisse wrote:
>>>> if it's all your logs, the ant process isn't finished because you 
>>>> should have "return code = 0" in log
>>>>
>>>
>>> but if it's not  finished  - what does it mean BUILD SUCCESSFUL 
>>> message in continuum's log?
>>> if I perform this task in shell  then ant process will be finished
>>> so may be incorrect work in ShellCommandHelper ?
>>>
>>> ps this log message is appear when I close calculator application
>>>
>>>> Emmanuel
>>>>
>>>> Maksimenko Alexander a écrit :
>>>>> Emmanuel Venisse wrote:
>>>>>> Can you send your continuum logs?
>>>>> it's nothing odd in the log :
>>>>>
>>>>> INFO  Continuum                      - Enqueuing 'processbuilder' 
>>>>> (Build definition id=1).
>>>>> INFO  ContinuumScm                   - Updating project: id: '1', 
>>>>> name 'processbuilder'.
>>>>> INFO  ScmManager                     - Executing: svn --username 
>>>>> *** --password ***** --non-interactive update
>>>>> INFO  ScmManager                     - Working directory: 
>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>
>>>>> DEBUG ScmManager                     - At revision 3172.
>>>>> NFO  Action:update-project-from-working-directory - Updating 
>>>>> project 'processbuilder' from checkout.
>>>>> INFO  ShellCommandHelper             - Executing: 
>>>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>>>>> INFO  ShellCommandHelper             - Working directory: 
>>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>>
>>>>>
>>>>>
>>>>> my build target:
>>>>>
>>>>>    <target name="continium">
>>>>>        <exec executable="cmd" dir="${engine.dir}" 
>>>>> spawn="true">                  <arg line="/C start calc.exe"/>
>>>>>        </exec>
>>>>>
>>>>>        <waitfor maxwait="30" maxwaitunit="second" 
>>>>> timeoutproperty="server.is.unavailable">
>>>>>              <http url="http://localhost"/>
>>>>>        </waitfor>              <echo>finish</echo>
>>>>>    </target>
>>>>>
>>>>> build result:
>>>>>
>>>>> Buildfile: build.xml
>>>>>
>>>>> continium:
>>>>>     [echo] finish
>>>>>
>>>>> BUILD SUCCESSFUL
>>>>>
>>>>>
>>>>> Total time: 39 seconds
>>>>>
>>>>>
>>>>> but state is "Build In Progess" ;(
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
> 
> 
> 
> 


Re: build is not finished if start executable

Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Emmanuel Venisse wrote:
> BUILD SUCCESSFUL isn't a continuum message but a ant message.
>
> it's perhaps a bug in ShellCommandHelper, the exit code is return by 
> Process class and printed in AbstractBuildExecutor (line 189).
> so if you don't have "Exit code:" in your log, it's because Process 
> objec doesn't return it.
>
> Can you try with a non gui app?

yes
the same result ;(
>
> Emmanuel
>
> Maksimenko Alexander a écrit :
>> Emmanuel Venisse wrote:
>>> if it's all your logs, the ant process isn't finished because you 
>>> should have "return code = 0" in log
>>>
>>
>> but if it's not  finished  - what does it mean BUILD SUCCESSFUL 
>> message in continuum's log?
>> if I perform this task in shell  then ant process will be finished
>> so may be incorrect work in ShellCommandHelper ?
>>
>> ps this log message is appear when I close calculator application
>>
>>> Emmanuel
>>>
>>> Maksimenko Alexander a écrit :
>>>> Emmanuel Venisse wrote:
>>>>> Can you send your continuum logs?
>>>> it's nothing odd in the log :
>>>>
>>>> INFO  Continuum                      - Enqueuing 'processbuilder' 
>>>> (Build definition id=1).
>>>> INFO  ContinuumScm                   - Updating project: id: '1', 
>>>> name 'processbuilder'.
>>>> INFO  ScmManager                     - Executing: svn --username 
>>>> *** --password ***** --non-interactive update
>>>> INFO  ScmManager                     - Working directory: 
>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>
>>>> DEBUG ScmManager                     - At revision 3172.
>>>> NFO  Action:update-project-from-working-directory - Updating 
>>>> project 'processbuilder' from checkout.
>>>> INFO  ShellCommandHelper             - Executing: 
>>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>>>> INFO  ShellCommandHelper             - Working directory: 
>>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>>
>>>>
>>>>
>>>> my build target:
>>>>
>>>>    <target name="continium">
>>>>        <exec executable="cmd" dir="${engine.dir}" 
>>>> spawn="true">                  <arg line="/C start calc.exe"/>
>>>>        </exec>
>>>>
>>>>        <waitfor maxwait="30" maxwaitunit="second" 
>>>> timeoutproperty="server.is.unavailable">
>>>>              <http url="http://localhost"/>
>>>>        </waitfor>              <echo>finish</echo>
>>>>    </target>
>>>>
>>>> build result:
>>>>
>>>> Buildfile: build.xml
>>>>
>>>> continium:
>>>>     [echo] finish
>>>>
>>>> BUILD SUCCESSFUL
>>>>
>>>>
>>>> Total time: 39 seconds
>>>>
>>>>
>>>> but state is "Build In Progess" ;(
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>


Re: build is not finished if start executable

Posted by Emmanuel Venisse <em...@venisse.net>.
BUILD SUCCESSFUL isn't a continuum message but a ant message.

it's perhaps a bug in ShellCommandHelper, the exit code is return by Process class and printed in 
AbstractBuildExecutor (line 189).
so if you don't have "Exit code:" in your log, it's because Process objec doesn't return it.

Can you try with a non gui app?

Emmanuel

Maksimenko Alexander a écrit :
> Emmanuel Venisse wrote:
>> if it's all your logs, the ant process isn't finished because you 
>> should have "return code = 0" in log
>>
> 
> but if it's not  finished  - what does it mean BUILD SUCCESSFUL message 
> in continuum's log?
> if I perform this task in shell  then ant process will be finished
> so may be incorrect work in ShellCommandHelper ?
> 
> ps this log message is appear when I close calculator application
> 
>> Emmanuel
>>
>> Maksimenko Alexander a écrit :
>>> Emmanuel Venisse wrote:
>>>> Can you send your continuum logs?
>>> it's nothing odd in the log :
>>>
>>> INFO  Continuum                      - Enqueuing 'processbuilder' 
>>> (Build definition id=1).
>>> INFO  ContinuumScm                   - Updating project: id: '1', 
>>> name 'processbuilder'.
>>> INFO  ScmManager                     - Executing: svn --username *** 
>>> --password ***** --non-interactive update
>>> INFO  ScmManager                     - Working directory: 
>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>
>>> DEBUG ScmManager                     - At revision 3172.
>>> NFO  Action:update-project-from-working-directory - Updating project 
>>> 'processbuilder' from checkout.
>>> INFO  ShellCommandHelper             - Executing: 
>>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>>> INFO  ShellCommandHelper             - Working directory: 
>>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>>
>>>
>>>
>>> my build target:
>>>
>>>    <target name="continium">
>>>        <exec executable="cmd" dir="${engine.dir}" spawn="true">       
>>>            <arg line="/C start calc.exe"/>
>>>        </exec>
>>>
>>>        <waitfor maxwait="30" maxwaitunit="second" 
>>> timeoutproperty="server.is.unavailable">
>>>              <http url="http://localhost"/>
>>>        </waitfor>              <echo>finish</echo>
>>>    </target>
>>>
>>> build result:
>>>
>>> Buildfile: build.xml
>>>
>>> continium:
>>>     [echo] finish
>>>
>>> BUILD SUCCESSFUL
>>>
>>>
>>> Total time: 39 seconds
>>>
>>>
>>> but state is "Build In Progess" ;(
>>>
>>>
>>>
>>
>>
> 
> 
> 
> 


Re: build is not finished if start executable

Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Emmanuel Venisse wrote:
> if it's all your logs, the ant process isn't finished because you 
> should have "return code = 0" in log
>

but if it's not  finished  - what does it mean BUILD SUCCESSFUL message 
in continuum's log?
if I perform this task in shell  then ant process will be finished
so may be incorrect work in ShellCommandHelper ?

ps this log message is appear when I close calculator application

> Emmanuel
>
> Maksimenko Alexander a écrit :
>> Emmanuel Venisse wrote:
>>> Can you send your continuum logs?
>> it's nothing odd in the log :
>>
>> INFO  Continuum                      - Enqueuing 'processbuilder' 
>> (Build definition id=1).
>> INFO  ContinuumScm                   - Updating project: id: '1', 
>> name 'processbuilder'.
>> INFO  ScmManager                     - Executing: svn --username *** 
>> --password ***** --non-interactive update
>> INFO  ScmManager                     - Working directory: 
>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>
>> DEBUG ScmManager                     - At revision 3172.
>> NFO  Action:update-project-from-working-directory - Updating project 
>> 'processbuilder' from checkout.
>> INFO  ShellCommandHelper             - Executing: 
>> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
>> INFO  ShellCommandHelper             - Working directory: 
>> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
>>
>>
>>
>> my build target:
>>
>>    <target name="continium">
>>        <exec executable="cmd" dir="${engine.dir}" spawn="true">       
>>            <arg line="/C start calc.exe"/>
>>        </exec>
>>
>>        <waitfor maxwait="30" maxwaitunit="second" 
>> timeoutproperty="server.is.unavailable">
>>              <http url="http://localhost"/>
>>        </waitfor>              <echo>finish</echo>
>>    </target>
>>
>> build result:
>>
>> Buildfile: build.xml
>>
>> continium:
>>     [echo] finish
>>
>> BUILD SUCCESSFUL
>>
>>
>> Total time: 39 seconds
>>
>>
>> but state is "Build In Progess" ;(
>>
>>
>>
>
>


Re: build is not finished if start executable

Posted by Emmanuel Venisse <em...@venisse.net>.
if it's all your logs, the ant process isn't finished because you should have "return code = 0" in log

Emmanuel

Maksimenko Alexander a écrit :
> Emmanuel Venisse wrote:
>> Can you send your continuum logs?
> it's nothing odd in the log :
> 
> INFO  Continuum                      - Enqueuing 'processbuilder' (Build 
> definition id=1).
> INFO  ContinuumScm                   - Updating project: id: '1', name 
> 'processbuilder'.
> INFO  ScmManager                     - Executing: svn --username *** 
> --password ***** --non-interactive update
> INFO  ScmManager                     - Working directory: 
> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
> 
> DEBUG ScmManager                     - At revision 3172.
> NFO  Action:update-project-from-working-directory - Updating project 
> 'processbuilder' from checkout.
> INFO  ShellCommandHelper             - Executing: 
> D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
> INFO  ShellCommandHelper             - Working directory: 
> D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1 
> 
> 
> 
> my build target:
> 
>    <target name="continium">
>        <exec executable="cmd" dir="${engine.dir}" spawn="true">       
>            <arg line="/C start calc.exe"/>
>        </exec>
> 
>        <waitfor maxwait="30" maxwaitunit="second" 
> timeoutproperty="server.is.unavailable">
>              <http url="http://localhost"/>
>        </waitfor>              <echo>finish</echo>
>    </target>
> 
> build result:
> 
> Buildfile: build.xml
> 
> continium:
>     [echo] finish
> 
> BUILD SUCCESSFUL
> 
> 
> Total time: 39 seconds
> 
> 
> but state is "Build In Progess" ;(
> 
> 
> 


Re: build is not finished if start executable

Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Emmanuel Venisse wrote:
> Can you send your continuum logs?
it's nothing odd in the log :

INFO  Continuum                      - Enqueuing 'processbuilder' (Build 
definition id=1).
INFO  ContinuumScm                   - Updating project: id: '1', name 
'processbuilder'.
INFO  ScmManager                     - Executing: svn --username *** 
--password ***** --non-interactive update
INFO  ScmManager                     - Working directory: 
D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1
DEBUG ScmManager                     - At revision 3172.
NFO  Action:update-project-from-working-directory - Updating project 
'processbuilder' from checkout.
INFO  ShellCommandHelper             - Executing: 
D:\tools\dev\java\jakarta\ant\bin\ant -f build.xml continium
INFO  ShellCommandHelper             - Working directory: 
D:\tools\dev\java\jakarta\continuum\bin\win32\..\..\apps\continuum\working-directory\1


my build target:

    <target name="continium">
        <exec executable="cmd" dir="${engine.dir}" spawn="true">       
            <arg line="/C start calc.exe"/>
        </exec>

        <waitfor maxwait="30" maxwaitunit="second" 
timeoutproperty="server.is.unavailable">
              <http url="http://localhost"/>
        </waitfor>       
        <echo>finish</echo>
    </target>

build result:

Buildfile: build.xml

continium:
     [echo] finish

BUILD SUCCESSFUL


Total time: 39 seconds


but state is "Build In Progess" ;(

Re: build is not finished if start executable

Posted by Emmanuel Venisse <em...@venisse.net>.
Can you send your continuum logs?

Emmanuel

Maksimenko Alexander a écrit :
> hi!
> I spent 2 days to the following problem :
> I start executable in ant script
> 
>   <target name=" ">
>       <exec executable="cmd" dir="." spawn="true">                  <arg 
> line="/C start calc.exe"/>
>       </exec>
>   </target>
> 
> the execution of ant script has been finished but continuum build is not 
> marked finished until I close calculator application
> 
> I look at continuum's log file and find out that it starts ant script by 
> following shell command:
> 
> ant -f build.xml  continium
> 
> So I perform this command in shell and everything is ok - ant script has 
> been finished just after calculator is launched
> 
> Did I miss  something or is it a bug?
> 
> 
> 


build is not finished if start executable

Posted by Maksimenko Alexander <ma...@bird.cris.net>.
hi!
I spent 2 days to the following problem :
I start executable in ant script

   <target name=" ">
       <exec executable="cmd" dir="." spawn="true">                  
<arg line="/C start calc.exe"/>
       </exec>
   </target>

the execution of ant script has been finished but continuum build is not 
marked finished until I close calculator application

I look at continuum's log file and find out that it starts ant script by 
following shell command:

ant -f build.xml  continium

So I perform this command in shell and everything is ok - ant script has 
been finished just after calculator is launched

Did I miss  something or is it a bug?