Diagnostic.java is available on my website at:
http://cleancode.sourceforge.net/wwwdoc/download.html
(The direct link for my Java source zip file is two clicks down is:
http://prdownloads.sourceforge.net/cleancode/cleancode-java-source-v0_9_03.zip?download
)
I'll take a look at writing a cu
Could you post your Diagnostic.java code?
I think your best bet to solving the issue is to dig
under the hood of its code and see what makes it tick and experiment.
Or, certainly simpler, write a custom Ant task that gets the
information from Diagnostic and sets and Ant property. It'd only be
Yes, my constants are "public static final". The problem, I found, is that the
definition of VERSION is a method evaluation, not a compile-time constant, as you had
tried. So that answers that question.
The remaining issue is back on the file that I really want to use,
Diagnostic.class. Changing
On Jan 24, 2005, at 11:05 AM, michael sorens wrote:
(1) Well I tried adding bcel.jar to my ant/lib directory but it made
no difference.
What did make a difference was my choice of .class file to load.
Instead of my Diagnostic.class
I tried a simpler Version.class and then I received no error, eve
(1) Well I tried adding bcel.jar to my ant/lib directory but it made no
difference.
What did make a difference was my choice of .class file to load. Instead of my
Diagnostic.class
I tried a simpler Version.class and then I received no error, even *without*
bcel.jar. So this seems like a data-dep
Maybe another process holds that file ...
Jan
> -Ursprüngliche Nachricht-
> Von: michael sorens [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 21. Januar 2005 19:48
> An: Ant Users List
> Betreff: Re: AW: ant access of java constants
>
> The errors I showed are
You need BCEL. See here for details:
http://ant.apache.org/manual/install.html
On Jan 21, 2005, at 1:48 PM, michael sorens wrote:
The errors I showed are from -debug. Without it it just says
"IOException". Everything else looks reasonable.
Yes, ${javabin} is set. I get a different error
The errors I showed are from -debug. Without it it just says "IOException".
Everything else looks reasonable.
Yes, ${javabin} is set. I get a different error if the file is not found.
On Fri, 21 Jan 2005 17:47:53 +0100, <[EMAIL PROTECTED]> wrote:
- what does "-debug" say?
- is ${javabin} set?
Jan
- what does "-debug" say?
- is ${javabin} set?
Jan
> -Ursprüngliche Nachricht-
> Von: michael sorens [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 21. Januar 2005 17:45
> An: Ant Users List
> Betreff: Re: ant access of java constants
>
> I tried adding this chunk of code:
> srcfile=
And even easier, you can do it with the ClassConstants FilterReader! :)
http://ant.apache.org/manual/CoreTypes/filterchain.html#classconstants
On Jan 21, 2005, at 2:53 AM, [EMAIL PROTECTED] wrote:
You can do that via API calls
- your own task
-
But you have to ensure that the class can be
You can do that via API calls
- your own task
-
But you have to ensure that the class can be found.
Example:
public class MyClass {
public static final String TEXT = "MyClass sais: Hello World";
}