Skip to content

Commit

Permalink
switch gemPath to a String
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux authored and LightGuard committed Aug 20, 2014
1 parent d49be79 commit 67c0292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/asciidoctor/maven/AsciidoctorMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class AsciidoctorMojo extends AbstractMojo {
protected File baseDir;

@Parameter(property = AsciidoctorMaven.PREFIX + "gemPath", required = false)
protected File gemPath;
protected String gemPath;

@Parameter(property = AsciidoctorMaven.PREFIX + "requires")
protected List<String> requires = new ArrayList<String>();
Expand Down Expand Up @@ -164,12 +164,12 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}
}

protected Asciidoctor getAsciidoctorInstance(File gemPath) throws MojoExecutionException {
protected Asciidoctor getAsciidoctorInstance(String gemPath) throws MojoExecutionException {
if (gemPath == null) {
return Asciidoctor.Factory.create();
}
else {
return Asciidoctor.Factory.create(gemPath.getAbsolutePath());
return Asciidoctor.Factory.create(gemPath);
}
}

Expand Down

0 comments on commit 67c0292

Please sign in to comment.