ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: <scriptcondition> is broken with Jython in the recent trunk builds
Date Tue, 31 Jul 2007 14:16:09 GMT

--- Steve Loughran <stevel@apache.org> wrote:

> Alexey N. Solofnenko wrote:
> > Recent trunk ANT fails in my builds because
> <scriptcondition> does 
> > something with the script that Jython cannot
> digest (new lines?).  
> > <script> with the same code works fine. This is a
> test script:
> > 
> > <project>
> >  <script language="jython"><![CDATA[ # test
> > self.log("test")
> > ]]>
> >  </script>
> >  <condition property="test">
> >    <scriptcondition language="jython"><![CDATA[ #
> test
> > self.log("test")
> > ]]>
> >    </scriptcondition>
> >  </condition>
> > </project>
> > 
> > and the output is:
> > 
> > Buildfile: test.xml
> >   [script] test
> > 
> > BUILD FAILED
> > C:\tmp\test.xml:6: Traceback (innermost last):
> >  (no code object) at line 0
> > SyntaxError: ('invalid syntax', ('<string>', 1, 8,
> ' # test'))
> > 
> 
> I dont remember any changes here. What happens if
> you strip off the CDATA?
> 

Fairly recently I added return handling to
scriptcondition from the perspective that it was more
natural to treat the whole construct like a
function... I thought you would have noticed.  :)  I
can/should/will take a look at this.  I guess I'll
have to make my own jython jar that doesn't EMBED old
versions of oro classes... >:(

-Matt

> 
> -- 
> Steve Loughran                 
> http://www.1060.org/blogxter/publish/5
> Author: Ant in Action           http://antbook.org/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 



       
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

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


Mime
View raw message