class PackageOption
{
- private final String BUILD_TARGET_PATH_OPTION = "-BUILD_DIR=\"%s\"";
- private String ARCH_OPTION = "-ARCH=%s";
- private String PACKAGE_TYPE_OPTION = "-PKG_TYPE=%s";
- private String PACKAGE_NAME_OPTION = "-PKG_NAME=%s";
- private String PROJECT_NAME_OPTION = "-PRJ_NAME=%s";
- private String ARTIFACT_NAME_OPTION = "-ARTIFACT_NAME=%s";
- private String PACKAGE_VERSION_OPTION = "-PKG_VER=%s";
-
private String buildTargetPathWithOption;
private String archWithOption;
private String packageTypeWithOption;
PackageOption(String buildTargetPath, String arch, String packageType, String packageName, String projectName, String artifactName, String packageVersion)
{
- buildTargetPathWithOption = String.format(BUILD_TARGET_PATH_OPTION, buildTargetPath);
- archWithOption = String.format(ARCH_OPTION, arch);
- packageTypeWithOption = String.format(PACKAGE_TYPE_OPTION, packageType);
- packageNameWithOption = String.format(PACKAGE_NAME_OPTION, packageName);
- projectNameWithOption = String.format(PROJECT_NAME_OPTION, projectName);
- artifactNameWithOption = String.format(ARTIFACT_NAME_OPTION, artifactName);
- packageVersionWithOption = String.format(PACKAGE_VERSION_OPTION, packageVersion);
+ buildTargetPathWithOption = String.format("-BUILD_DIR=\"%s\"", buildTargetPath);
+ archWithOption = String.format("-ARCH=%s", arch);
+ packageTypeWithOption = String.format("-PKG_TYPE=%s", packageType);
+ packageNameWithOption = String.format("-PKG_NAME=%s", packageName);
+ projectNameWithOption = String.format("-PRJ_NAME=%s", projectName);
+ artifactNameWithOption = String.format("-ARTIFACT_NAME=%s", artifactName);
+ packageVersionWithOption = String.format("-PKG_VER=%s", packageVersion);
}
public String getBuildTargetPathWithOption()