You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Carter, Scott" <Sc...@GTECH.COM> on 2004/11/01 18:07:41 UTC

building custom task

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 buildLabel.java
buildLabel.java:36: 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org