本文整理汇总了Java中org.apache.tools.ant.taskdefs.ManifestException.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java ManifestException.getMessage方法的具体用法?Java ManifestException.getMessage怎么用?Java ManifestException.getMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.tools.ant.taskdefs.ManifestException
的用法示例。
在下文中一共展示了ManifestException.getMessage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: packageConsole
import org.apache.tools.ant.taskdefs.ManifestException; //导入方法依赖的package包/类
private void packageConsole() throws CreatorExecutionException {
try {
Jar jarArchiver = new Jar();
jarArchiver.setProject(new Project());
jarArchiver.setDestFile(destinationWar);
final FileSet fileSet = new FileSet();
fileSet.setDir(workingDirectory);
jarArchiver.addFileset(fileSet);
jarArchiver.addConfiguredManifest(createManifest());
jarArchiver.execute();
} catch (ManifestException e) {
throw new CreatorExecutionException(e.getMessage(), e);
}
}
示例2: addAttributesToAnt
import org.apache.tools.ant.taskdefs.ManifestException; //导入方法依赖的package包/类
private void addAttributesToAnt(Manifest antManifest) {
for (Map.Entry<String, Object> entry : attributes.entrySet()) {
try {
antManifest.addConfiguredAttribute(new Attribute(entry.getKey(), entry.getValue().toString()));
} catch (ManifestException e) {
throw new org.gradle.api.java.archives.ManifestException(e.getMessage(), e);
}
}
}
示例3: addSectionAttributesToAnt
import org.apache.tools.ant.taskdefs.ManifestException; //导入方法依赖的package包/类
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);
}
}
}
示例4: addAttributesToAnt
import org.apache.tools.ant.taskdefs.ManifestException; //导入方法依赖的package包/类
private void addAttributesToAnt(Manifest antManifest) {
for (Map.Entry<String, Object> entry : attributes.entrySet()) {
try {
antManifest.addConfiguredAttribute(new Attribute(entry.getKey().toString(), entry.getValue().toString()));
} catch (ManifestException e) {
throw new org.gradle.api.java.archives.ManifestException(e.getMessage(), e);
}
}
}
示例5: addSectionAttributesToAnt
import org.apache.tools.ant.taskdefs.ManifestException; //导入方法依赖的package包/类
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);
}
}
}