Class ProjectJarProperties.Jar

  • Enclosing class:
    ProjectJarProperties

    public static class ProjectJarProperties.Jar
    extends java.lang.Object
    • 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
      • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object