Package org.apache.maven.archiver

Examples of org.apache.maven.archiver.ManifestConfiguration


 
  /**
   * add "Class-Path: xx.jar" to MANIFEST.MF
   */
  private void extraManifest() {
    ManifestConfiguration manifest = super.archive.getManifest();
    PropertyUtil.setProperty(manifest, "addClasspath", "true");
    PropertyUtil.setProperty(manifest, "classpathPrefix", classpathPrefix);
  }
View Full Code Here


  /**
   * add "Class-Path: xx.jar" to MANIFEST.MF<br/>
   * add "MainClass: xx"
   */
  private void extraManifest() {
    ManifestConfiguration manifest = super.archive.getManifest();
    PropertyUtil.setProperty(manifest, "addClasspath", true);
    PropertyUtil.setProperty(manifest, "classpathPrefix", classpathPrefix);
    if(mainClass != null) {
      if(!bootable) {
        PropertyUtil.setProperty(manifest, "mainClass", mainClass);
View Full Code Here

TOP

Related Classes of org.apache.maven.archiver.ManifestConfiguration

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.