ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ext-simon.stei...@nokia.com>
Subject <scriptcondition> is broken with Jython in 1.7.1
Date Mon, 22 Sep 2008 11:08:22 GMT
Hi,

I am getting this with error with 1.7.1 and not with 1.7.0. Calling just
self.xxx doesn't cause problems. There was a similar issue, I've
included below.

SyntaxError: ('invalid syntax', ('<string>', 2, 13, "errorsTotal =
project.getPr
operty('build.errors.total')"))

        <condition property="compile.result">
            <scriptcondition language="jython">
errorsTotal = project.getProperty('build.errors.total')
self.setValue(True)
            </scriptcondition>
        </condition>
Thanks

List:       ant-dev
Subject:    <scriptcondition> is broken with Jython in the recent trunk
builds
From:       "Alexey N. Solofnenko" <A.Solofnenko () mdl ! com>
Date:       2007-07-30 23:08:30
Message-ID: 46AE6F6E.3000700 () mdl ! com
[Download message RAW]

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'))


Total time: 0 seconds

- Alexey.

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


Mime
View raw message