[EMAIL PROTECTED] wrote: > > OK, I've taken the plunge. I've committed a scripting task to Ant. > > If you like, think of it as a revolution. It is in a separate > subdirectory, and it is not included in the bootstrap or included in the > Ant build by default. > > Or, if you prefer, think of it as a first step towards moving the non-core > tasks out of the "minimalist" version of Ant. Perhaps someday, we will > have two separate Jars. > > In any case, below I've included a working script. It doesn't do anything > useful, but it does give an indication of what is possible. > > <?xml version="1.0"?> > > <project name="test" default="main"> > > <target name="main"> > <property name="welcome" value="from BSF!" /> > <echo message="hi there" id="echoTask"/> > > <script language="javascript"> > echoTask.setMessage(welcome) > echoTask.execute() > </script> > </target> > > </project> > > - Sam Ruby
Cool! +1 I like it. I would like to see something like this taken into more of a global XML approach though. Example. XSLT if/for logic is stupid IMO. XSP/Cocoon 2.0 will probably fix this. Though this would be too big an optional task :) Kevin -- Kevin A Burton ([EMAIL PROTECTED]) http://relativity.yi.org Message to SUN: "Please Open Source Java!" "For evil to win is for good men to do nothing."
