private void doLicense(BundleLicense annotation) { StringBuilder sb = new StringBuilder(annotation.name()); if (!annotation.description().equals("")) sb.append(";description='").append(annotation.description().replaceAll("'", "\\'")).append("'"); if (!annotation.link().equals("")) sb.append(";link='").append(annotation.link().replaceAll("'", "\\'")).append("'"); add(Constants.BUNDLE_LICENSE, sb.toString()); }
private void doLicense(BundleLicense annotation) { StringBuilder sb = new StringBuilder(annotation.name()); if (!annotation.description().equals("")) sb.append(";description='").append(annotation.description().replaceAll("'", "\\'")).append("'"); if (!annotation.link().equals("")) sb.append(";link='").append(annotation.link().replaceAll("'", "\\'")).append("'"); add(Constants.BUNDLE_LICENSE, sb.toString()); }
private void doLicense(Annotation a) throws Exception { BundleLicense annotation = a.getAnnotation(BundleLicense.class); Parameters p = new Parameters(); p.put(annotation.name(), getAttributes(a, "name")); add(Constants.BUNDLE_LICENSE, p.toString()); }
private void doLicense(Annotation a) throws Exception { BundleLicense annotation = a.getAnnotation(BundleLicense.class); Parameters p = new Parameters(); p.put(annotation.name(), getAttributes(a, "name")); add(Constants.BUNDLE_LICENSE, p.toString()); }