/** * Getter. * * @return boot delegation package (cannot be null or empty) */ public String getValue() { return getPackage(); }
/** * Getter. * * @return boot delegation package (cannot be null or empty) */ public String getValue() { return getPackage(); }
/** * Converts boot delegation packages options into corresponding arguments (--bootDelegation). * * @param packages boot delegation package options * * @return converted Pax Runner collection of arguments */ private static String extractArguments( final BootDelegationOption[] packages ) { final StringBuilder argument = new StringBuilder(); if( packages != null && packages.length > 0 ) { for( BootDelegationOption pkg : packages ) { if( pkg != null && pkg.getPackage() != null && pkg.getPackage().length() > 0 ) { if( argument.length() == 0 ) { argument.append( "--bootDelegation=" ); } else { argument.append( "," ); } argument.append( pkg.getPackage() ); } } } return argument.toString(); }
/** * Converts boot delegation packages options into corresponding arguments (--bootDelegation). * * @param packages boot delegation package options * * @return converted Pax Runner collection of arguments */ private static String extractArguments( final BootDelegationOption[] packages ) { final StringBuilder argument = new StringBuilder(); if( packages != null && packages.length > 0 ) { for( BootDelegationOption pkg : packages ) { if( pkg != null && pkg.getPackage() != null && pkg.getPackage().length() > 0 ) { if( argument.length() == 0 ) { argument.append( "--bootDelegation=" ); } else { argument.append( "," ); } argument.append( pkg.getPackage() ); } } } return argument.toString(); }