Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.ManifestTask


    Manifest.Attribute mainClass = new Manifest.Attribute();
    mainClass.setName("Main-Class");
    mainClass.setValue(task.getMainClass());

    ManifestTask manifest = (ManifestTask) task.createSubtask(ManifestTask.class);
    manifest.setFile(manifestFile);
    try {
      manifest.addConfiguredAttribute(mainClass);
    } catch (ManifestException e) {
      throw new BuildException("Manifest error", e);
    }

    manifest.execute();
  }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.ManifestTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.