private void initializeSignProperties ( ) { if ( ! signPackage && ! signChanges ) { return ; } if ( key != null && keyring != null && passphrase != null ) { return ; } Map < String , String > properties = readPropertiesFromActiveProfiles ( signCfgPrefix , KEY , KEYRING , PASSPHRASE ) ; key = lookupIfEmpty ( key , properties , KEY ) ; keyring = lookupIfEmpty ( keyring , properties , KEYRING ) ; passphrase = decrypt ( lookupIfEmpty ( passphrase , properties , PASSPHRASE ) ) ; if ( keyring == null ) { try { keyring = Utils . guessKeyRingFile ( ) . getAbsolutePath ( ) ; console . info ( "Located keyring at " + keyring ) ; } catch ( FileNotFoundException e ) { console . warn ( e . getMessage ( ) ) ; } } }
Initializes unspecified sign properties using available defaults and global settings .