This is what i am trying to do I have to create an htm formatted report that includes
the following
header and title
project name
project description
current date
user name
ant version
ant build filename/path
java vm version
java vm name
cpu info
What is have is this
/** Imporing necessary classes**/
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
/** Creating Task for ant **/
public class Lab2Task extends Task{
this.setName("Lab2Task");
/** Method that executes the task **/
public void execute() throws BuildException{
}/** End of void execute() **/
/** Method to setName for Task **/
public void set
}/** End of class **/
I have seen methods on how to get the things but don't really understand it. I am
looking for a more detailed example to help me out.
Erik Hatcher <[EMAIL PROTECTED]> wrote:Your best reference for Ant
tasks is Ant's own source code. Check
Jakarta's CVS for details or download the Ant source distribution.
If you shared your example details with us, I'm sure we could help get
you on the right track with it.
Chapter 19 of Java Development with Ant has this review about its Ant
internals, and I of course wholeheartedly recommend it too:
"I'm planning on extending ANT to do specialized testing, so I intend
to write custom tasks. I've learned more about ANT's internals reading
4 PAGES (467-470)..." [than one of the other Ant books, won't mention
here, no need go there]
Erik
On Thursday, January 30, 2003, at 09:17 PM, Janet Abdul-Karim wrote:
>
> I am having problems with creating my own task using ant. I have
> looked at examples but they are not detailed enough to give me a
> better idea of what I should do. I am suppose to create a java file
> to extend class which I understand, but the other requirments like
> getting the project name and description i don't understand. in my
> .xml file i have the name of the project does the java class extract
> the name from the .xml file.
>
>
>
> If someone can show me a better example of creating an ant task. I
> would greatly appreciate it.
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now