ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <A.Solofne...@mdl.com>
Subject RE: Have you ever tried Jython with ANT?
Date Fri, 30 Aug 2002 23:08:07 GMT
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:SteveC@ignitesports.com] 
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.
stevec@ignitesports.com


-----Original Message-----
From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message