Package org.netbeans.api.extexecution

Examples of org.netbeans.api.extexecution.ExecutionDescriptor


         */
        public Reader execute(ExternalProcessBuilder builder) {
            builder = builder.redirectErrorStream(true);
            CodeSnifferOutput output = new CodeSnifferOutput();

            ExecutionDescriptor descriptor = new ExecutionDescriptor()
                    .frontWindow(false)
                    .controllable(false)
                    .outProcessorFactory(output);

            ExecutionService service = ExecutionService.newService(builder, descriptor, "PHP Coding Standards");
View Full Code Here


        int taskResult = 0;

        @Override
        public void run() {
            try {
                ExecutionDescriptor descriptor = new ExecutionDescriptor().frontWindow(true).controllable(true);

                ExecutionService service = ExecutionService.newService(jDependProcess,
                        descriptor, "jDepend Report Creator");

                Future<Integer> task = service.run();
View Full Code Here

        return new CakeScript(command).validate();
    }

    // TODO: later, run it via FrameworkCommandSupport
    public void runBake() {
        ExecutionDescriptor executionDescriptor = getExecutionDescriptor()
                .outProcessorFactory(ANSI_STRIPPING_FACTORY)
                .errProcessorFactory(ANSI_STRIPPING_FACTORY);

        ExternalProcessBuilder processBuilder = getProcessBuilder()
                .addArgument(CMD_BAKE);
View Full Code Here

     *
     * @param postExecution
     * @return ExecutionDescriptor
     */
    private ExecutionDescriptor getDescriptor(Runnable postExecution) {
        ExecutionDescriptor executionDescriptor = PhpExecutable.DEFAULT_EXECUTION_DESCRIPTOR
                .optionsPath(getOptionsPath());
        if (postExecution != null) {
            executionDescriptor = executionDescriptor.postExecution(postExecution);
        }
        return executionDescriptor;
    }
View Full Code Here

     * Get silent descriptor.
     *
     * @return ExecutionDescriptor
     */
    private ExecutionDescriptor getSilentDescriptor() {
        return new ExecutionDescriptor()
                .inputOutput(InputOutput.NULL);
    }
View Full Code Here

            this.processCreator = b;
            this.displayName = displayName;
        }

        public Future<Integer> launch () {
            ExecutionDescriptor des = new ExecutionDescriptor().controllable( true )
                    .showSuspended( true ).frontWindow( true ).outLineBased( true )
                    .controllable( true ).errLineBased( true )
                    .errConvertorFactory( new LineConverter( exe ) )
                    .outLineBased( true )
                    .outConvertorFactory( new LineConverter( exe ) )
View Full Code Here

                                ExternalProcessBuilder epb = new ExternalProcessBuilder( npmPath ) //NOI18N
                                        .addArgument( "install" ) //NOI18N
                                        .addArgument( lib )
                                        .workingDirectory( FileUtil.toFile( project.getProjectDirectory() ) );
                                final String libraryName = lib;
                                ExecutionDescriptor des = new ExecutionDescriptor().controllable( true ).showProgress( true ).showSuspended( true ).frontWindow( false ).controllable( true ).optionsPath( "Advanced/Node" ).postExecution( new Runnable() {
                                    @Override
                                    public void run () {
                                        try {
                                            int ct = jobs.decrementAndGet();
                                            if (ct == 0) {
View Full Code Here

     *
     * @param postExecution
     * @return ExecutionDescriptor
     */
    private ExecutionDescriptor getDescriptor(Runnable postExecution) {
        ExecutionDescriptor executionDescriptor = PhpExecutable.DEFAULT_EXECUTION_DESCRIPTOR
                .optionsPath(OPTIONS_SUB_PATH);
        if (postExecution != null) {
            executionDescriptor = executionDescriptor.postExecution(postExecution);
        }
        return executionDescriptor;
    }
View Full Code Here

     * Get silent descriptor.
     *
     * @return ExecutionDescriptor
     */
    private ExecutionDescriptor getSilentDescriptor() {
        return new ExecutionDescriptor()
                .inputOutput(InputOutput.NULL);
    }
View Full Code Here

        if (args != null) {
            for (String arg : args) {
                processBuilder = processBuilder.addArgument(arg);
            }
        }
        ExecutionDescriptor descriptor = new ExecutionDescriptor().frontWindow(true).controllable(true);

        if (preRun != null) {
            descriptor = descriptor.preExecution(preRun);
        }
        if (postRun != null) {
            descriptor = descriptor.postExecution(postRun);
        }
        descriptor = descriptor.showProgress(true);
        descriptor = descriptor.showSuspended(true);

        descriptor = descriptor.outConvertorFactory(new LineConvertorFactory() {

            public LineConvertor newLineConvertor() {
                return new LilyErrorConvertor();//LineConvertors.httpUrl();// new Numbered();
            }
        });
        descriptor = descriptor.errConvertorFactory(new LineConvertorFactory() {

            public LineConvertor newLineConvertor() {
                return new LilyErrorConvertor();//LineConvertors.httpUrl();// new Numbered();
            }
        });
View Full Code Here

TOP

Related Classes of org.netbeans.api.extexecution.ExecutionDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.