Skip to content

Instantly share code, notes, and snippets.

View cgorshing's full-sized avatar
👋
Hey!

Chad Gorshing cgorshing

👋
Hey!
View GitHub Profile
@mcantrell
mcantrell / JstlFunctions.groovy
Created September 4, 2012 02:15
Custom JSTL function to retrieve application version from Maven build metadata
package org.devnull.zuul.web.config
import org.springframework.web.context.support.ServletContextResource
import javax.servlet.ServletContext
class JstlFunctions {
static String getApplicationVersion(ServletContext context) {
def mavenProps = new ServletContextResource(context, "/META-INF/maven/org.devnull/zuul-web/pom.properties")
if (mavenProps.exists()) {