@@ -27,8 +27,8 @@ public void doGetHelper(HttpServletRequest request, HttpServletResponse response
2727 //create info json object
2828 JSONObject json_info = new JSONObject ();
2929 json_info .put ("webservice-version" , getVersion (request ));
30- json_info .put ("server-version" , serverInfo );
31- json_info .put ("os-info" , System .getProperty ("os.name" ) + " " + System .getProperty ("os.version" ));
30+ // json_info.put("server-version", serverInfo);
31+ // json_info.put("os-info", System.getProperty("os.name") + " " + System.getProperty("os.version"));
3232 json_info .put ("java-version" , Runtime .version ().toString ());
3333 //resolve request and catch any errors
3434 RequestResolver rr = new InfoRequestResolver (request ,
@@ -57,10 +57,14 @@ public synchronized String getVersion(HttpServletRequest request) {
5757 // try to load from maven properties first
5858 try {
5959 Properties p = new Properties ();
60+ //to do: this needs to be done dynamically so the garage name doesn't matter
6061 InputStream is = request .getServletContext ().getResourceAsStream ("/META-INF/maven/pl.psnc.dl.ege.webapp/meigarage/pom.properties" );
62+ if (is == null ){
63+ is = request .getServletContext ().getResourceAsStream ("/META-INF/maven/pl.psnc.dl.ege.webapp/teigarage/pom.properties" );
64+ }
6165 if (is != null ) {
6266 p .load (is );
63- version = p .getProperty ("version" , "" );
67+ version = p .getProperty ("version" , "not found " );
6468 }
6569 } catch (Exception e ) {
6670 // ignore
0 commit comments