Class TargetDefinitionFile

    • Field Detail

      • parser

        private static de.pdark.decentxml.XMLParser parser
      • origin

        private final java.io.File origin
      • fileContentHash

        private final byte[] fileContentHash
      • dom

        private final de.pdark.decentxml.Element dom
      • document

        private final de.pdark.decentxml.Document document
    • Method Detail

      • hasIncludedBundles

        public boolean hasIncludedBundles()
        Description copied from interface: TargetDefinition
        Returns true if the target definition specifies an explicit list of bundles to include (i.e. an <includeBundles> in target definition files).
        Specified by:
        hasIncludedBundles in interface TargetDefinition
      • getOrigin

        public java.lang.String getOrigin()
        Description copied from interface: TargetDefinition
        Returns the origin of the target definition, e.g. a file path. Used for debugging only.
        Specified by:
        getOrigin in interface TargetDefinition
      • write

        public static void write​(TargetDefinitionFile target,
                                 java.io.File file)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface TargetDefinition
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface TargetDefinition
        Overrides:
        equals in class java.lang.Object
      • computeFileContentHash

        private static byte[] computeFileContentHash​(java.io.File source)
      • computeMD5Digest

        private static byte[] computeMD5Digest​(java.io.FileInputStream in)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • newMD5Digest

        private static java.security.MessageDigest newMD5Digest()