ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Resnick" <>
Subject "import re" with jython
Date Thu, 24 Feb 2005 13:48:43 GMT
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:

   [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

Thanks, David

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message