This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It seems that when you switch the IDE's internal Ant to a 1.8.0 dev build and try to run any user program, you see no output, whereas the same works fine from the cmdline.
core-main #1b19692d24b8
The code after the patch reads OutputStream os = getOutputStream(); Integer logLevel = null; os = AntBridge.delegateOutputStream(false); logLevel = Project.MSG_INFO; outTask = new Thread(Thread.currentThread().getThreadGroup(), new Copier(inputStream, os, logLevel, outEncoding), ...); (similarly for err). Surely this should be simplified: outTask = new Thread(Thread.currentThread().getThreadGroup(), new Copier(inputStream, AntBridge.delegateOutputStream(false), Project.MSG_INFO, outEncoding), ...); I am missing any explanation of the fix, either in IZ or in the changeset. What is the root difference between 1.7.1 and 1.8.0 in this regard? What effect does this patch have on Ant 1.7.1 clients? What happens to scripts calling e.g. <java fork="true" outputfile="program-out" .../> ?
Integrated into 'main-golden', will be available in build *200904070200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1b19692d24b8 User: Tomas Holy <t_h@netbeans.org> Log: #158492: <java> broken in Ant 1.8.0
The difference between 1.7.1 and 1.8.0 is that in 1.8.0 getOutputStream()/getErrorStream() returns org.apache.tools.ant.util.OutputStreamFunneler$Funnel while 1.7.1 returns org.apache.tools.ant.taskdefs.LogOutputStream. I put safer change to core-main #6119721e07fb
Reverted due to issue #167966
A 1.8.0 release may be approaching so this needs to be fixed. Please read my last comment in issue #167966.
Try to find better fix for this issue and issue #167966 in core-main #49c08ceeeb2e. Seems similar to issue #168153 as Jesse pointed out.
Integrated into 'main-golden', will be available in build *200908260201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/49c08ceeeb2e User: Tomas Holy <t_h@netbeans.org> Log: #158492: <java> broken in Ant 1.8.0