Class ServerPackGeneration

    • Method Detail

      • getServerPack

         final File getServerPack()

        The generated server pack as a file. This usually points towards a directory on the file-system.

      • getErrors

         final List<String> getErrors()

        List of errors encountered during server pack generation.

      • getServerPackZip

         final Optional<File> getServerPackZip()

        The server pack ZIP-archive, if one was generated. Optional for ease of use, as not every server pack generation also creates a ZIP-archive.

      • getFiles

         final List<File> getFiles()

        A list of all files in the server pack. These are absolute files, mind you. If you need relative-files, iterate through this list and remove the path to the server pack from each entry to receive a list of relative paths.

      • getScanFindings

         final List<String> getScanFindings()

        What the security scans reported about the finished server pack — currently Nekodetector's fractureiser findings.

        Deliberately separate from errors, because the two answer different questions: this one is "what is in the pack", errors is "did building it work". Conflating them made a pack containing an infected mod indistinguishable from one whose files never got copied. Defaulted so existing callers constructing a generation keep compiling.

      • getSuccess

         final Boolean getSuccess()

        Whether the generation itself worked — i.e. whether errors is empty.

        Says nothing about what the pack contains: a pack that built correctly and holds an infected mod is a successful generation with a non-empty scanFindings, and a caller that cares about the latter has to ask for it.