public abstract class AbstractPackHandler extends Object implements PackHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
BIN_DIR_NAME
bin 主目录的名称常量.
|
protected String |
binPath
各平台中的主目录中的 bin 目录路径.
|
protected PackInfo |
packInfo
打包的相关参数实体对象.
|
protected String |
platformPath
各平台中的主目录路径.
|
| 构造器和说明 |
|---|
AbstractPackHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,Object> |
buildBaseTemplateContextMap()
构建基础的渲染模板引擎的上下文参数的 Map.
|
protected void |
compress(PlatformEnum platformEnum)
制作 linux 下的 tar.gz 压缩包.
|
protected void |
copyFiles(String source,
String destination)
复制基础文件到各平台的主目录中,如:`README.md`.
|
protected void |
createBaseDirs()
创建基础目录,如:bin, config, docs, logs等.
|
protected void |
createPlatformCommonDir(PlatformEnum platformEnum)
创建各个平台下的主目录和主目录中的 bin, docs, logs 等目录文件夹.
|
protected boolean |
isRootPath(String filePath)
判断给定的文件路径是否是项目的根路径.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpackprotected PackInfo packInfo
protected String platformPath
protected String binPath
protected void createPlatformCommonDir(PlatformEnum platformEnum)
platformEnum - 平台protected void createBaseDirs()
protected void copyFiles(String source, String destination)
source - 源地址destination - 目标地址protected Map<String,Object> buildBaseTemplateContextMap()
protected boolean isRootPath(String filePath)
filePath - 文件路径.protected void compress(PlatformEnum platformEnum)
platformEnum - 平台Copyright © 2019–2020 blinkfox. All rights reserved.