Issue874632
Created on 2004-01-10.21:42:03 by byronf, last changed 2008-12-15.16:08:58 by byronf.
msg2337 (view) |
Author: Byron Foster (byronf) |
Date: 2004-01-10.21:42:03 |
|
This is a Jyhton Ant task to run python scripts from an
ant build file. This patch contains three new java
Files that go into the utils directory, the JythonTask
class and two supporting classes.
|
msg2338 (view) |
Author: Samuele Pedroni (pedronis) |
Date: 2005-01-09.19:57:40 |
|
Logged In: YES
user_id=61408
don't we have already something along this lines. The
discussion about
maintenance and contrib vs util is also relevant.
|
msg2339 (view) |
Author: Byron Foster (byronf) |
Date: 2005-05-08.06:45:46 |
|
Logged In: YES
user_id=110327
From what I can tell there is an ant task for compiling python to
bytecode. But currently there is no ant task, that I'm aware of, to run
Jython scripts from within ant. The intent is to be able to augment ant
builds with Jython scripts.
|
msg2340 (view) |
Author: Satya Ghattu (sghattu) |
Date: 2005-08-16.18:56:44 |
|
Logged In: YES
user_id=642752
Just wondering if the Task should also support executing a
script snippet embedded in the build script itself. For example,
target name="runjython">
<jython pythonFile="foo.py">
<defvar name="var1" value="123" />
<script>
print 'Hello Jython Ant Task'
print var1
</script>
</jython>
</target>
This way, if you would not like to have py scripts along
with your build scripts, you can just embed the script
itself in your build.xml.
my 2 cents,
-satya
|
msg2341 (view) |
Author: Byron Foster (byronf) |
Date: 2005-09-12.12:35:33 |
|
Logged In: YES
user_id=110327
Really, there is already support for embedding jython with the ant
script task:
http://ant.apache.org/manual/OptionalTasks/script.html
The purpose of the JythonTask is to run external python scripts. While
I think the ant script task is convenient for short scripts, longer scripts
are more appropriately written in a separate file where python smart
editors can be utilized, and the script can be tested outside of ant.
|
msg3922 (view) |
Author: Frank Wierzbicki (fwierzbicki) |
Date: 2008-12-15.15:43:52 |
|
The original author of the patch later suggested the use of the ant
"script" task, so I'm closing this one since it probably doesn't really
belong in the core Jython distro.
|
msg3925 (view) |
Author: Byron Foster (byronf) |
Date: 2008-12-15.16:08:58 |
|
The point I was making is that the script task serves a different
purpose, mainly it handles script embedded within the build file. The
JythonTask handles Jython scripts in separate files which has the
benefit of smart editors and scripts that can be run either in or out of
Ant. However, I'm fine with this issue getting closed, and I get the
feeling it's not going in :). As you say it may not be appropriate for
the main distro.
|
|
Date |
User |
Action |
Args |
2008-12-15 16:08:58 | byronf | set | messages:
+ msg3925 |
2008-12-15 15:43:52 | fwierzbicki | set | status: open -> closed nosy:
+ fwierzbicki resolution: rejected messages:
+ msg3922 |
2004-01-10 21:42:03 | byronf | create | |
|