def install_oxauth_rp_war(self):
        if self.installOxAuthRP:
            oxAuthRPWar = 'oxauth-rp.war'
            distOxAuthRpPath = '%s/%s' % (self.distFolder, oxAuthRPWar)

            # oxAuth RP is not part of CE package. We need to download it if needed
            if not os.path.exists(distOxAuthRpPath):
                print "Downloading oxAuth RP war file..."
                self.run(['/usr/bin/wget', self.oxauth_rp_war, '-O', '%s/oxauth-rp.war' % self.distFolder])

            self.logIt("Copying oxauth-rp.war into tomcat webapps folder...")
            self.copyFile('%s/oxauth-rp.war' % self.distFolder, self.tomcatWebAppFolder)

            self.removeFile('%s/oxauth-rp.war' % self.distFolder)
dataset/ETHPy150Open GluuFederation/community-edition-setup/setup.py/Setup.install_oxauth_rp_war/original