File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
java/net/lightbody/bmp/proxy Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 99
99
</profiles >
100
100
101
101
<build >
102
+ <resources >
103
+ <resource >
104
+ <directory >src/main/resources</directory >
105
+ <filtering >true</filtering >
106
+ <includes >
107
+ <include >**/*.prop</include >
108
+ </includes >
109
+ </resource >
110
+ </resources >
102
111
<defaultGoal >install</defaultGoal >
103
112
<plugins >
104
113
<plugin >
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ public static void main(String[] args) throws Exception {
27
27
configureLogging ();
28
28
29
29
String version = "UNKNOWN/DEVELOPMENT" ;
30
- InputStream is = Main .class .getResourceAsStream ("/META-INF/maven/net.lightbody.bmp/browsermob-proxy/pom.properties" );
30
+ InputStream is = Main .class .getResourceAsStream ("/version.prop" );
31
+
31
32
if (is != null ) {
32
33
Properties props = new Properties ();
33
34
props .load (is );
@@ -41,7 +42,7 @@ protected void configureSitebricks() {
41
42
}
42
43
});
43
44
44
- LOG .info ("Starting BrowserMob Proxy version %s " , version );
45
+ LOG .info ("Starting BrowserMob Proxy version {} " , version );
45
46
46
47
Server server = injector .getInstance (Server .class );
47
48
GuiceServletContextListener gscl = new GuiceServletContextListener () {
Original file line number Diff line number Diff line change
1
+ version=${project.version}
You can’t perform that action at this time.
0 commit comments