ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carter, Scott" <Scott.Car...@GTECH.COM>
Subject building custom task
Date Mon, 01 Nov 2004 17:07:41 GMT
I have a really easy question about building a custom task.  Within my
custom task I am getting and setting ant properties.  I.E.  I have code like
the following :

	String test = getProject().getProperty("ant.home");

My simple question is, what do I need in my classpath to compile this code.
The getProject() method does not seem to be defined in any of the classes in
ant.jar  file :

$ javac -classpath ant.jar cannot resolve symbol
symbol  : method getProject  ()
location: class buildLabel
                String test = getProject().getProperty("ant.home");

Thanks for the help - Scott

This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention, distribution
or disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact the
sender by reply email and delete all copies of this message. Also, email is
susceptible to data corruption, interception, tampering, unauthorized
amendment and viruses. We only send and receive emails on the basis that we
are not liable for any such corruption, interception, tampering, amendment
or viruses or any consequence thereof.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message