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.
Current execution API seems to me little bit useless when it comes to execution of external tools. I need to pass an external tool process descriptor and process output interceptor/handler (output is textual so line by line is OK). Current API: class ToolExecutor extends ProcessExecutor { createProcess() { // from a ToolDescriptor // which extends NbProcessDescriptor } runTool() { //??? what to pass here //no DataObject available task = execute(<help>); //??? how can I hook here my handler? //I get some hardcoded redirection to //output tab task.getInputOutput() } } I think that java class extenal execution is too narrow usecase. We need more generic one. Do I miss something (link to ExternalToolsAPI)?
Example, issue #30599 covers executing Javadoc tool as a build target.
It looks like I'm looking for possibility to provide my own ExecutionTask subclass. May be: class ProcesExecutor { /** * Creates custom external proces handler. * Default impl call to createProcess and * attaches IO to output tab. */ protected ExecutorTask createExecutorTask() { // createProcess() // Engine.execute() } }
It was not clear to me what this issue is asking for and Petr offline explained me that for execution of external tools it would be helpful to provide support which would parse output of process created by NbProcessDescriptor class and which would group the output by lines and let clients to process just lines of output.
changing owner dkonecny -> pnejedly
No executors in D. You can run <exec> from Ant if you need to.