Re: Starting a new java process from within a test case is hanging the maven JVM

2007-04-20 Thread Jerome Lacoste
On 4/20/07, Balasubramanian, Ravi Shankar [EMAIL PROTECTED] wrote: Hi, Following is my test class that starts a notepad process from within: public void startProcessNotepad() throws IOException { Process p = Runtime.getRuntime().exec(notepad);

RE: Starting a new java process from within a test case is hanging the maven JVM

2007-04-19 Thread Balasubramanian, Ravi Shankar
Hi all, I did work on this and found that maven's java process is not waiting until all other processes started during the build is completed / terminated. Following is what I did: In one of my test cases, I start a new process using the java Runtime class. For experimentation I executed the

Re: Starting a new java process from within a test case is hanging the maven JVM

2007-04-19 Thread Jerome Lacoste
On 4/19/07, Balasubramanian, Ravi Shankar [EMAIL PROTECTED] wrote: Hi all, I did work on this and found that maven's java process is not waiting until all other processes started during the build is completed / terminated. Following is what I did: In one of my test cases, I start a new process

RE: Starting a new java process from within a test case is hanging the maven JVM

2007-04-19 Thread Balasubramanian, Ravi Shankar
Hi, Following is my test class that starts a notepad process from within: public void startProcessNotepad() throws IOException { Process p = Runtime.getRuntime().exec(notepad); System.out.println(NOTEPAD STARTED); } When I execute this test

RE: Starting a new java process from within a test case is hanging the maven JVM

2007-04-18 Thread Balasubramanian, Ravi Shankar
Just in case, if anybody is looking into this, I tried creating a new java process from a simple Java class in it's main method and verified if the main class exits. It does exit and only when I run it through a test case in maven, the maven's java process is not exiting. Regards, Ravi

Re: Starting a new java process from within a test case is hanging the maven JVM

2007-04-18 Thread Jerome Lacoste
On 4/17/07, Balasubramanian, Ravi Shankar [EMAIL PROTECTED] wrote: Hi all, We use maven-surefire-plugin to run our testng test cases. I encountered a problem where in the maven VM is hanging when one of the test cases start a separate java process from within it using the java ProcessBuilder