Bug 36560 - Support execution of external tools
Support execution of external tools
Status: RESOLVED WONTFIX
Product: platform
Classification: Unclassified
Component: Execution
3.x
All All
: P2 (vote)
: 4.x
Assigned To: Petr Nejedly
issues@platform
: API, THREAD
Depends on:
Blocks: 30599
  Show dependency treegraph
 
Reported: 2003-10-13 17:39 UTC by _ pkuzel
Modified: 2008-12-22 20:46 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2003-10-13 17:39:49 UTC
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)?
Comment 1 _ pkuzel 2003-10-13 17:50:40 UTC
Example, issue #30599 covers executing Javadoc tool as a build target.
Comment 2 _ pkuzel 2003-10-13 18:07:48 UTC
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()
   }
}
Comment 3 David Konecny 2003-10-14 14:46:32 UTC
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.
Comment 4 Marian Mirilovic 2004-01-14 15:24:40 UTC
changing owner dkonecny -> pnejedly
Comment 5 Jesse Glick 2004-03-16 17:05:55 UTC
No executors in D. You can run <exec> from Ant if you need to.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo