1 package org.apache.maven.archiver; 2 3 18 19 26 public class ManifestConfiguration 27 { 28 private String mainClass; 29 30 private String packageName; 31 32 35 private String addClasspath; 36 37 40 private String addExtensions; 41 42 45 private String classpathPrefix = ""; 46 47 public String getMainClass() 48 { 49 return mainClass; 50 } 51 52 public boolean isAddClasspath() 53 { 54 return addClasspath != null ? Boolean.valueOf( addClasspath ).booleanValue() : false; 55 } 56 57 public boolean isAddExtensions() 58 { 59 return addExtensions != null ? Boolean.valueOf( addExtensions ).booleanValue() : false; 60 } 61 62 public String getPackageName() 63 { 64 return packageName; 65 } 66 67 public String getClasspathPrefix() 68 { 69 String cpp = classpathPrefix.replaceAll( "\\\\", "/" ); 70 71 if ( cpp.length() != 0 && !cpp.endsWith("/") ) 72 { 73 cpp += "/"; 74 } 75 76 return cpp; 77 } 78 } 79 | Popular Tags |