I am doing it easier by executing (I added jython.jar into ANT's classpath):

<java classname="org.python.util.jython">
  <arg file="path/script.jy"/>
  <arg value="-update"/>
</java>

but I was hoping to use <script> task instead.

- Alexey.

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


-----Original Message-----
From: Steve Cohen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 30, 2002 2:55 PM
To: Ant Users List
Subject: RE: Have you ever tried Jython with ANT?

Alexey - 

I don't know exactly what you're trying to do and I don't know what BSF is,
but it isn't hard to run jython from ant.  I've done it.

    <target name="metadata" unless="metadata.Build.notRequired" >
      <exec dir="${metadata.dir}" executable="jython.bat" >
         <arg value="st-xml.py" /> 
         <arg value="--output=dstats.xml"/> 
      </exec>
    </target>

I did that with <exec>, using a batch file.  I'm pretty sure that had I
known more about ant at the time, I could have made it work using the <java>
task as well.

-----------------------------------------------------------------
Steve Cohen
Sr. Software Engineer
Ignite Sports, Inc.
[EMAIL PROTECTED]


-----Original Message-----
From: Alexey Solofnenko [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 3:10 PM
To: 'Ant Users List'
Subject: Have you ever tried Jython with ANT?


BSF says it does support neither jython nor python. What BSF should I use?

 

- Alexey.

 

__________________________________________________________________
 <http://trelony.cjb.net/> Alexey N. Solofnenko
ICQ#: 15250318


Current ICQ status:  

  <http://web.icq.com/whitepages/online?icq=15250318&img=21> 

+   <http://wwp.icq.com/15250318> More ways to contact me 
i   <http://web.icq.com/whitepages/about_me?Uin=15250318> See more about me:

__________________________________________________________________

 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to