// Path: com.gregorbyte.buildxpages.ant/src/com/gregorbyte/buildxpages/task/LoadDesignBxpTask.java
// public class LoadDesignBxpTask extends AbstractBxTask {
// 
// 	private String server;
// 	private String directory;
// 
// 	public LoadDesignBxpTask(String server, String directory) {
// 		this.server = server;
// 		this.directory = directory;
// 	}
// 
// 	public String getConsoleCommand() {
// 
// 		if (directory == null || "".equals(directory)) {
// 			return null;
// 		}
// 
// 		StringBuilder sb = new StringBuilder("load design -d ");
// 
// 		sb.append(directory);
// 
// 		return sb.toString();
// 	}
// 
// 	@Override
// 	protected void doTask() {
// 
// 		String command = getConsoleCommand();
// 
// 		if (command == null)
// 			throw new RuntimeException(
// 					"Could not determine directory to refresh");
// 
// 		NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
// 
// 		IntByReference retInfo = new IntByReference();
// 		notes.NSFRemoteConsole(server, command, retInfo);
// 
// 	}
// 
// }


import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import com.gregorbyte.buildxpages.task.LoadDesignBxpTask;
package com.gregorbyte.buildxpages.ant;



public class LoadDesignTask extends Task {

	private String server;
	private String directory;

	public void setServer(String server) {
		this.server = server;
	}

	public void setDirectory(String directory) {
		this.directory = directory;
	}

	@Override
	public void execute() throws BuildException {

// Path: com.gregorbyte.buildxpages.ant/src/com/gregorbyte/buildxpages/task/LoadDesignBxpTask.java
// public class LoadDesignBxpTask extends AbstractBxTask {
// 
// 	private String server;
// 	private String directory;
// 
// 	public LoadDesignBxpTask(String server, String directory) {
// 		this.server = server;
// 		this.directory = directory;
// 	}
// 
// 	public String getConsoleCommand() {
// 
// 		if (directory == null || "".equals(directory)) {
// 			return null;
// 		}
// 
// 		StringBuilder sb = new StringBuilder("load design -d ");
// 
// 		sb.append(directory);
// 
// 		return sb.toString();
// 	}
// 
// 	@Override
// 	protected void doTask() {
// 
// 		String command = getConsoleCommand();
// 
// 		if (command == null)
// 			throw new RuntimeException(
// 					"Could not determine directory to refresh");
// 
// 		NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
// 
// 		IntByReference retInfo = new IntByReference();
// 		notes.NSFRemoteConsole(server, command, retInfo);
// 
// 	}
// 
// }


// Path: com.gregorbyte.buildxpages.ant/src/com/gregorbyte/buildxpages/ant/LoadDesignTask.java
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import com.gregorbyte.buildxpages.task.LoadDesignBxpTask;

package com.gregorbyte.buildxpages.ant;



public class LoadDesignTask extends Task {

	private String server;
	private String directory;

	public void setServer(String server) {
		this.server = server;
	}

	public void setDirectory(String directory) {
		this.directory = directory;
	}

	@Override
	public void execute() throws BuildException {

		LoadDesignBxpTask task = new LoadDesignBxpTask(server, directory);