[ 
https://issues.apache.org/jira/browse/PIVOT-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038001#comment-13038001
 ] 

Sandro Martini commented on PIVOT-746:
--------------------------------------

Hi Roger, don't worry :-) ... to add the build.properties to any Pivot jar we 
can do it inside our Ant build process.
The only problem now is that from the development environment with all Pivot 
sources (from trunk) we have to see if it's possible to add a reference to that 
file for any Pivot subproject (like tests, examples, etc). I don't know if it's 
possible inside eclipse, but I'll try to see as soon as possible.

In the meantime using the patch2 in eclipse here will solve the problem, as a 
workaround.


Just a note: 
I've just seen that inside Pivot jars (for example all jars of Pivot-2.0), in 
the manifest there is this element:
Implementation-Version: 2.0
where the release number if taken from build.properties by ant ...
so why not try to use directly this info (and not bundle a copy of 
build.properties) ? 
And when not available (like when there aren't Pivot jars but full sources 
instead) verify if load from build.properties (if possible, after some checks 
in eclipse) or if log it as a warning/error ...

Comments ?


Bye,
Sandro



> 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
>
>   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

Reply via email to