#!/usr/bin/python

import subprocess
import getpass
import os
import platform
import xml.etree.ElementTree as et


class GitFunctions:
    PROJECT_HOME = None
    GIT_USER_NAME = None
    M2_HOME = os.environ.get("M2_HOME")
    GIT_PASSWORD = None
    VERSION_PROPERTY = None
    REPOSITORY_ID = None
    RELEASE_REPOSITORY_URL = None
    SNAPSHOT_REPOSITORY_URL = None

    def __init__(self):
        self.load_environment_var()
        self.get_project_home()

    def load_environment_var(self):
        with open("environment.txt", "r") as f:
            for line in f.read().splitlines():
                if line.startswith("#"):