[ https://issues.apache.org/jira/browse/PIVOT-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039323#comment-13039323 ]
Sandro Martini edited comment on PIVOT-746 at 5/25/11 8:46 PM: --------------------------------------------------------------- Hi all, (after a synchronize with the trunk) I've tried to run/debug some Test classes as Applications, and as Applets from my eclipse and all works good :-) : ApplicationContext.class.getPackage() never returns null , but String version = ApplicationContext.class.getPackage().getImplementationVersion(); willy be null, so a safe pivotVersion will be initialized. If it's Ok for all, to me seems that this issue could be marked as resolved. Thank you to all. was (Author: smartini): Hi all, I've just tries to run/debug some Test classes as Applications, and as Applets from my eclipse and all works good :-) : ApplicationContext.class.getPackage() never returns null , but String version = ApplicationContext.class.getPackage().getImplementationVersion(); willy be null, so a safe pivotVersion will be initialized. If it's Ok for all, to me seems that this issue could be marked as resolved. > Add API to return Version of Pivot retrieved from "build.properties" > -------------------------------------------------------------------- > > Key: PIVOT-746 > URL: https://issues.apache.org/jira/browse/PIVOT-746 > Project: Pivot > Issue Type: New Feature > Components: wtk > Affects Versions: 2.0.1 > Environment: Windows XP SP3, JDK 1.6.0_16 > Reporter: Roger Whitcomb > Assignee: Greg Brown > Priority: Trivial > Fix For: 2.0.1 > > Attachments: pivot746_patch2.patch, version.patch, version2.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > Would be helpful to be able to determine programmatically what the version of > Pivot is. The simplest method is to include "build.properties" which is the > original source of this information in the packaged .jar files and then to > provide an API to read and parse this value into a Version structure. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira