protected void executeTask(Task task, NodeInstallInformation information) throws CommandLineException, MojoExecutionException {
		if (task instanceof NodeJsTask) {
			NodeJsTask nodeJsTask = (NodeJsTask) task;
			Commandline commandLine = getCommandLine(nodeJsTask.workingDirectory, information.executable.getAbsolutePath(), nodeJsTask.name, nodeJsTask.arguments);
			executeCommandLine(commandLine);
		} else if (task instanceof ClosureCompilerTask) {
			ClosureCompilerTask closureCompilerTask = (ClosureCompilerTask) task;
			executeClosureCompiler(closureCompilerTask);
		} else {
			throw new MojoExecutionException("Unknown task type");
		}
	}