Spawn a multi-threaded Java program from a Windows command line program, spawner won't end until spawnee ends. How can I prevent the hang?

You have a problem with your exec task in that spawn is defaulting to false. From the NAnt documentation.

You have a problem with your exec task in that spawn is defaulting to false. From the NAnt documentation: Gets or sets a value indicating whether the application should be spawned. If you spawn an application, its output will not be logged by NAnt.

The default is false. In the Ant documentation (remember, NAnt is "Not Ant," but still...), there is a concrete example of the use of the spawn parameter of the exec task: When that browser task fires, Internet Explorer will open to that page but the build will continue without waiting for output or task completion.

Thanks, that was exactly the answer I needed. I'm using nant, not ant, but it has the same option. I still think something's broken deeper down, since START shouldn't leave thangs danglin', but I'm not going to argue with success!

Now if only the nant doc was as clear as the ant doc! – Ross Patterson May 17 '10 at 18:43 @Ross, right, I forgot. The reality is that the tasks are pretty much the same.

However, just to fit the topic, I'll edit my answer to point at the NANT website instead of ANT. – Bob Cross May 17 '10 at 19:34.

I'm not 100% certain this is what you're after but I think what you want is javaw instead of java. Taken from the Sun JDK 6 documentation: The javaw command is identical to java, except that with javaw there is no associated console window. Use javaw when you don't want a command prompt window to appear.

The javaw launcher will, however, display a dialog box with error information if a launch fails for some reason.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions