Package pro.gravit.launchserver.binary
Class BuildContext
java.lang.Object
pro.gravit.launchserver.binary.BuildContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuildContext(ZipOutputStream output, List<JarFile> readerClassPath, MainBuildTask task, Path runtimeDir) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvoidpushEncryptedDir(Path dir, String targetDir, String aesHexKey, Map<String, byte[]> hashMap, boolean hidden) voidpushFile(String filename, InputStream inputStream) voidvoidvoidvoidvoidsetDeleteRuntimeDir(boolean deleteRuntimeDir) voidsetRuntimeDir(Path runtimeDir)
-
Field Details
-
output
-
readerClassPath
-
task
-
fileList
-
clientModules
-
legacyClientModules
-
-
Constructor Details
-
BuildContext
public BuildContext(ZipOutputStream output, List<JarFile> readerClassPath, MainBuildTask task, Path runtimeDir)
-
-
Method Details
-
pushFile
- Throws:
IOException
-
pushFile
public void pushFile(String filename, pro.gravit.launcher.core.serialize.stream.StreamObject object) throws IOException - Throws:
IOException
-
pushFile
- Throws:
IOException
-
pushDir
public void pushDir(Path dir, String targetDir, Map<String, byte[]> hashMap, boolean hidden) throws IOException- Throws:
IOException
-
pushEncryptedDir
public void pushEncryptedDir(Path dir, String targetDir, String aesHexKey, Map<String, byte[]> hashMap, boolean hidden) throws IOException- Throws:
IOException
-
pushBytes
- Throws:
IOException
-
pushJarFile
public void pushJarFile(Path jarfile, Predicate<ZipEntry> filter, Predicate<String> needTransform) throws IOException - Throws:
IOException
-
getRuntimeDir
-
setRuntimeDir
-
pushJarFile
public void pushJarFile(URL jarfile, Predicate<ZipEntry> filter, Predicate<String> needTransform) throws IOException - Throws:
IOException
-
isDeleteRuntimeDir
public boolean isDeleteRuntimeDir() -
setDeleteRuntimeDir
public void setDeleteRuntimeDir(boolean deleteRuntimeDir)
-