From 4db4a33a4cc9537357857d030acf397af8f97cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ot=C3=A1vio=20Garcia?= Date: Wed, 2 Oct 2013 11:08:53 -0300 Subject: [PATCH 1/3] Extract version as attribute --- vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java index 35f9962e9..6e190b93e 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java @@ -52,6 +52,8 @@ * @author Fabio Kung */ public class VRaptor implements Filter { + private static final String VERSION = "3.5.2-SNAPSHOT"; + private ContainerProvider provider; private ServletContext servletContext; @@ -111,7 +113,7 @@ public void init(FilterConfig cfg) throws ServletException { servletContext = cfg.getServletContext(); BasicConfiguration config = new BasicConfiguration(servletContext); init(config.getProvider()); - logger.info("VRaptor 3.5.3 successfuly initialized"); + logger.info("VRaptor {} successfuly initialized", VERSION); } void init(ContainerProvider provider) { From dba106441c4a7d678d04d2bba42601396bc7ecdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ot=C3=A1vio=20Garcia?= Date: Wed, 2 Oct 2013 11:10:16 -0300 Subject: [PATCH 2/3] Creating a preprocessor to change vraptor version when release a new version --- vraptor-core/pom.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/vraptor-core/pom.xml b/vraptor-core/pom.xml index 167756eb6..1ab3a5b0d 100755 --- a/vraptor-core/pom.xml +++ b/vraptor-core/pom.xml @@ -381,6 +381,29 @@ + + + org.apache.maven.plugins + maven-antrun-plugin + 1.7 + + + package + package + + + + + + + run + + + + + From 641a5594c7113354a17df01e03bc40737642dca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ot=C3=A1vio=20Garcia?= Date: Wed, 2 Oct 2013 18:12:05 -0300 Subject: [PATCH 3/3] Changing phase --- vraptor-core/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vraptor-core/pom.xml b/vraptor-core/pom.xml index 1ab3a5b0d..7820bfaeb 100755 --- a/vraptor-core/pom.xml +++ b/vraptor-core/pom.xml @@ -388,8 +388,8 @@ 1.7 - package - package + process-sources + process-sources