Skip to content

Commit

Permalink
Merge pull request #567 from Nizernizer/fix/param-fix
Browse files Browse the repository at this point in the history
fix: delete parameter dongtai.app.create.
  • Loading branch information
lostsnow authored Aug 8, 2023
2 parents f49f486 + 5d9bba6 commit 1fed3dd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
public class IastProperties {
public final static Map<String, String> ATTACH_ARG_MAP = new HashMap<String, String>() {{
put("debug", PropertyConstant.PROPERTY_DEBUG);
put("app_create", PropertyConstant.PROPERTY_APP_CREATE);
put("app_name", PropertyConstant.PROPERTY_APP_NAME);
put("app_version", PropertyConstant.PROPERTY_APP_VERSION);
put("app_template", PropertyConstant.PROPERTY_APP_TEMPLATE);
Expand Down Expand Up @@ -129,20 +128,6 @@ public boolean isDebug() {
return "true".equalsIgnoreCase(getDebugFlag());
}

public Integer isAutoCreateProject() {
if (null == isAutoCreateProject) {
String result = System.getProperty(PropertyConstant.PROPERTY_APP_CREATE,
System.getProperty("project.create", cfg.getProperty("project.create", "false"))
);
if ("true".equalsIgnoreCase(result)) {
isAutoCreateProject = 1;
} else {
isAutoCreateProject = 0;
}
}
return isAutoCreateProject;
}

public String getProjectName() {
if (null == projectName) {
String[] names = new String[]{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ private String generateAgentRegisterMsg() {
object.put("serverPath", ServerDetect.getWebServerPath());
object.put("serverAddr", "");
object.put("serverPort", "");
object.put("autoCreateProject", IastProperties.getInstance().isAutoCreateProject());
object.put("projectVersion", IastProperties.getInstance().getProjectVersion());
object.put("projectTemplateId", IastProperties.getInstance().getProjectTemplate());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

public class PropertyConstant {
public static final String PROPERTY_DEBUG = "dongtai.debug";
public static final String PROPERTY_APP_CREATE = "dongtai.app.create";
public static final String PROPERTY_APP_NAME = "dongtai.app.name";
public static final String PROPERTY_APP_VERSION = "dongtai.app.version";
public static final String PROPERTY_APP_TEMPLATE = "dongtai.app.template";
Expand Down

0 comments on commit 1fed3dd

Please sign in to comment.