[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-25 Thread Greg Brown (JIRA)
(), etc. - good find. I assume that this pulls the version info from the JAR manifest? Add API to return Version of Pivot retrieved from build.properties Key: PIVOT-746 URL: https

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-25 Thread Roger Whitcomb (JIRA)
was super-cautious) is that getPackage() can return null (such as when Pivot is run from .class files instead of a .jar?) so I didn't want Sandro's case to be broken again if that happened. Add API to return Version of Pivot retrieved from build.properties

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-25 Thread Andrei Pozolotin (JIRA)
exploded jar applet (legacy classloder); this currently breaks wtk, wtk-terra Add API to return Version of Pivot retrieved from build.properties Key: PIVOT-746 URL: https://issues.apache.org/jira

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-25 Thread Greg Brown (JIRA)
need to worry about, but the fix is simple enough so we might as well do it. Add API to return Version of Pivot retrieved from build.properties Key: PIVOT-746 URL: https://issues.apache.org

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-25 Thread Sandro Martini (JIRA)
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

[jira] [Issue Comment Edited] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-25 Thread Sandro Martini (JIRA)
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

build.properties

2011-05-24 Thread Greg Brown
FYI, I updated the code to fail gracefully when the build.properties file is missing, as Sandro suggested. I tried a couple of things to get the file on the classpath but couldn't come up with anything really clean.

Re: build.properties

2011-05-24 Thread Sandro Martini
Hi Greg, thank you very much for the fix, I'll try during this week ... Bye -- View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/build-properties-tp2979642p2979770.html Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-24 Thread Andrei Pozolotin (JIRA)
for build.properties at all; use instead: http://download.oracle.com/javase/6/docs/api/java/lang/Package.html getClass().getPackage().getSpecificationVersion(); getClass().getPackage().getSpecificationTitle(); getClass().getPackage().getImplementationVersion(); getClass().getPackage

[jira] [Updated] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-24 Thread Roger Whitcomb (JIRA)
of the build.properties file; removes build.properties from the .jar files. Add API to return Version of Pivot retrieved from build.properties Key: PIVOT-746 URL: https://issues.apache.org/jira/browse/PIVOT

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-24 Thread Roger Whitcomb (JIRA)
the addition of build.properties to the .jar files and instead uses Andrei's method to get the Implementation-Version (which is already set by the value from build.properties). It should be fail-safe in the case of running from .class files and not from .jars. Add API to return Version of Pivot

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-23 Thread Greg Brown (JIRA)
solution. It sounds like build.properties is not on the classpath. We probably need to update the Eclipse projects to include this file. Add API to return Version of Pivot retrieved from build.properties Key

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-23 Thread Sandro Martini (JIRA)
try it now ... 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

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-23 Thread Roger Whitcomb (JIRA)
to nothing about Eclipse... But if someone can point me to what has to change I can do it. Sandro, all I did was add our build.properties file to all the built .jar files. So, if there is a setting in the Eclipse projects that specifies what the .jar files contain, that just needs

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-23 Thread Sandro Martini (JIRA)
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

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-23 Thread Roger Whitcomb (JIRA)
to include our build.properties and leave the code the way it was? If we just ensure that build.properties is always available then there is nothing more to do. I just don't know how to set the Eclipse classpath. Is that done in some of the .settings files? Or somehow via the .classpath file

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-23 Thread Greg Brown (JIRA)
[ https://issues.apache.org/jira/browse/PIVOT-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13038013#comment-13038013 ] Greg Brown commented on PIVOT-746: -- to add the build.properties to any Pivot jar we can

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-23 Thread Sandro Martini (JIRA)
[ https://issues.apache.org/jira/browse/PIVOT-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13038016#comment-13038016 ] Sandro Martini commented on PIVOT-746: -- Ok, I'll try to add the build.properties

[jira] [Updated] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-22 Thread Sandro Martini (JIRA)
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

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-20 Thread Andrei Pozolotin (JIRA)
happens in pivot-wtk; should be in pivot-core; 2) classloader should be PIVOT-742; thank you. Add API to return Version of Pivot retrieved from build.properties Key: PIVOT-746 URL: https

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-20 Thread Andrei Pozolotin (JIRA)
[ https://issues.apache.org/jira/browse/PIVOT-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13036885#comment-13036885 ] Andrei Pozolotin commented on PIVOT-746: also: build.properties is reserved name

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-20 Thread Roger Whitcomb (JIRA)
) ApplicationContext already has a getJVMVersion() method, so this is very similar -- since ApplicationContext is in the wtk area, this is where it had to happen. However, I changed the generic package macro, so actually the version file build.properties is embedded in all the .jar files. 2

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-20 Thread Greg Brown (JIRA)
thing to do, and the location of the method (in ApplicationContext) makes sense to me. FYI, I have used Eclipse for Pivot development since day one and the existence of the build.properties file has never been a problem. Add API to return Version of Pivot retrieved from build.properties

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-20 Thread Greg Brown (JIRA)
, since Version is a generic class representing a four-value revision number (in other words, it isn't specific to Pivot). I don't see any problem leaving it in ApplicationContext. so nobody knows build.properties exists In the current implementation, only ApplicationContext needs to know about

[jira] [Commented] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-20 Thread Greg Brown (JIRA)
at the moment, but if you are willing to set it up I'd be happy to help if I can. Add API to return Version of Pivot retrieved from build.properties Key: PIVOT-746 URL: https://issues.apache.org/jira

[jira] [Created] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-19 Thread Roger Whitcomb (JIRA)
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

[jira] [Updated] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-19 Thread Roger Whitcomb (JIRA)
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

[jira] [Resolved] (PIVOT-746) Add API to return Version of Pivot retrieved from build.properties

2011-05-19 Thread Greg Brown (JIRA)
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