(), 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
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
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
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
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
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
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.
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.
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
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
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
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
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
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
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
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
[
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
[
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
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
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
[
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
) 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
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
, 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
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
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
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
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
28 matches
Mail list logo