M
Mark Modrall
Hi...
I was just wondering if it was possible to use javac -J-Dname=value to
get compile-time constants into code, perhaps with annotations or
something?
For example, I'm trying to get something like
public class foo
{
public static String compiledBy=@builder;
....
}
or the like - getting a compile-time constant to be a referencable
quantity in .class.
Or is runtime preference or properties the only way to do it?
Thanks
-Mark
I was just wondering if it was possible to use javac -J-Dname=value to
get compile-time constants into code, perhaps with annotations or
something?
For example, I'm trying to get something like
public class foo
{
public static String compiledBy=@builder;
....
}
or the like - getting a compile-time constant to be a referencable
quantity in .class.
Or is runtime preference or properties the only way to do it?
Thanks
-Mark