	public void execute() throws MojoExecutionException {
		try {
			if (ignoreMissingFile && !fileExists(file)) {
				getLog().info("Ignoring missing file");
				return;
			}
			getLog().info("Replacing " + token + " with " + value + " in " + file);
			if (outputFile != null) {
				getLog().info("Outputting to: " + outputFile);
			}
			getTokenReplacer().replaceTokens(token, value, isRegex());
		} catch (IOException e) {
			throw new MojoExecutionException(e.getMessage());
		}
	}

	public void execute() throws MojoExecutionException {
		try {
			if (ignoreMissingFile && !fileExists(file)) {
				getLog().info("Ignoring missing file");
				return;
			}
      if (value != null) {
          getLog().info("Replacing " + token + " with " + value + " in " + file);
		  } else {
          getLog().info("Removing all instances of" + token + " in " + file);
			}
			if (outputFile != null) {
				getLog().info("Outputting to: " + outputFile);
			}
			getTokenReplacer().replaceTokens(token, value, isRegex());
		} catch (IOException e) {
			throw new MojoExecutionException(e.getMessage());
		}
	}
