private void SetProperiesInConfluenceFiles(String ConfluenceServer, String ConfluenceUserName,
			String ConfluencePassword) {

		File oldBat = new File("./confluence-cli-4.0.0-SNAPSHOT/confluence.bat");
		File newBat = new File("./confluence-cli-4.0.0-SNAPSHOT/temp_confluence.bat");

		BufferedReader br = null;
		BufferedWriter bw = null;

		try {
			if (!newBat.exists()) {
				newBat.createNewFile();
			}

			br = new BufferedReader(new FileReader(oldBat.getAbsoluteFile()));
			bw = new BufferedWriter(new FileWriter(newBat.getAbsoluteFile()));
			String line;
			while ((line = br.readLine()) != null) {
				if (line.contains("set server="))
					line = "set server=" + ConfluenceServer;
				else if (line.contains("set username="))
					line = "set username=" + ConfluenceUserName;
				else if (line.contains("set password="))
					line = "set password=" + ConfluencePassword;
				bw.write(line + "\n");
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				if (br != null)
					br.close();
				if (bw != null)
					bw.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		oldBat.delete();
		newBat.renameTo(oldBat);
	}