Class ProjectJarProperties.Jar
- java.lang.Object
-
- com.ensoftcorp.open.java.commons.project.ProjectJarProperties.Jar
-
- Enclosing class:
- ProjectJarProperties
public static class ProjectJarProperties.Jar extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
boolean
equals(java.lang.Object obj)
java.io.File
getFile()
Returns a file of the location of the jarjava.util.Map<java.lang.String,java.lang.String>
getJarAttributes()
ProjectJarProperties.JarType
getJarType()
java.lang.String
getManifestMainClass()
Returns the qualified type of the Jar's Manifest declared Main-Class attribute or null if not specifiedjava.lang.String
getName()
Returns the file name of the jarjava.lang.String
getPortablePath()
Returns an OS portable string representing the Jar path Path is relative if Jar is contained in project, else path is absoluteorg.eclipse.core.resources.IProject
getProject()
int
hashCode()
void
setJarAttribute(java.lang.String name, java.lang.String value)
void
setJarAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
void
setJarType(ProjectJarProperties.JarType type)
java.lang.String
toString()
-
-
-
Method Detail
-
getProject
public org.eclipse.core.resources.IProject getProject()
-
getJarAttributes
public java.util.Map<java.lang.String,java.lang.String> getJarAttributes()
-
setJarAttribute
public void setJarAttribute(java.lang.String name, java.lang.String value) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setJarAttributes
public void setJarAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) throws java.lang.Exception
- Throws:
java.lang.Exception
-
delete
public void delete() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getJarType
public ProjectJarProperties.JarType getJarType()
-
setJarType
public void setJarType(ProjectJarProperties.JarType type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
Returns the file name of the jar- Returns:
-
getFile
public java.io.File getFile()
Returns a file of the location of the jar- Returns:
-
getManifestMainClass
public java.lang.String getManifestMainClass()
Returns the qualified type of the Jar's Manifest declared Main-Class attribute or null if not specified- Returns:
-
getPortablePath
public java.lang.String getPortablePath()
Returns an OS portable string representing the Jar path Path is relative if Jar is contained in project, else path is absolute- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-