On Friday 22 March 2002 03:53, i wrote:
> It seems to me like that would make cross-project-file interaction
> relatively simple.
>
> Or am i way behind here?

And that would allow loading "libraries" of pre-configured tasks from xml
files in a classloader-like manner...

Inside a task, we could do the following:

Project sharedtasks = getProject().getAnt().getProject( "sharedtasks.xml" );
Task task = sharedtasks.getTask( "somecooltask" );
task.setProject( getProject() ); // ??? depends on task, i guess.
task->execute();

(error checking left out for clarity)

or:
Project sharedtasks = getProject().getAnt().getProject( "sharedtasks.xml" );
Task task = sharedtasks.getTask( "SomeSuperIncredibleTask" );
if( task instanceof SomeSuperIncredibleTask ) {
...
}


am i making any sense?

----- [EMAIL PROTECTED]
http://qub.sourceforge.net  - http://radioaqtiph.sourceforge.net
http://www.countermoves.net - http://stephan.rootonfire.org
"Unix: the shell is your oyster."

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to