Added pandoc command to build file
This commit is contained in:
parent
8dae1dcbaf
commit
84d3f69215
5 changed files with 23 additions and 12 deletions
3
.idea/misc.xml
generated
3
.idea/misc.xml
generated
|
@ -1,7 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="EntryPointsManager">
|
<component name="EntryPointsManager">
|
||||||
<pattern value="net.thauvin.erik.semver.SemverBuild" method="jacoco" />
|
<pattern value="net.thauvin.erik.semver.SemverBuild" method="jacoco" />
|
||||||
<pattern value="net.thauvin.erik.semver.SemverBuild" method="pmd" />
|
<pattern value="net.thauvin.erik.semver.SemverBuild" method="pmd" />
|
||||||
|
<pattern value="net.thauvin.erik.semver.SemverBuild" method="pandoc" />
|
||||||
|
<pattern value="net.thauvin.erik.semver.SemverBuild" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PDMPlugin">
|
<component name="PDMPlugin">
|
||||||
<option name="skipTestSources" value="false" />
|
<option name="skipTestSources" value="false" />
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class ExampleBuild extends Project {
|
||||||
public void compile() throws Exception {
|
public void compile() throws Exception {
|
||||||
var generated = new File(buildDirectory(), "generated");
|
var generated = new File(buildDirectory(), "generated");
|
||||||
var ignore = generated.mkdir();
|
var ignore = generated.mkdir();
|
||||||
this.compileOperation().compileOptions().addAll(List.of("-s", generated.getAbsolutePath()));
|
compileOperation().compileOptions().addAll(List.of("-s", generated.getAbsolutePath()));
|
||||||
super.compile();
|
super.compile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@ bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.2
|
bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.2
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.0
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.0
|
||||||
bld.extensions-testng=com.uwyn.rife2:bld-testng:0.9.1-SNAPSHOT
|
bld.extension-testng=com.uwyn.rife2:bld-testng:0.9.1-SNAPSHOT
|
||||||
|
bld.extension-exec=com.uwyn.rife2:bld-exec:0.9.0-SNAPSHOT
|
||||||
bld.repositories=MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
pandoc --from gfm \
|
|
||||||
--to html5 \
|
|
||||||
--metadata "pagetitle=Semantic Version Annotation Processor" \
|
|
||||||
-s \
|
|
||||||
-c docs/github-pandoc.css \
|
|
||||||
-o docs/README.html \
|
|
||||||
README.md
|
|
|
@ -34,10 +34,10 @@ package net.thauvin.erik.semver;
|
||||||
|
|
||||||
import rife.bld.BuildCommand;
|
import rife.bld.BuildCommand;
|
||||||
import rife.bld.Project;
|
import rife.bld.Project;
|
||||||
|
import rife.bld.extension.ExecOperation;
|
||||||
import rife.bld.extension.JacocoReportOperation;
|
import rife.bld.extension.JacocoReportOperation;
|
||||||
import rife.bld.extension.PmdOperation;
|
import rife.bld.extension.PmdOperation;
|
||||||
import rife.bld.publish.*;
|
import rife.bld.publish.*;
|
||||||
import rife.tools.FileUtils;
|
|
||||||
import rife.tools.exceptions.FileUtilsErrorException;
|
import rife.tools.exceptions.FileUtilsErrorException;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -113,6 +113,22 @@ public class SemverBuild extends Project {
|
||||||
new JacocoReportOperation().fromProject(this).execute();
|
new JacocoReportOperation().fromProject(this).execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@BuildCommand(summary = "Build the docs with Pandoc")
|
||||||
|
public void pandoc() throws Exception {
|
||||||
|
new ExecOperation()
|
||||||
|
.fromProject(this)
|
||||||
|
.command("pandoc",
|
||||||
|
"--from", "gfm",
|
||||||
|
"--to", "html5",
|
||||||
|
"--metadata", "pagetitle=Semantic Version Annotation Processor",
|
||||||
|
"-s",
|
||||||
|
"-c", "docs/github-pandoc.css",
|
||||||
|
"-o", "docs/README.html",
|
||||||
|
"README.md")
|
||||||
|
.execute();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@BuildCommand(summary = "Runs PMD analysis")
|
@BuildCommand(summary = "Runs PMD analysis")
|
||||||
public void pmd() {
|
public void pmd() {
|
||||||
new PmdOperation()
|
new PmdOperation()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue