private Jar getSources(Tool tool, Processor context, String path) throws Exception { Jar jar = toJar(context, path); if (jar == null) { jar = tool.doSource(); } jar.ensureManifest(); jar.setName("sources"); // set jar name to classifier tool.addClose(jar); return jar; }
private Jar getJavadoc(Tool tool, Processor context, String path, Map<String, String> options, boolean exports) throws Exception { Jar jar = toJar(context, path); if (jar == null) { jar = tool.doJavadoc(options, exports); } jar.ensureManifest(); jar.setName("javadoc"); // set jar name to classifier tool.addClose(jar); return jar; }
private Jar getSources(Tool tool, Processor context, String path) throws Exception { Jar jar = toJar(context, path); if (jar == null) { jar = tool.doSource(); } jar.ensureManifest(); jar.setName("sources"); // set jar name to classifier tool.addClose(jar); return jar; }
private Jar getJavadoc(Tool tool, Processor context, String path, Map<String, String> options, boolean exports) throws Exception { Jar jar = toJar(context, path); if (jar == null) { jar = tool.doJavadoc(options, exports); } jar.ensureManifest(); jar.setName("javadoc"); // set jar name to classifier tool.addClose(jar); return jar; }
private void copyInfo(Jar source, Jar dest, String type) throws Exception { source.ensureManifest(); dest.ensureManifest(); copyInfoResource(source, dest, "LICENSE"); copyInfoResource(source, dest, "LICENSE.html"); copyInfoResource(source, dest, "about.html"); Manifest sm = source.getManifest(); Manifest dm = dest.getManifest(); copyInfoHeader(sm, dm, "Bundle-Description", ""); copyInfoHeader(sm, dm, "Bundle-Vendor", ""); copyInfoHeader(sm, dm, "Bundle-Copyright", ""); copyInfoHeader(sm, dm, "Bundle-DocURL", ""); copyInfoHeader(sm, dm, "Bundle-License", ""); copyInfoHeader(sm, dm, "Bundle-Name", " " + type); copyInfoHeader(sm, dm, "Bundle-SymbolicName", "." + type); copyInfoHeader(sm, dm, "Bundle-Version", ""); }
private void copyInfo(Jar source, Jar dest, String type) throws Exception { source.ensureManifest(); dest.ensureManifest(); copyInfoResource(source, dest, "LICENSE"); copyInfoResource(source, dest, "LICENSE.html"); copyInfoResource(source, dest, "about.html"); Manifest sm = source.getManifest(); Manifest dm = dest.getManifest(); copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type); copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type); copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, ""); }
private void copyInfo(Jar source, Jar dest, String type) throws Exception { source.ensureManifest(); dest.ensureManifest(); copyInfoResource(source, dest, "LICENSE"); copyInfoResource(source, dest, "LICENSE.html"); copyInfoResource(source, dest, "about.html"); Manifest sm = source.getManifest(); Manifest dm = dest.getManifest(); copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type); copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type); copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, ""); }
private void copyInfo(Jar source, Jar dest, String type) throws Exception { source.ensureManifest(); dest.ensureManifest(); copyInfoResource(source, dest, "LICENSE"); copyInfoResource(source, dest, "LICENSE.html"); copyInfoResource(source, dest, "about.html"); Manifest sm = source.getManifest(); Manifest dm = dest.getManifest(); copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type); copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type); copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, ""); }
private void copyInfo(Jar source, Jar dest, String type) throws Exception { source.ensureManifest(); dest.ensureManifest(); copyInfoResource(source, dest, "LICENSE"); copyInfoResource(source, dest, "LICENSE.html"); copyInfoResource(source, dest, "about.html"); Manifest sm = source.getManifest(); Manifest dm = dest.getManifest(); copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, ""); copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type); copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type); copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, ""); }