Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/main/java/com/cj/jshintmojo/Mojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class Mojo extends AbstractMojo {
private String reporter = "";

/**
* @parameter property="reportFile"
* @parameter property="reportFile" default-value="${project.build.directory}/jshint.xml"
*/
private String reportFile = "";

Expand All @@ -86,7 +86,7 @@ public class Mojo extends AbstractMojo {
private String ignoreFile = "";

/**
* @parameter expression="${jshint.version}"
* @parameter property="jshint.version"
*/
private String version = "2.4.3";

Expand Down Expand Up @@ -330,8 +330,7 @@ private void saveReportFile(Map<String, Result> results, String reportType, Stri
}else{
return;
}
File file = StringUtils.isNotBlank(reportFile) ?
new File(reportFile) : new File("target/jshint.xml");
File file = new File(reportFile);
getLog().info(String.format("Generating \"JSHint\" report. reporter=%s, reportFile=%s.",
reportType, file.getAbsolutePath()));

Expand Down