Skip to content

Commit

Permalink
Fix Server File don't use the custom serverFolder Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-evers committed Feb 13, 2020
1 parent d997af5 commit 868e3a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ public class InstallMojo extends AbstractMojo {
private boolean cleanPluginFolder = false;


private File serverFile = new File(serverFolder, "server.jar");
private File serverFile;


@Override
public void execute() throws MojoExecutionException, MojoFailureException {
serverFile = new File(serverFolder, "server.jar");

if (reinstallServer) {
cleanServerFolder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ public class StartMojo extends AbstractMojo {
@Parameter(name = "skipPluginCopy",defaultValue = "false")
private boolean skipPluginCopy;

private File serverFile = new File(serverFolder, "server.jar");
private File serverFile;

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
serverFile = new File(serverFolder, "server.jar");

if (serverFile.exists()) {

if (!skipPluginCopy) {
Expand Down

0 comments on commit 868e3a4

Please sign in to comment.