You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2016/03/10 06:39:40 UTC
[jira] [Created] (CB-10830) Create script to grab release data for
reporting
Shazron Abdullah created CB-10830:
-------------------------------------
Summary: Create script to grab release data for reporting
Key: CB-10830
URL: https://issues.apache.org/jira/browse/CB-10830
Project: Apache Cordova
Issue Type: New Feature
Components: Coho
Reporter: Shazron Abdullah
All the releases live here:
https://dist.apache.org/repos/dist/release/cordova/
Sync the svn repo and do a:
{code}
svn info --xml *tgz
{code}
We can't do a "ls" since that only reports creation/modified time on the local disk, not when it was created in svn.
This will report some xml, which needs to be parsed. Each <entry> would look something like this:
{code}
<entry
kind="file"
path="cordova-webos-3.7.0.tgz"
revision="12715">
<url>https://dist.apache.org/repos/dist/release/cordova/platforms/cordova-webos-3.7.0.tgz</url>
<repository>
<root>https://dist.apache.org/repos/dist</root>
<uuid>0d268c88-bc11-4956-87df-91683dc98e59</uuid>
</repository>
<wc-info>
<wcroot-abspath>/Users/shazron/Documents/git/apache/cordova-dist</wcroot-abspath>
<schedule>normal</schedule>
<depth>infinity</depth>
<text-updated>2015-12-05T01:12:59.000000Z</text-updated>
<checksum>cf565707b8e725e966f5066dc6531fdb46620461</checksum>
</wc-info>
<commit
revision="10203">
<author>steven</author>
<date>2015-08-18T00:29:25.815988Z</date>
</commit>
</entry>
{code}
The root element is an <info> tag, which contains zero or more <entry> sub-elements. To find the creation date, in the <entry> tag, look for the "commit/date" element and parse that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org