tags 330292 + upstream
forwarded 330292 http://issues.apache.org/bugzilla/show_bug.cgi?id=34461

thanks


Hi Carsten,

Carsten Pfeiffer wrote:
On Tuesday 27 September 2005 12:13, Wolfgang Baer wrote:

Hi Wolfgang,

thanks for your quick reply!


Well, I cannot reproduce the problem here. I assume it must be some
other problem (maybe related to a specific task ...).


Indeed, you're right. It's related to eclipse, either to Eclipse itself or to the antRunner Task. I'm attaching two ant build-files. If you run build.xml, it will launch an Eclipse workbench and start the antRunner with the second buildfile (eclipse.xml).

I tested it - its the java task which fails to run in background if it is
forked. If it is not forked it will work in background. I attach a simple
testcase also for upstream. The bug is already reported upstream as

http://issues.apache.org/bugzilla/show_bug.cgi?id=34461

I will leave a comment and a reference to our debian bug in the upstream
bugtracker.

Please note that it is possible to vote for bugs in apache bugzilla. So
if you are interested in getting it resolved you should consider going
upstream to the bugzilla and vote for it.

Regards,
Wolfgang

Testcase
Compile HelloWorld.java and do the following:

ant test_notforked    -> will work
ant test_notforked &  -> will work
ant test_forked       -> will work
ant test_forked &     -> will fail


public class HelloWorld {
	public static void main(String[] args) {
		System.out.println("Echo");
	}
}
<project name="test" default="test_forked">

	<target name="test_forked">
		<java fork="yes" classname="HelloWorld" classpath="."/>
	</target>

	<target name="test_notforked">
		<java classname="HelloWorld" classpath="."/>
	</target>
</project>

Reply via email to