Permalink
Browse files

Adding build script.

  • Loading branch information...
1 parent ded1294 commit a1f367ea68637f9d0443ac6859bdd005d064e478 @toddmazierski toddmazierski committed Nov 2, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +4 −0 build.sh
  3. +4 −1 pom.xml → pom.xml.erb
View
@@ -5,4 +5,4 @@ target
/.classpath
/.settings
/.project
-.svn
+pom.xml
View
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+erb pom.xml.erb > pom.xml
+mvn
View
@@ -1,8 +1,11 @@
+<% last_commit_hash = `git log --pretty=format:'%h' -n 1` %>
+<% version = "2.0-beta-7-#{last_commit_hash}-paperless" %>
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>biz.neustar</groupId>
<artifactId>browsermob-proxy</artifactId>
- <version>2.0-beta-7-2db320e-paperless</version>
+ <version><%= version %></version>
<name>BrowserMob Proxy</name>
<description>A programmatic HTTP/S designed for performance and functional testing</description>
<url>http://opensource.webmetrics.com/browsermob-proxy</url>

0 comments on commit a1f367e

Please sign in to comment.