I'm trying to figure out a simple, elegant way to do something in Java and
Ant but I keep coming up with complicated ways of doing it. I feel as if a
simple way is easily achievable but I'm blanking out so I hope someone here
can tell me what I'm not seeing so that I can kick myself for overlooking
the obvious :-)
At the start of my Ant build, I want to display the value of a single
Constant that is sitting in one of my Java classes; the value will be
displayed in an AntForm and the user will choose to proceed with the build
or abort it, based on the value of that constant. (Despite the fact that the
constant is defined to have a single value at any one time, the user can
arbitrarily change it to a different value by simply modifying the
initialization for the constant. This would be a normal thing to do. The
constant in question is only able to have two different values at the moment
but that could change to three or more somewhere down the road.)
If Ant could "see" the values of my constants, I'd just refer to the
constant as ResumeConstants.DESIRED_EMPLOYMENT_HISTORY_FORMAT and display
that value in the AntForm. But, unless I'm misunderstanding something, Ant
_can't_ see the values of my constants so I am struggling for a _SIMPLE_ way
to pass that single data value to my AntForm.
Yes, I could write a method in one of my programs to get that value, then
write it somewhere more accessible to Ant, then have Ant interrogate it,
store it in a property, and then display it but I suspect there is a simpler
way to go; I just can't think of it.
Any suggestions?
--
Rhino
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.3/254 - Release Date: 08/02/2006
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]