Skip to content

Commit

Permalink
Merge pull request #575 from caelum/ot-mavenpreprocessor
Browse files Browse the repository at this point in the history
Maven preprocessor to change log version when release a new version
  • Loading branch information
garcia-jj committed Oct 2, 2013
2 parents 877c101 + 641a559 commit 2ea5283
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions vraptor-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,29 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>process-sources</id>
<phase>process-sources</phase>
<configuration>
<target>
<replaceregexp file="src/main/java/br/com/caelum/vraptor/VRaptor.java"
match="VERSION = &quot;(.*)&quot;;"
replace="VERSION = &quot;${project.version}&quot;;"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 2ea5283

Please sign in to comment.