diff --git a/README.md b/README.md index d9a9636..89fc8e5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ -# [beanshell-examples](https://github.com/chabala/beanshell-examples) +# [beanshell-examples](https://chabala.github.io/beanshell-examples/) BeanShell example code, in the context of enhancing a Maven build. +
+[GitHub repository for this page](https://github.com/chabala/beanshell-examples/)
+ ## What is BeanShell? [BeanShell][1] is one of several [JSR-223][2] compliant scripting languages. JSR-223 compliance is a standard @@ -75,7 +78,8 @@ you were stuck in a pre-Java-8 environment. First let's look at the examples from the plugin documentation. -From https://genthaler.github.io/beanshell-maven-plugin/usage.html : +From: [https://genthaler.github.io/beanshell-maven-plugin/usage.html]( +https://genthaler.github.io/beanshell-maven-plugin/usage.html) ```xml @@ -152,7 +156,8 @@ BeanShell, GitHub. I searched specifically for pom.xml files that contained 'bea ### JaCoCo -From: https://github.com/jacoco/jacoco/blob/25594b2c01d5b76a4f76cf2de967aa70258c84c0/org.jacoco.build/pom.xml#L671-L717 +From: [https://github.com/jacoco/jacoco/blob/25594b2c01d5b76a4f76cf2de967aa70258c84c0/org.jacoco.build/pom.xml#L671-L717]( +https://github.com/jacoco/jacoco/blob/25594b2c01d5b76a4f76cf2de967aa70258c84c0/org.jacoco.build/pom.xml#L671-L717) ```xml @@ -217,7 +222,8 @@ could handle, and presumably using them later on in the build. ### MariaDB4j -From: https://github.com/MariaDB4j/MariaDB4j/blob/a77298386c309276674f207f9dced010c73eb35c/mariaDB4j-pom-lite/pom.xml#L97-L153 +From: [https://github.com/MariaDB4j/MariaDB4j/blob/a77298386c309276674f207f9dced010c73eb35c/mariaDB4j-pom-lite/pom.xml#L97-L153]( +https://github.com/MariaDB4j/MariaDB4j/blob/a77298386c309276674f207f9dced010c73eb35c/mariaDB4j-pom-lite/pom.xml#L97-L153) ```xml @@ -301,7 +307,8 @@ copies of them simply due to forks of the containing projects and slight variati The next two examples are my own work, and you are free to use them as you see fit. -From: https://github.com/chabala/brick-control-lab/pull/26/commits/a3d940914e08e1056ca07eee463406ec07683376 +From: [https://github.com/chabala/brick-control-lab/pull/26/commits/a3d940914e08e1056ca07eee463406ec07683376]( +https://github.com/chabala/brick-control-lab/pull/26/commits/a3d940914e08e1056ca07eee463406ec07683376) ```xml @@ -317,36 +324,36 @@ From: https://github.com/chabala/brick-control-lab/pull/26/commits/a3d940914e08e true \n" + - "\n\n\n"; - return template; - } - File site = new File(project.reporting.outputDirectory); - site.mkdirs(); - String[][] filenameArray = new String[][] { - {"integration.html", "ci-management.html"}, - {"issue-tracking.html", "issue-management.html"}, - {"license.html", "licenses.html"}, - {"project-summary.html", "summary.html"}, - {"source-repository.html", "scm.html"}, - {"team-list.html", "team.html"}}; - for (int i=0; i + // Generate redirect pages for historic site URLs (MPIR-323) + String contents(String target) { + String url = project.url + target; + String template = "\n" + + "\n" + + "\n" + + " \n" + + " \n" + + " \n" + + "\n\n

\n" + + " This page has been moved to " + url + "\n" + + " \n" + + "

\n\n\n"; + return template; + } + File site = new File(project.reporting.outputDirectory); + site.mkdirs(); + String[][] filenameArray = new String[][] { + {"integration.html", "ci-management.html"}, + {"issue-tracking.html", "issue-management.html"}, + {"license.html", "licenses.html"}, + {"project-summary.html", "summary.html"}, + {"source-repository.html", "scm.html"}, + {"team-list.html", "team.html"}}; + for (int i=0; i
@@ -375,7 +382,8 @@ with the Plexus `FileUtils` we saw used earlier. This feels like it hits the sweet spot of being too niche to warrant having its own plugin, and yet too complex to try to cobble together from Ant primitives in `maven-antrun-plugin`. The last example is a different story. -From: https://github.com/chabala/brick-control-lab/pull/26/commits/94072024c98e1b591efc789699c3180cbe45f389 +From: [https://github.com/chabala/brick-control-lab/pull/26/commits/94072024c98e1b591efc789699c3180cbe45f389]( +https://github.com/chabala/brick-control-lab/pull/26/commits/94072024c98e1b591efc789699c3180cbe45f389) ```xml