title: How can I get the version of portlets in liferay 7 + OSGI?
body: <p>How is it possible to get the versions of .war portlets of liferay 7.</p>
  
  <p>For example in liferay 6.2 I had a .war, then it was exploded inside the tomcat webapps folder and I could get the versions with another script by just looking at some proeprties like the following:</p>
  
  <pre><code>TMP="$(cat $LIFERAY_FOLDER/tomcat-7.0.62/webapps/MyPortlet/WEB-INF/liferay-plugin-package.xml | awk -v FS="(MyPortlet-portlet/|/war)" '{print $2}' | grep "^.")"
  echo -e "MyPortlet:\t\t\t$TMP" &gt;&gt; $OUTPUT_FILE
  </code></pre>
  
  <p>Or get the versions of some static files inside the porlet:</p>
  
  <pre><code>TMP="$(cat $LIFERAY_FOLDER/tomcat-7.0.62/webapps/MyPortlet/WEB-INF/src/content/Language_de.properties | awk -v FS="(TEXT_VERSION = )" '{print $2}' | grep "^.")"
  echo -e "Text version of MyPortlet:\t\t$TMP"&gt;&gt; $OUTPUT_FILE
  </code></pre>
  
  <p>How is it possible to have this versioning functionality in a production server with liferay 7.1+?</p>
  
  <p>I need to be able to check automatically for the versions currently deployed. The gogo tool is not enabled in production mode by default, and I´ve found that the telnet access sometimes crashes the whole tomcat so is a no go option. And even so I´ve only seen that it allows to access toa  bundle version but in anyway to some static files.</p>
  
  <p>Thanks.</p>