Exemplo n.º 1
0
    def determine_version(self):
        oxauth_info = get_war_info(os.path.join(self.distJansFolder, 'jans-auth.war'))
        self.oxVersion = oxauth_info['version']
        self.currentJansVersion = re.search('([\d.]+)', oxauth_info['version']).group().strip('.')
        self.githubBranchName = oxauth_info['branch']

        self.ce_setup_zip = 'https://github.com/JanssenProject/jans-setup/archive/%s.zip' % self.githubBranchName
Exemplo n.º 2
0
    def check_download_needed(self, src):
        froot, fext = os.path.splitext(src)
        if fext in ('.war', '.jar'):
            if os.path.exists(src):
                war_info = get_war_info(src)
                if war_info.get('version'):
                    return LooseVersion(war_info['version']) < LooseVersion(Config.oxVersion)

        return True
Exemplo n.º 3
0
    def determine_version(self):
        oxauth_info = get_war_info(
            os.path.join(self.distGluuFolder, 'oxauth.war'))
        self.oxVersion = oxauth_info['version']
        self.currentGluuVersion = re.search(
            '([\d.]+)', oxauth_info['version']).group().strip('.')
        self.githubBranchName = oxauth_info['branch']

        self.ce_setup_zip = 'https://github.com/GluuFederation/community-edition-setup/archive/%s.zip' % self.githubBranchName