Package org.netbeans.modules.php.api.executable

Examples of org.netbeans.modules.php.api.executable.PhpExecutable


     *
     * @param phpModule
     * @return PhpExecutable
     */
    private PhpExecutable createPhpExecutableForNewProject(PhpModule phpModule) {
        return new PhpExecutable(yiicPath)
                .workDir(FileUtil.toFile(phpModule.getSourceDirectory().getParent()));
    }
View Full Code Here


     * @return
     */
    private PhpExecutable createPhpExecutable(PhpModule phpModule) {
        YiiModule yiiModule = YiiModuleFactory.create(phpModule);
        FileObject webroot = yiiModule.getWebroot();
        return new PhpExecutable(yiicPath)
                .workDir(FileUtil.toFile(webroot));
    }
View Full Code Here

     *
     * @param phpModule
     * @return PhpExecutable
     */
    private PhpExecutable createPhpExecutable(PhpModule phpModule) {
        return new PhpExecutable(oilPath)
                .workDir(FileUtil.toFile(phpModule.getSourceDirectory()));
    }
View Full Code Here

     * @param phpModule
     * @param parameters
     * @param postExecution
     */
    public void runCommand(PhpModule phpModule, List<String> parameters, Runnable postExecution) {
        PhpExecutable executable = getExecutable(phpModule);
        if (executable == null) {
            return;
        }
        executable.displayName(getDisplayName(phpModule, parameters.get(0)))
                .additionalParameters(getAllParameters(parameters))
                .run(getExecutionDescriptor(postExecution));
    }
View Full Code Here

     * @param phpModule
     * @param parameters
     * @param postExecution
     */
    public Future<Integer> runCommand(PhpModule phpModule, List<String> parameters) {
        PhpExecutable executable = getExecutable(phpModule);
        if (executable == null) {
            return null;
        }
        return executable.displayName(getDisplayName(phpModule, StringUtils.implode(parameters, " "))) // NOI18N
                .additionalParameters(getAllParameters(parameters))
                .run(getExecutionDescriptor(null));
    }
View Full Code Here

     * Create PhpExecuttable.
     *
     * @return
     */
    private PhpExecutable createExecutable() {
        return new PhpExecutable(wpCliPath);
    }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.php.api.executable.PhpExecutable

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.