On Thursday, January 30, 2003, at 10:17 PM, Janet Abdul-Karim wrote:
[...]
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
I don't know where you want header and title to come from, but all the others you can get from:
getProject().getProperty("<property name>");
even the project name is available as "ant.project.name". Use the <echoproperties> task to dump all the properties out. All JVM system properties are available as Ant properties too, but you could also just use the System object directly to get them if you like.
For things like header and title, I'd suggest you use attributes on your task rather than pulling them from Ant properties. I recommend only getting Ant-specific properties (and JVM ones too, if you like) from the Project object. All other custom ones make part of your task like this:
<mytask header="some header"/>
and implement this:
public void setHeader(String header) {
// ....
}
That method will be called before execute().
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.
Did that answer all your questions?
Erik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
