You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Resnick <ab...@gmail.com> on 2005/02/24 14:48:43 UTC
"import re" with jython
I'm trying to use the jython re module in ant from a script task.
I have added the jython.jar library to my classpath, and can use various
function of python.
But when I try to import re, I get the following:
check:
[script] Traceback (innermost last):
[script] File "<string>", line 2, in ?
[script] ImportError: no module named re
This is the target I'm trying to run:
<target name="check">
<script language="jython">
import re
</script>
</target>
Thanks, David
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org