Class Plugin.Engine.Target.ForJarFile

    • Field Detail

      • file

        private final java.io.File file
        The jar file that is represented by this target.
    • Constructor Detail

      • ForJarFile

        public ForJarFile​(java.io.File file)
        Creates a new target for a jar file.
        Parameters:
        file - The jar file that is represented by this target.
    • Method Detail

      • write

        public Plugin.Engine.Target.Sink write​(java.util.jar.Manifest manifest)
                                        throws java.io.IOException
        Initializes this target prior to writing.
        Specified by:
        write in interface Plugin.Engine.Target
        Parameters:
        manifest - The manifest for the target or null if no manifest was found.
        Returns:
        The sink to write to.
        Throws:
        java.io.IOException - If an I/O error occurs.