Package editor.shipit
Class ShipIt
- java.lang.Object
-
- editor.shipit.ShipIt
-
public class ShipIt extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShipIt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddClasspathEntry(java.util.List<java.lang.String> progClasspath, java.nio.file.Path csr)private voidaddEntry(java.nio.file.Path file, java.lang.String strPath)private voidAddExperimentFilesAndDependencies(Experiment experiment, java.util.List<java.lang.String> progClasspath)private voidaddJarEntry(java.nio.file.Path jarFile)private booleanaddPrecompiledClass(CompiledClass cs)private voidbundleGosu(java.util.List<java.lang.String> progClasspath)private voidcreateJarRepoFile()private voidcreateMainPropertiesFile(java.lang.String strProgramName, boolean bBundleGosu)static ShipItinstance()private voidmakeManifest()booleanshipIt(Experiment experiment)private voidwriteBytes(java.io.InputStream in)
-
-
-
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
-
-
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
-
-