Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Dec 18, 2024
1 parent b53f0aa commit 76cf4cc
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

/**
* Maven Goal for Rascal Tutor Documentation compilation. The input is a list of
* Rascal source folders, and course folders, and the output is for each module
* Rascal source folders, and course folders, and the output is for each module
* a markdown file and for each markdown file in a source course an output markdown
* file. The compiler also copies images from source to a target assets folder.
* Also a list of errors and warnings is printed on stderr.
Expand Down Expand Up @@ -156,13 +156,13 @@ public void execute() throws MojoExecutionException {
List<ISourceLocation> compilerClassPath = collectPluginClasspath();

PathConfig pcfg = new PathConfig(srcLocs, libLocs, binLoc, ignoredLocs, compilerClassPath, classpath);

getLog().info("Paths have been configured: " + pcfg);

URIResolverRegistry.getInstance().registerLogical(
new ProjectURIResolver(
MojoUtils.location(
project.getBasedir().getCanonicalFile().toString()),
project.getBasedir().getCanonicalFile().toString()),
project.getName()
)
);
Expand All @@ -183,7 +183,7 @@ public void execute() throws MojoExecutionException {
getLog().error(e.getLocation() + ": " + e.getMessage());
getLog().error(e.getTrace().toString());
throw new MojoExecutionException(UNEXPECTED_ERROR, e);
}
}
}

private List<ISourceLocation> collectClasspath() throws URISyntaxException {
Expand Down Expand Up @@ -225,10 +225,10 @@ private List<ISourceLocation> collectClasspath() throws URISyntaxException {

private List<ISourceLocation> collectPluginClasspath() throws URISyntaxException {
List<ISourceLocation> builder = new LinkedList<>();

builder.add(MojoUtils.location(IValue.class.getProtectionDomain().getCodeSource().getLocation().getPath()));
builder.add(MojoUtils.location(Evaluator.class.getProtectionDomain().getCodeSource().getLocation().getPath()));

return builder;
}

Expand All @@ -248,7 +248,7 @@ private IList runCompiler(IRascalMonitor monitor, IEvaluator<Result<IValue>> eva
if (issues != null) {
pc = pc.asWithKeywordParameters().setParameter("issues", MojoUtils.location(issues));
}

pc = pc.asWithKeywordParameters().setParameter("license", MojoUtils.location(licenseFile));
pc = pc.asWithKeywordParameters().setParameter("funding", MojoUtils.location(funding));
pc = pc.asWithKeywordParameters().setParameter("citation", MojoUtils.location(citation));
Expand Down

0 comments on commit 76cf4cc

Please sign in to comment.