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.
public void run() {
// Run the commands asynchronously, we're called under locks that
// execute in some necessary precustomization might want to acquire.
Command[] commands = new Command[preCommands.length];
for (int i = 0; i < preCommands.length; i++) {
Command preCmd = getProvider().createCommand(preCommands[i]);
if (preCmd != null) {
((VcsDescribedCommand) preCmd).setAdditionalVariables(executor.getVariables());
synchronized (tasks) {
commands[i] = preCmd;
tasks.add(preCmd.execute());
}
for (int i = 0; i < commands.length; i++) {
if (commands[i] == null) continue;
tasks.add(commands[i].execute());
preCommandsExecuted = true;