diff --git a/README.html b/README.html index 06976da..1b7b8d3 100644 --- a/README.html +++ b/README.html @@ -50,7 +50,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf

HttpStatus JSP Tag Library

-

License (3-Clause BSD) Dependency Status Build Status Build status release Maven Central Download

+

License (3-Clause BSD) release Dependency Status Maven Central Download Build Status Build status CircleCI

A simple JSP Tag Library to display the code, reason and/or cause for HTTP status codes in JSP error pages.


For example:

diff --git a/README.md b/README.md index 0388759..b7ed452 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # HttpStatus JSP Tag Library -[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause) [![Dependency Status](https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a) [![Build Status](https://travis-ci.org/ethauvin/HttpStatus.svg?branch=master)](https://travis-ci.org/ethauvin/HttpStatus) [![Build status](https://ci.appveyor.com/api/projects/status/w5j4kul3w2rkigxb?svg=true)](https://ci.appveyor.com/project/ethauvin/httpstatus) [![release](http://github-release-version.herokuapp.com/github/ethauvin/httpstatus/release.svg?style=flat)](https://github.com/ethauvin/httpstatus/releases/latest) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus) [ ![Download](https://api.bintray.com/packages/ethauvin/maven/HttpStatus/images/download.svg) ](https://bintray.com/ethauvin/maven/HttpStatus/_latestVersion) +[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause) [![release](http://github-release-version.herokuapp.com/github/ethauvin/httpstatus/release.svg?style=flat)](https://github.com/ethauvin/httpstatus/releases/latest) [![Dependency Status](https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56a6947a1b78fd002d00018a) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik.httpstatus/httpstatus) [ ![Download](https://api.bintray.com/packages/ethauvin/maven/HttpStatus/images/download.svg) ](https://bintray.com/ethauvin/maven/HttpStatus/_latestVersion) [![Build Status](https://travis-ci.org/ethauvin/HttpStatus.svg?branch=master)](https://travis-ci.org/ethauvin/HttpStatus) [![Build status](https://ci.appveyor.com/api/projects/status/w5j4kul3w2rkigxb?svg=true)](https://ci.appveyor.com/project/ethauvin/httpstatus) [![CircleCI](https://circleci.com/gh/ethauvin/httpstatus/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/httpstatus/tree/master) A simple [JSP](http://www.oracle.com/technetwork/java/javaee/jsp/index.html) Tag Library to display the [code](#hscode), [reason](#hsreason) and/or [cause](#hscode) for [HTTP status codes](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) in JSP error pages. diff --git a/build.gradle b/build.gradle index af6b70d..bc814b0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { - id "com.jfrog.bintray" version "1.5" + id "com.jfrog.bintray" version "1.7.3" + id "com.github.ben-manes.versions" version "0.14.0" } apply plugin: 'java' apply plugin: 'idea' @@ -65,7 +66,7 @@ dependencies { compile 'javax.servlet:javax.servlet-api:3.1.0' compile 'javax.servlet.jsp:jsp-api:2.2' - testCompile 'org.testng:testng:6.9.12' + testCompile 'org.testng:testng:6.11' } bintray { @@ -161,7 +162,7 @@ javadoc { options.tags = ['created'] options.author = true options.links('https://docs.oracle.com/javaee/7/api/', 'http://docs.oracle.com/javase/8/docs/api/') - options.addStringOption('sourcepath', project.hasProperty('jdkSrc') ? jdkSrc : "$System.env.JAVA_HOME/src.zip") + //options.addStringOption('sourcepath', project.hasProperty('jdkSrc') ? jdkSrc : "$System.env.JAVA_HOME/src.zip") if (JavaVersion.current().isJava8Compatible()) { options.addStringOption('Xdoclint:none', '-quiet') } @@ -208,10 +209,12 @@ task deploy(dependsOn: ['build', 'copyToDeploy']) { mustRunAfter clean } -task release(dependsOn: ['wrapper', 'clean', 'deploy']) << { +task release(dependsOn: ['wrapper', 'clean', 'deploy']) { group = 'Publishing' description = 'Releases new version.' - isRelease = true + doLast { + isRelease = true + } } task pandoc(type: Exec) { diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..128bc93 --- /dev/null +++ b/circle.yml @@ -0,0 +1,11 @@ +machine: + java: + version: oraclejdk8 + +dependencies: + override: + - chmod +x gradlew + +test: + post: + - cp -r build/reports/* $CIRCLE_TEST_REPORTS/ \ No newline at end of file diff --git a/src/main/java/net/thauvin/erik/httpstatus/Utils.java b/src/main/java/net/thauvin/erik/httpstatus/Utils.java index b4c4138..9c5b3a5 100644 --- a/src/main/java/net/thauvin/erik/httpstatus/Utils.java +++ b/src/main/java/net/thauvin/erik/httpstatus/Utils.java @@ -97,7 +97,7 @@ public final class Utils { * @param value The string value. * @param defaultValue The default value. * @param xml The {@link #escapeXml(String) xml} flag. - * @throws IOException f an I/O error occurs. + * @throws IOException If an I/O error occurs. */ public static void outWrite(final Writer out, final String value, final String defaultValue, final boolean xml) throws IOException {