Changeset 4651


Ignore:
Timestamp:
03/07/14 15:38:44 (10 years ago)
Author:
Twan Goosen
Message:

VLO version property gets set build time and is included in footer of page

Location:
vlo/branches/vlo-3.0/vlo-web-app
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-web-app/pom.xml

    r4582 r4651  
    143143        <resources>
    144144            <resource>
    145                 <filtering>false</filtering>
     145                <filtering>true</filtering>
    146146                <directory>src/main/resources</directory>
    147147            </resource>
     
    225225                </executions>
    226226            </plugin>
     227            <plugin>
     228                <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
     229                <artifactId>svn-revision-number-maven-plugin</artifactId>
     230                <version>1.13</version> <!-- please use the latest version -->
     231                <executions>
     232                    <execution>
     233                        <goals>
     234                            <goal>revision</goal>
     235                        </goals>
     236                    </execution>
     237                </executions>
     238                <configuration>
     239                    <entries>
     240                        <entry>
     241                            <path>${project.basedir}</path>
     242                            <prefix>vlo</prefix>
     243                            <depth>infinity</depth>
     244                            <reportUnversioned>true</reportUnversioned>
     245                            <reportIgnored>false</reportIgnored>
     246                            <reportOutOfDate>false</reportOutOfDate>
     247                        </entry>
     248                    </entries>
     249                </configuration>
     250            </plugin>
    227251        </plugins>
    228252    </build>
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/VloWicketApplication.java

    r4647 r4651  
    4646        // register the resource of field names (used by eu.clarin.cmdi.vlo.wicket.componentsSolrFieldNameLabel)
    4747        getResourceSettings().getStringResourceLoaders().add(new BundleStringResourceLoader("fieldNames"));
    48        
     48        // register the resource of application properties (version information filtered at build time)
     49        getResourceSettings().getStringResourceLoaders().add(new BundleStringResourceLoader("application"));
     50
    4951        // Record (query result) page. E.g. /vlo/record?docId=abc123
    5052        // (cannot encode docId in path because it contains a slash)
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/pages/FacetedSearchPage.html

    r4609 r4651  
    119119
    120120            <div id="footer">
    121                 CLARIN VLO version 3.0 | <a href="#">help</a> | <a href="#">about</a> | <a href="http://www.dcarter.co.uk">design by dcarter</a>
     121                CLARIN VLO version <wicket:message key="vlo.version" /> | <a href="#">help</a> | <a href="#">about</a> | <a href="http://www.dcarter.co.uk">design by dcarter</a>
    122122            </div>
    123123        </div>
Note: See TracChangeset for help on using the changeset viewer.