org.apache.tools.ant.taskdefs.Manifest.Section Java Examples
The following examples show how to use
org.apache.tools.ant.taskdefs.Manifest.Section.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultManifest.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void addSectionAttributesToAnt(Manifest antManifest) { for (Map.Entry<String, Attributes> entry : sections.entrySet()) { Section section = new Section(); section.setName(entry.getKey()); try { antManifest.addConfiguredSection(section); for (Map.Entry<String, Object> attributeEntry : entry.getValue().entrySet()) { section.addConfiguredAttribute(new Attribute(attributeEntry.getKey(), attributeEntry.getValue().toString())); } } catch (ManifestException e) { throw new org.gradle.api.java.archives.ManifestException(e.getMessage(), e); } } }
Example #2
Source File: DefaultManifest.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void addSectionAttributesToAnt(Manifest antManifest) { for (Map.Entry<String, Attributes> entry : sections.entrySet()) { Section section = new Section(); section.setName(entry.getKey()); try { antManifest.addConfiguredSection(section); for (Map.Entry<String, Object> attributeEntry : entry.getValue().entrySet()) { section.addConfiguredAttribute(new Attribute(attributeEntry.getKey().toString(), attributeEntry.getValue().toString())); } } catch (ManifestException e) { throw new org.gradle.api.java.archives.ManifestException(e.getMessage(), e); } } }
Example #3
Source File: CopyLibs.java From netbeans with Apache License 2.0 | 5 votes |
private static boolean isSigned(final Manifest manifest) { Section section = manifest.getSection(MANIFEST); if (section != null) { final Enumeration<String> sectionKeys = (Enumeration<String>) section.getAttributeKeys(); while (sectionKeys.hasMoreElements()) { if (sectionKeys.nextElement().endsWith("-Digest")) { //NOI18N return true; } } } return false; }
Example #4
Source File: DefaultManifest.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void addSectionAttributesToAnt(Manifest antManifest) { for (Map.Entry<String, Attributes> entry : sections.entrySet()) { Section section = new Section(); section.setName(entry.getKey()); try { antManifest.addConfiguredSection(section); for (Map.Entry<String, Object> attributeEntry : entry.getValue().entrySet()) { section.addConfiguredAttribute(new Attribute(attributeEntry.getKey(), attributeEntry.getValue().toString())); } } catch (ManifestException e) { throw new org.gradle.api.java.archives.ManifestException(e.getMessage(), e); } } }
Example #5
Source File: DefaultManifest.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void addSectionAttributesToAnt(Manifest antManifest) { for (Map.Entry<String, Attributes> entry : sections.entrySet()) { Section section = new Section(); section.setName(entry.getKey()); try { antManifest.addConfiguredSection(section); for (Map.Entry<String, Object> attributeEntry : entry.getValue().entrySet()) { section.addConfiguredAttribute(new Attribute(attributeEntry.getKey().toString(), attributeEntry.getValue().toString())); } } catch (ManifestException e) { throw new org.gradle.api.java.archives.ManifestException(e.getMessage(), e); } } }