private static void checkMandatoryProperties ( final Analyzer analyzer , final Jar jar , final String symbolicName ) { final String importPackage = analyzer . getProperty ( Analyzer . IMPORT_PACKAGE ) ; if ( importPackage == null || importPackage . trim ( ) . length ( ) == 0 ) { analyzer . setProperty ( Analyzer . IMPORT_PACKAGE , "*;resolution:=optional" ) ; } final String exportPackage = analyzer . getProperty ( Analyzer . EXPORT_PACKAGE ) ; if ( exportPackage == null || exportPackage . trim ( ) . length ( ) == 0 ) { analyzer . setProperty ( Analyzer . EXPORT_PACKAGE , "*" ) ; } final String localSymbolicName = analyzer . getProperty ( Analyzer . BUNDLE_SYMBOLICNAME , symbolicName ) ; analyzer . setProperty ( Analyzer . BUNDLE_SYMBOLICNAME , generateSymbolicName ( localSymbolicName ) ) ; }
Check if manadatory properties are present otherwise generate default .