Gwt Version Strategy

72 views
Skip to first unread message

Brandon Donnelson

unread,
Oct 18, 2014, 1:27:30 PM10/18/14
to google-web-tool...@googlegroups.com
Are there other gwt version options?

This depends on gwt-dev, would be nice to get this from gwt-user.

Class<?> about = cl.loadClass("com.google.gwt.dev.About");
Method method = about.getMethod("getGwtVersionNum");
String versionStr = (String) method.invoke(null);

Thanks,
Brandon

Jens

unread,
Oct 18, 2014, 1:52:06 PM10/18/14
to google-web-tool...@googlegroups.com
We could store version information in any jar manifest file using Implementation-* attributes:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.0
Created-By: 1.6.0_20-b02 (Sun Microsystems Inc.)
Implementation-Title: GWT User library / GWT Dev library / Elemental / ... / ....
Implementation-Version: 2.7.0
Implementation-Vendor: gwtproject.org

This can then be read in Java using classFromJar.getPackage().getImplementation[Title | Version | Vendor](). If all GWT jars would have that information you can choose whatever jar you like most.

-- J.

Brandon Donnelson

unread,
Oct 18, 2014, 2:25:39 PM10/18/14
to google-web-tool...@googlegroups.com
Good idea. :)
Reply all
Reply to author
Forward
0 new messages