You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by "Mang Lau (JIRA)" <ji...@codehaus.org> on 2006/02/24 23:05:35 UTC

[jira] Created: (CONTINUUM-608) Script gets cut off when building a shell project

Script gets cut off when building a shell project
-------------------------------------------------

         Key: CONTINUUM-608
         URL: http://jira.codehaus.org/browse/CONTINUUM-608
     Project: Continuum
        Type: Bug

  Components: Core system  
    Versions: 1.0.2    
 Environment: Windows XP Pro SP2
    Reporter: Mang Lau


When building a shell project, the shell script exits prematurely after Maven finishes.  This means that nothing else can be executed after the Maven build is successful.  It seems that Continuum is receiving the Maven exit code right after Maven ends and cuts off (does not execute) the rest of the script code.  I don't think this should be happening as you can't perform post-build tasks such as copying the build elsewhere or tagging it in CVS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (CONTINUUM-608) Script gets cut off when building a shell project

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-608?page=all ]
     
Emmanuel Venisse closed CONTINUUM-608:
--------------------------------------

    Resolution: Won't Fix

Sample correct script that call mvn :

@echo off

cmd /C mvn.bat -h
if ERRORLEVEL 1 goto error
goto end

:error
exit 1

:end
exit 0


We can perhaps add it in a faq. Mang, can you write it?


> Script gets cut off when building a shell project
> -------------------------------------------------
>
>          Key: CONTINUUM-608
>          URL: http://jira.codehaus.org/browse/CONTINUUM-608
>      Project: Continuum
>         Type: Bug

>   Components: Core system
>     Versions: 1.0.2
>  Environment: Windows XP Pro SP2
>     Reporter: Mang Lau
>  Attachments: build.bat
>
>
> When building a shell project, the shell script exits prematurely after Maven finishes.  This means that nothing else can be executed after the Maven build is successful.  It seems that Continuum is receiving the Maven exit code right after Maven ends and cuts off (does not execute) the rest of the script code.  I don't think this should be happening as you can't perform post-build tasks such as copying the build elsewhere or tagging it in CVS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (CONTINUUM-608) Script gets cut off when building a shell project

Posted by "Mang Lau (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-608?page=all ]

Mang Lau updated CONTINUUM-608:
-------------------------------

    Attachment: build.bat

> Script gets cut off when building a shell project
> -------------------------------------------------
>
>          Key: CONTINUUM-608
>          URL: http://jira.codehaus.org/browse/CONTINUUM-608
>      Project: Continuum
>         Type: Bug

>   Components: Core system
>     Versions: 1.0.2
>  Environment: Windows XP Pro SP2
>     Reporter: Mang Lau
>  Attachments: build.bat
>
>
> When building a shell project, the shell script exits prematurely after Maven finishes.  This means that nothing else can be executed after the Maven build is successful.  It seems that Continuum is receiving the Maven exit code right after Maven ends and cuts off (does not execute) the rest of the script code.  I don't think this should be happening as you can't perform post-build tasks such as copying the build elsewhere or tagging it in CVS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (CONTINUUM-608) Script gets cut off when building a shell project

Posted by "Mang Lau (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-608?page=comments#action_59696 ] 

Mang Lau commented on CONTINUUM-608:
------------------------------------

I tried using "call" as you suggested but it still cuts off the script.  So I copied the mvn.bat contents to my build script to make it perform tasks before the call to exit.

> Script gets cut off when building a shell project
> -------------------------------------------------
>
>          Key: CONTINUUM-608
>          URL: http://jira.codehaus.org/browse/CONTINUUM-608
>      Project: Continuum
>         Type: Bug

>   Components: Core system
>     Versions: 1.0.2
>  Environment: Windows XP Pro SP2
>     Reporter: Mang Lau
>  Attachments: build.bat
>
>
> When building a shell project, the shell script exits prematurely after Maven finishes.  This means that nothing else can be executed after the Maven build is successful.  It seems that Continuum is receiving the Maven exit code right after Maven ends and cuts off (does not execute) the rest of the script code.  I don't think this should be happening as you can't perform post-build tasks such as copying the build elsewhere or tagging it in CVS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (CONTINUUM-608) Script gets cut off when building a shell project

Posted by "Mang Lau (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-608?page=comments#action_59446 ] 

Mang Lau commented on CONTINUUM-608:
------------------------------------

I should also note that my script is a batch file DOS script.

> Script gets cut off when building a shell project
> -------------------------------------------------
>
>          Key: CONTINUUM-608
>          URL: http://jira.codehaus.org/browse/CONTINUUM-608
>      Project: Continuum
>         Type: Bug

>   Components: Core system
>     Versions: 1.0.2
>  Environment: Windows XP Pro SP2
>     Reporter: Mang Lau

>
>
> When building a shell project, the shell script exits prematurely after Maven finishes.  This means that nothing else can be executed after the Maven build is successful.  It seems that Continuum is receiving the Maven exit code right after Maven ends and cuts off (does not execute) the rest of the script code.  I don't think this should be happening as you can't perform post-build tasks such as copying the build elsewhere or tagging it in CVS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (CONTINUUM-608) Script gets cut off when building a shell project

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-608?page=comments#action_59461 ] 

Emmanuel Venisse commented on CONTINUUM-608:
--------------------------------------------

Can you attach your script?

> Script gets cut off when building a shell project
> -------------------------------------------------
>
>          Key: CONTINUUM-608
>          URL: http://jira.codehaus.org/browse/CONTINUUM-608
>      Project: Continuum
>         Type: Bug

>   Components: Core system
>     Versions: 1.0.2
>  Environment: Windows XP Pro SP2
>     Reporter: Mang Lau

>
>
> When building a shell project, the shell script exits prematurely after Maven finishes.  This means that nothing else can be executed after the Maven build is successful.  It seems that Continuum is receiving the Maven exit code right after Maven ends and cuts off (does not execute) the rest of the script code.  I don't think this should be happening as you can't perform post-build tasks such as copying the build elsewhere or tagging it in CVS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (CONTINUUM-608) Script gets cut off when building a shell project

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-608?page=comments#action_59640 ] 

Emmanuel Venisse commented on CONTINUUM-608:
--------------------------------------------

the shell script exit becuase in mvn.bat, we have a call to exit command. Normally, it will be fine in continuum if you have nothing to do after mvn call.

You can also call mvn with 'call' like this :
call mvn clean install
but in this case, i'm not sure call return the correct exit code.

An other possibility would be to copy mvn.bat content in your bat file


> Script gets cut off when building a shell project
> -------------------------------------------------
>
>          Key: CONTINUUM-608
>          URL: http://jira.codehaus.org/browse/CONTINUUM-608
>      Project: Continuum
>         Type: Bug

>   Components: Core system
>     Versions: 1.0.2
>  Environment: Windows XP Pro SP2
>     Reporter: Mang Lau
>  Attachments: build.bat
>
>
> When building a shell project, the shell script exits prematurely after Maven finishes.  This means that nothing else can be executed after the Maven build is successful.  It seems that Continuum is receiving the Maven exit code right after Maven ends and cuts off (does not execute) the rest of the script code.  I don't think this should be happening as you can't perform post-build tasks such as copying the build elsewhere or tagging it in CVS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira