You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by peter reilly <pe...@corvil.com> on 2003/09/03 12:46:23 UTC

Re: Why the latest build requires explicit for

Some of the optional tasks will appear not to be
present if their required 3'rd party jars are
not present. In scriptdef's case, the jar needed
is bsf.jar (from jakarta http://jakarta.apache.org/bsf/ for 1.6) and it 
should be in the same classloader as optional.jar (easiest is to place the
jars in ${ant.home}/lib).

Peter

On Wednesday 03 September 2003 06:10, Jan.Materne@rzf.fin-nrw.de wrote:
> Optional and core tasks are available by standard.
> Ant uses the org/apache/tools/ant/taskdefs/default.properties in
> %ant.home%/lib/ant.jar for "taskdefing" these tasks.
>
> You don´t have to <taskdef> that task, because this task is defined
> near line 196
>   scriptdef=org.apache.tools.ant.taskdefs.optional.script.ScriptDef
>
>
> Jan
>
> > -----Original Message-----
> > From: Alexey N. Solofnenko [mailto:alexeys@mdli.com]
> > Sent: Wednesday, September 03, 2003 4:00 AM
> > To: Ant Developers List
> > Subject: Why the latest build requires explicit <taskdef> for
> > <scriptdef>
> >
> >
> > Hello,
> >
> >   I have updated ANT from main branch and now I have to add
> >
> > <taskdef name="scriptdef"
> > classname="org.apache.tools.ant.taskdefs.optional.script.ScriptDef"/>
> >
> > in order to use <scriptdef> task. But the <taskdef> generates
> > "Trying to
> > override old definition of datatype scriptdef" warning. What
> > can be wrong?
> >
> > - Alexey.
> >
> > --
> > { http://trelony.cjb.net/ } Alexey N. Solofnenko
> > Pleasant Hill, CA (GMT-8 usually)
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Why the latest build requires explicit for

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 03 Sep 2003, Alexey N. Solofnenko <al...@mdli.com> wrote:

> I saw somewhere that Rhino is required for script task, but it
> actually requires BSF.

Wherever you've seen that, Rhino is not required by <script>.  It
certainly is required if you want to use JavaScript within that task.

> I do not use Rhino, but Jython. Maybe this is the reason.

So you need BSF plus Jython.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Why the latest build requires explicit for

Posted by "Alexey N. Solofnenko" <al...@mdli.com>.
I saw somewhere that Rhino is required for script task, but it actually 
requires BSF. I do not use Rhino, but Jython. Maybe this is the reason.

- Alexey.

--
{ http://trelony.cjb.net/ } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)


peter reilly wrote:

>Some of the optional tasks will appear not to be
>present if their required 3'rd party jars are
>not present. In scriptdef's case, the jar needed
>is bsf.jar (from jakarta http://jakarta.apache.org/bsf/ for 1.6) and it 
>should be in the same classloader as optional.jar (easiest is to place the
>jars in ${ant.home}/lib).
>
>Peter
>
>On Wednesday 03 September 2003 06:10, Jan.Materne@rzf.fin-nrw.de wrote:
>  
>
>>Optional and core tasks are available by standard.
>>Ant uses the org/apache/tools/ant/taskdefs/default.properties in
>>%ant.home%/lib/ant.jar for "taskdefing" these tasks.
>>
>>You don´t have to <taskdef> that task, because this task is defined
>>near line 196
>>  scriptdef=org.apache.tools.ant.taskdefs.optional.script.ScriptDef
>>
>>
>>Jan
>>
>>    
>>
>>>-----Original Message-----
>>>From: Alexey N. Solofnenko [mailto:alexeys@mdli.com]
>>>Sent: Wednesday, September 03, 2003 4:00 AM
>>>To: Ant Developers List
>>>Subject: Why the latest build requires explicit <taskdef> for
>>><scriptdef>
>>>
>>>
>>>Hello,
>>>
>>>  I have updated ANT from main branch and now I have to add
>>>
>>><taskdef name="scriptdef"
>>>classname="org.apache.tools.ant.taskdefs.optional.script.ScriptDef"/>
>>>
>>>in order to use <scriptdef> task. But the <taskdef> generates
>>>"Trying to
>>>override old definition of datatype scriptdef" warning. What
>>>can be wrong?
>>>
>>>- Alexey.
>>>
>>>--
>>>{ http://trelony.cjb.net/ } Alexey N. Solofnenko
>>>Pleasant Hill, CA (GMT-8 usually)
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>>>For additional commands, e-mail: dev-help@ant.apache.org
>>>      
>>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org