Skip to content
Permalink
Browse files
- Made it possible to also accept the license agreement by setting an…
… environment variable
  • Loading branch information
chrisdutz committed Apr 11, 2017
1 parent 581567a commit ee771e6579486521b86f22a9fb629ff127edcfcd
Showing 1 changed file with 5 additions and 0 deletions.
@@ -453,7 +453,12 @@ protected void confirmLicenseAcceptance(SdkType type) throws RetrieverException
String property = "com.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted";

// Implement the accepting the license by providing a system-id as system-property.
// Check a java property first ...
String acceptedSystemIds = System.getProperty(property);
// Check an environment variable second ...
if(acceptedSystemIds == null) {
acceptedSystemIds = System.getenv("com.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted");
}
if(acceptedSystemIds != null) {
String systemId = SystemIdHelper.getSystemId();
if(systemId != null) {

0 comments on commit ee771e6

Please sign in to comment.