public Set < InstallLicense > getServerPackageFeatureLicense ( File archive , boolean offlineOnly , Locale locale ) throws InstallException { String aName = archive . getAbsolutePath ( ) . toLowerCase ( ) ; ServerPackageAsset spa = null ; if ( ServerPackageZipAsset . validType ( aName ) ) { spa = new ServerPackageZipAsset ( archive , false ) ; } else if ( ServerPackageJarAsset . validType ( aName ) ) { spa = new ServerPackageJarAsset ( archive , false ) ; } else { return new HashSet < InstallLicense > ( ) ; } return getFeatureLicense ( spa . getRequiredFeatures ( ) , locale , null , null ) ; }
Gets the licenses for the specified archive file