// Path: com.gregorbyte.buildxpages.ant/src/com/gregorbyte/buildxpages/task/DeleteDatabase.java
// public class DeleteDatabase extends AbstractBxTask {
// 
// 	private String server;
// 	private String filename;
// 	
// 	public DeleteDatabase(String server, String filename) {
// 	
// 		this.server 	= server;
// 		this.filename 	= filename;
// 		
// 	}
// 	
// 	@Override
// 	protected void doTask() {
// 
// 		NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
// 		
// 		String path = pathNetConstruct(server, filename);
// 
// 		short error = notes.NSFDbDelete(path);		
// 		checkError(error);
// 		
// 	}
// 
// }


import com.gregorbyte.buildxpages.task.DeleteDatabase;
import com.sun.jna.Native;
import com.sun.jna.ptr.IntByReference;
	@Deprecated
	public static void deinit() {
		
		if (initialised) {
			NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
			notes.NotesTerm();	
			initialised = false;
		}
		
	}
	
	@SuppressWarnings("unused")
	public static void main(String[] args) {

		NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
		short error = 0;
		boolean notesInitialised = false;

		Native.setProtected(true);

		try {
			
			error = notes.NotesInitExtended(0, null);
			checkError(error);
			notesInitialised = true;

			String srcFilename = "demo\\GitTest.nsf";
			String dstFilename = "demo\\DidItwork.nsf";
			
			//CreateAndCopyDatabase task = new CreateAndCopyDatabase(null, srcFilename, null, dstFilename);
// Path: com.gregorbyte.buildxpages.ant/src/com/gregorbyte/buildxpages/task/DeleteDatabase.java
// public class DeleteDatabase extends AbstractBxTask {
// 
// 	private String server;
// 	private String filename;
// 	
// 	public DeleteDatabase(String server, String filename) {
// 	
// 		this.server 	= server;
// 		this.filename 	= filename;
// 		
// 	}
// 	
// 	@Override
// 	protected void doTask() {
// 
// 		NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
// 		
// 		String path = pathNetConstruct(server, filename);
// 
// 		short error = notes.NSFDbDelete(path);		
// 		checkError(error);
// 		
// 	}
// 
// }


// Path: com.gregorbyte.buildxpages.ant/src/com/gregorbyte/buildxpages/NotesLibrary.java
import com.gregorbyte.buildxpages.task.DeleteDatabase;
import com.sun.jna.Native;
import com.sun.jna.ptr.IntByReference;

	@Deprecated
	public static void deinit() {
		
		if (initialised) {
			NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
			notes.NotesTerm();	
			initialised = false;
		}
		
	}
	
	@SuppressWarnings("unused")
	public static void main(String[] args) {

		NotesNativeLibrary notes = NotesNativeLibrary.SYNC_INSTANCE;
		short error = 0;
		boolean notesInitialised = false;

		Native.setProtected(true);

		try {
			
			error = notes.NotesInitExtended(0, null);
			checkError(error);
			notesInitialised = true;

			String srcFilename = "demo\\GitTest.nsf";
			String dstFilename = "demo\\DidItwork.nsf";
			
			//CreateAndCopyDatabase task = new CreateAndCopyDatabase(null, srcFilename, null, dstFilename);
			DeleteDatabase task = new DeleteDatabase(null, dstFilename);			