RE: maven-call exits windows batch file: feature or bug?
Try using: call maven clean > -Original Message- > From: Oliver Nölle [mailto:[EMAIL PROTECTED] > Sent: Friday, March 05, 2004 8:08 AM > To: Maven Users List > Subject: maven-call exits windows batch file: feature or bug? > > > When I write the followin lines in a batch file: > > cd projects1 > maven clean > REM the following lines get never executed: > cd ..\project2 > maven clean > > ...and execute it on Win2K, after the first maven call > (successful or not) > the batch file stops processing after printing out the > results of maven. > > Is this the intended behaviour? > Shouldn't it be possible to execute several maven calls in a > batch file? > > Let me know whether I should raise an issue in Jira (probably > in the core > module?). > > Oliver > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-call exits windows batch file: feature or bug?
I would have thought that you could remedy this by writing "call maven clean" rather than simply "maven clean". The reason it's doing what it's doing is that "maven" is a batch file, and when one runs a batch file from another batch file execution ends when the second batch file ends -- even if the first batch file hasn't finished. IMHO this is not a maven bug (nor even a Windows bug -- the behaviour, as counterintuitive as it may be, is deliberate, for reasons of backwards compatibility), but rather a bug in your batch file. -Original Message- From: Oliver Nölle [mailto:[EMAIL PROTECTED] Sent: 05 March 2004 13:08 To: Maven Users List Subject: maven-call exits windows batch file: feature or bug? When I write the followin lines in a batch file: cd projects1 maven clean REM the following lines get never executed: cd ..\project2 maven clean ...and execute it on Win2K, after the first maven call (successful or not) the batch file stops processing after printing out the results of maven. Is this the intended behaviour? Shouldn't it be possible to execute several maven calls in a batch file? Let me know whether I should raise an issue in Jira (probably in the core module?). Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-call exits windows batch file: feature or bug?
- Original Message - From: "Oliver Nölle" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Friday, March 05, 2004 2:08 PM Subject: maven-call exits windows batch file: feature or bug? > When I write the followin lines in a batch file: > > cd projects1 > maven clean > REM the following lines get never executed: > cd ..\project2 > maven clean > > ...and execute it on Win2K, after the first maven call (successful or not) > the batch file stops processing after printing out the results of maven. > > Is this the intended behaviour? > Shouldn't it be possible to execute several maven calls in a batch file? It's a bug. > > Let me know whether I should raise an issue in Jira (probably in the core > module?). Yes. http://jira.codehaus.org/BrowseProject.jspa?id=10030 > > Oliver > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]