protected String computeExtension(String packaging){
  String extension;
  if (packaging.equalsIgnoreCase(Deployable.EJB) || packaging.equalsIgnoreCase(Deployable.BUNDLE)) {
    extension="jar";
  }
 else   if (packaging.equalsIgnoreCase(Deployable.UBERWAR)) {
    extension="war";
  }
 else   if (packaging.startsWith(Deployable.JBOSS)) {
    extension=packaging.substring(Deployable.JBOSS_STRIP);
  }
 else {
    extension=packaging;
  }
  return extension;
}

protected String computeExtension ( String packaging ) { String extension ; if ( packaging . equalsIgnoreCase ( Deployable . EJB ) || packaging . equalsIgnoreCase ( Deployable . BUNDLE ) ) { extension = "jar" ; } else if ( packaging . equalsIgnoreCase ( Deployable . UBERWAR ) ) { extension = "war" ; } else if ( packaging . startsWith ( Deployable . JBOSS ) ) { extension = packaging . substring ( Deployable . JBOSS_STRIP ) ; } else { extension = packaging ; } return extension ; }
compute the extension for a given maven2 packaging .
