Skip to content

Commit

Permalink
Start generating initializeMod run config
Browse files Browse the repository at this point in the history
Resolves: #7
  • Loading branch information
Matthew committed May 3, 2021
1 parent 1d26de5 commit f9eb68a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ void execute() throws IOException, TransformerException {
LaunchRunConfig.DEBUG_ZOMBOID_LOCAL.configure(project).writeToFile();

GradleRunConfig.SETUP_WORKSPACE.configure(project).writeToFile();
GradleRunConfig.INITIALIZE_MOD.configure(project).writeToFile();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ public class GradleRunConfig extends XMLDocument {
OptionType.RUN_CONFIG_TASK, "runZomboidDoc"
)
);

public static final GradleRunConfig INITIALIZE_MOD = new GradleRunConfig(
"initializeMod", ImmutableMap.of(
OptionType.BEFORE_RUN_TASK, "initLocalProperties",
OptionType.BEFORE_RUN_TASK, "initModInfo",
OptionType.BEFORE_RUN_TASK, "createModStructure",
OptionType.BEFORE_RUN_TASK, "applyModTemplate"
)
);
private final Map<OptionType, String> options;

public GradleRunConfig(String name, Map<OptionType, String> options) {
Expand Down

0 comments on commit f9eb68a

Please sign in to comment.