# HG changeset patch # User Tim Englich # Date 1258993833 0 # Node ID d6c0d426e38a99dd985907e0635c255bda01696a # Parent 4ec95d586f3175d7337a79934cf63f4afc773e02 Added the Possibility to get Version-Infomation and Release Date/Time from the GNV-Project using a Browser issue87 gnv/trunk@360 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 4ec95d586f31 -r d6c0d426e38a gnv/ChangeLog --- a/gnv/ChangeLog Fri Nov 20 14:48:33 2009 +0000 +++ b/gnv/ChangeLog Mon Nov 23 16:30:33 2009 +0000 @@ -1,3 +1,18 @@ +2009-11-23 Tim Englich + + * src/main/resources/applicationMessages*.properties: + Added Properties which hold the Version-information of the + GNV which will be set by te Maven package-process. + * src/main/webapp/WEB-INF/config/struts-config.xml: + Added an Action which make the Version-Information accessible. + Now it is possible to get those Information using /version.do + * src/main/webapp/WEB-INF/jsp/version.jsp: + Added an Page where it is possible to get the Information about the current + Version of the GNV and the ArtifactDatabase + * pom.xml: + Added Plugin for creating the BildTime and BildVersion of the gnv. + Replace Tokens in the /src/main/ressources Files + 2009-11-20 Ingo Weinzierl * src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java: diff -r 4ec95d586f31 -r d6c0d426e38a gnv/pom.xml --- a/gnv/pom.xml Fri Nov 20 14:48:33 2009 +0000 +++ b/gnv/pom.xml Mon Nov 23 16:30:33 2009 +0000 @@ -120,6 +120,39 @@ + + org.codehaus.mojo + buildnumber-maven-plugin + 1.0-beta-2 + + + initialize + + create + + + + + false + false + {0, date, yyyy-MM-dd HH:mm:ss} + {0,date,yyyy-MM-dd HH:mm:ss} + + timestamp + + + no_revision + + + + + + + + src/main/resources + true + + diff -r 4ec95d586f31 -r d6c0d426e38a gnv/src/main/resources/applicationMessages.properties --- a/gnv/src/main/resources/applicationMessages.properties Fri Nov 20 14:48:33 2009 +0000 +++ b/gnv/src/main/resources/applicationMessages.properties Mon Nov 23 16:30:33 2009 +0000 @@ -1,3 +1,8 @@ +# application.properties +application.name=${pom.name} +application.version=${pom.version} +application.releasedate=${timestamp} + gnviewer.app.title = BSH-GDI genericViewer gnviewer.project.save = Projekt speichern diff -r 4ec95d586f31 -r d6c0d426e38a gnv/src/main/resources/applicationMessages_en.properties --- a/gnv/src/main/resources/applicationMessages_en.properties Fri Nov 20 14:48:33 2009 +0000 +++ b/gnv/src/main/resources/applicationMessages_en.properties Mon Nov 23 16:30:33 2009 +0000 @@ -1,3 +1,8 @@ +# application.properties +application.name=${pom.name} +application.version=${pom.version} +application.releasedate=${timestamp} + gnviewer.app.title = BSH-GDI genericViewer gnviewer.project.save = Save Project diff -r 4ec95d586f31 -r d6c0d426e38a gnv/src/main/webapp/WEB-INF/config/struts-config.xml --- a/gnv/src/main/webapp/WEB-INF/config/struts-config.xml Fri Nov 20 14:48:33 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/struts-config.xml Mon Nov 23 16:30:33 2009 +0000 @@ -9,6 +9,14 @@ + + + +<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> + + + + <bean:message key="gnviewer.app.title"/> + + + + + + + + + + + + + +
+
+
+

+ +

+
+
+
+ +
+
+

Generischer Viewer

+ Name:
+ Version:
+ Date:
+

Artifaktdatenbank

+ Name: N/N
+ Version: N/N
+ Date: N/N
+
+ +
+ + \ No newline at end of file