Strabon

changeset 955:318ed1e6dd14

added file endpoint/src/main/resources/version.properties in strabon-endpoint that contains the version of Strabon. The version is updated automatically during the build process and then it can be accessed by any Java class
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Apr 02 01:03:35 2013 +0300 (2013-04-02)
parents 6fac72daf1d3
children 4454601946a5
files endpoint/pom.xml endpoint/src/main/resources/version.properties
line diff
     1.1 --- a/endpoint/pom.xml	Mon Apr 01 15:48:27 2013 +0300
     1.2 +++ b/endpoint/pom.xml	Tue Apr 02 01:03:35 2013 +0300
     1.3 @@ -126,6 +126,22 @@
     1.4  	</dependencies>
     1.5  
     1.6  	<build>
     1.7 +		<resources>
     1.8 +			<resource>
     1.9 +				<directory>src/main/resources</directory>
    1.10 +				<filtering>true</filtering>
    1.11 +				<includes>
    1.12 +					<include>**/version.properties</include>
    1.13 +				</includes>
    1.14 +			</resource>
    1.15 +			<resource>
    1.16 +				<directory>src/main/resources</directory>
    1.17 +				<filtering>false</filtering>
    1.18 +				<excludes>
    1.19 +					<exclude>**/version.properties</exclude>
    1.20 +				</excludes>
    1.21 +			</resource>
    1.22 +		</resources>
    1.23  		<plugins>
    1.24  			<plugin>
    1.25  				<groupId>org.apache.maven.plugins</groupId>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/endpoint/src/main/resources/version.properties	Tue Apr 02 01:03:35 2013 +0300
     2.3 @@ -0,0 +1,1 @@
     2.4 +version=${project.version}