This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See http://git.chorem.org/pollen.git commit 5d1b9c1967da3f6b867d95e47a8ed8a4216c9825 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Jul 31 18:44:26 2014 +0200 add version.txt file with application version in root path of the war --- pollen-ui-angular/.gitignore | 1 + pollen-ui-angular/pom.xml | 25 +++++++++++++++++++++++++ pollen-ui-angular/src/main/version.txt | 1 + 3 files changed, 27 insertions(+) diff --git a/pollen-ui-angular/.gitignore b/pollen-ui-angular/.gitignore index 09447a5..c3551f4 100644 --- a/pollen-ui-angular/.gitignore +++ b/pollen-ui-angular/.gitignore @@ -3,4 +3,5 @@ node_modules/* src/main/webapp/lib src/main/webapp/css/style.css src/main/webapp/js/conf.js +src/main/webapp/version.txt diff --git a/pollen-ui-angular/pom.xml b/pollen-ui-angular/pom.xml index 5f53bc8..3fc9403 100644 --- a/pollen-ui-angular/pom.xml +++ b/pollen-ui-angular/pom.xml @@ -107,6 +107,31 @@ <reporters>dots,junit</reporters> </configuration> </plugin> + + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <executions> + <execution> + <id>copy-version-file</id> + <goals><goal>copy-resources</goal></goals> + <phase>generate-resources</phase> + <configuration> + <outputDirectory>src/main/webapp</outputDirectory> + <resources> + <resource> + <directory>src/main</directory> + <!--<targetPath>src/main/webapp</targetPath>--> + <includes> + <include>version.txt</include> + </includes> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> diff --git a/pollen-ui-angular/src/main/version.txt b/pollen-ui-angular/src/main/version.txt new file mode 100644 index 0000000..f2ab45c --- /dev/null +++ b/pollen-ui-angular/src/main/version.txt @@ -0,0 +1 @@ +${project.version} \ No newline at end of file -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.