[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-dev] Feature Request, Version class
|
This is implemented, though not as usable as a
straight Version class with component strings.
The way in Java 1.4 is to use the version information
associated with the package by the manifest:
-------- PackageTest.java
import org.aspectj.lang.JoinPoint;
public class PackageTest {
public static void main (String[] args) {
Package lang = JoinPoint.class.getPackage();
System.out.println("impl version: "
+ lang.getImplementationVersion());
}
}
-------
For JDK 1.3, you can inspect the manifest manually, as
the compiler does (see AjBuildManager.checkRtJar(..)).
fyi, the tools version is in org.aspectj.bridge.Version.
If you still want a new Version class in the runtime
package, submit a feature request to
http://dev.eclipse.org/bugs
(Since there's no runtime component, use the compiler)
Wes
P.S. - I'll add this to the FAQ.
Arno Schmidmeier wrote:
>
> Hello,
> It's late here now, so I might have missed something.
> I like to have a version API in the runtime.
> Just a simple class called Version, with some static final fields indicating
> the AspectJ-Version.
>
> One for the major number,
> One for the minor release number,
> one for some build identificator.
> one with the official version name as string
> kind regards
> Arno
>
> P.S. I am missing the AspectJ-API doc section, has it been dropped?
> --
>
> ******************************************************************************
> Arno Schmidmeier
> +49/9151/90 50 30
> or A@xxxxxxxxxxxxxxx
> ******************************************************************************
> Yes, I have realized several projects with AspectJ.
> Yes, I do provide consulting for AspectJ.
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-dev