Package editor.shipit

Class ShipIt


  • public class ShipIt
    extends java.lang.Object
    • Field Detail

      • INSTANCE

        private static ShipIt INSTANCE
      • _jo

        private java.util.jar.JarOutputStream _jo
      • _entries

        private java.util.Set<java.lang.String> _entries
      • _jars

        private java.util.List<java.lang.String> _jars
    • Constructor Detail

      • ShipIt

        public ShipIt()
    • Method Detail

      • instance

        public static ShipIt instance()
      • shipIt

        public boolean shipIt​(Experiment experiment)
      • addPrecompiledClass

        private boolean addPrecompiledClass​(CompiledClass cs)
      • makeManifest

        private void makeManifest()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • bundleGosu

        private void bundleGosu​(java.util.List<java.lang.String> progClasspath)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • AddExperimentFilesAndDependencies

        private void AddExperimentFilesAndDependencies​(Experiment experiment,
                                                       java.util.List<java.lang.String> progClasspath)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • createMainPropertiesFile

        private void createMainPropertiesFile​(java.lang.String strProgramName,
                                              boolean bBundleGosu)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • addClasspathEntry

        private void addClasspathEntry​(java.util.List<java.lang.String> progClasspath,
                                       java.nio.file.Path csr)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • addJarEntry

        private void addJarEntry​(java.nio.file.Path jarFile)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • createJarRepoFile

        private void createJarRepoFile()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • addEntry

        private void addEntry​(java.nio.file.Path file,
                              java.lang.String strPath)
      • writeBytes

        private void writeBytes​(java.io.InputStream in)
                         throws java.io.IOException
        Throws:
        java.io.IOException