<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Java 6: Using Python Via The New Scripting Engine</title>
	<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/</link>
	<description>A man needs a little madness, or else he never dares cut the rope and be free. -Nikos Kazantzakis</description>
	<pubDate>Thu, 20 Nov 2008 23:07:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Duncan</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-119638</link>
		<author>Duncan</author>
		<pubDate>Tue, 23 Sep 2008 19:25:27 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-119638</guid>
		<description>Can you please post the full code. I am a little confused, and am strugaling to get it working</description>
		<content:encoded><![CDATA[<p>Can you please post the full code. I am a little confused, and am strugaling to get it working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janarthanan</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106068</link>
		<author>Janarthanan</author>
		<pubDate>Wed, 30 Jul 2008 07:08:49 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106068</guid>
		<description>Daniel,
I think we are on the same boat AFA the last point is concerned. I realize, the potential to use the scripting engine with JVM seems far more deeper than what I initially thought. And thanks for freewheeling this discussion. As I see it, it is definitely worth a read for other people too because of your candid response. Thanks again.

regards,
jana</description>
		<content:encoded><![CDATA[<p>Daniel,<br />
I think we are on the same boat AFA the last point is concerned. I realize, the potential to use the scripting engine with JVM seems far more deeper than what I initially thought. And thanks for freewheeling this discussion. As I see it, it is definitely worth a read for other people too because of your candid response. Thanks again.</p>
<p>regards,<br />
jana</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106029</link>
		<author>Daniel</author>
		<pubDate>Wed, 30 Jul 2008 04:41:02 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106029</guid>
		<description>Hi Jana,

All of the things you mentioned can be done within Ant, if you feel comfortable doing so.  In fact we do some of these things in ant ourselves, although some of the more complicated stuff we put in to scripts that we then trigger via ant.

The reason I needed to use a scripting language was not because things could not be done in ant, but because I needed to start/stop servers as part of individual acceptance tests.  For instance, one acceptance test checks that all of the Pulse startup options are correctly handled.  It would not be practical to try to call out to ant from within a single acceptance test case.

As you point out in your #6, Ant does have its limitations, limitations that would be solved by using a scripting language designed for the task.

I hope that somewhat answers your question. :)

-Daniel</description>
		<content:encoded><![CDATA[<p>Hi Jana,</p>
<p>All of the things you mentioned can be done within Ant, if you feel comfortable doing so.  In fact we do some of these things in ant ourselves, although some of the more complicated stuff we put in to scripts that we then trigger via ant.</p>
<p>The reason I needed to use a scripting language was not because things could not be done in ant, but because I needed to start/stop servers as part of individual acceptance tests.  For instance, one acceptance test checks that all of the Pulse startup options are correctly handled.  It would not be practical to try to call out to ant from within a single acceptance test case.</p>
<p>As you point out in your #6, Ant does have its limitations, limitations that would be solved by using a scripting language designed for the task.</p>
<p>I hope that somewhat answers your question. <img src='http://www.alittlemadness.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>-Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janarthanan</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106026</link>
		<author>Janarthanan</author>
		<pubDate>Wed, 30 Jul 2008 04:31:54 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106026</guid>
		<description>Daniel,
Thanks for the response. What kind of tasks would they be. Would I I able to classify them cleanly and make sure that box gets address with a clean bunch of python API's, when ever we perform systemic tasks before we perform Regression or any other form testing few things happen outside the intended context(am i sensible ?),
1)talk to Version control Management System
2)Do Compilation on the Source Code
3)Packing and Unpacking
4)Moving Files from one place to other,
5)Starting/Stopping Servers(Databases/Application Servers)
6)Executing Remote Commands(Ant goes down pretty hard here, this is one place where I see Ant cant do certain things if, we have to go outside the box to do certain things ,like perform scp, or starting a mysql server in a remote machine)

I think I am slowly getting the picture.
Thanks for the article. May be I should come back with more clarity and ask few more questions :-)

jana</description>
		<content:encoded><![CDATA[<p>Daniel,<br />
Thanks for the response. What kind of tasks would they be. Would I I able to classify them cleanly and make sure that box gets address with a clean bunch of python API&#8217;s, when ever we perform systemic tasks before we perform Regression or any other form testing few things happen outside the intended context(am i sensible ?),<br />
1)talk to Version control Management System<br />
2)Do Compilation on the Source Code<br />
3)Packing and Unpacking<br />
4)Moving Files from one place to other,<br />
5)Starting/Stopping Servers(Databases/Application Servers)<br />
6)Executing Remote Commands(Ant goes down pretty hard here, this is one place where I see Ant cant do certain things if, we have to go outside the box to do certain things ,like perform scp, or starting a mysql server in a remote machine)</p>
<p>I think I am slowly getting the picture.<br />
Thanks for the article. May be I should come back with more clarity and ask few more questions <img src='http://www.alittlemadness.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>jana</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106023</link>
		<author>Daniel</author>
		<pubDate>Wed, 30 Jul 2008 04:20:42 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106023</guid>
		<description>Hi Janarthanan,

Certainly, these things can be done within Ant, but Ant really isnt the best place for such things.  Some tasks require the flexibility offered by a programming language, which Ant is not.</description>
		<content:encoded><![CDATA[<p>Hi Janarthanan,</p>
<p>Certainly, these things can be done within Ant, but Ant really isnt the best place for such things.  Some tasks require the flexibility offered by a programming language, which Ant is not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janarthanan</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106015</link>
		<author>Janarthanan</author>
		<pubDate>Wed, 30 Jul 2008 04:01:23 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-106015</guid>
		<description>Hi,
Thanks for sharing the information. I have few clarifications to make. Why do we have to opt to use scripting language to perform these tasks that can be performed in Ant.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for sharing the information. I have few clarifications to make. Why do we have to opt to use scripting language to perform these tasks that can be performed in Ant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-101606</link>
		<author>Daniel</author>
		<pubDate>Wed, 16 Jul 2008 14:27:50 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-101606</guid>
		<description>Yes, everything can be done using the existing jython interpretor.  

In fact, the implementation of the jython scripting support is a very thin layer around the existing jython interpretor.

What the Java 6 scripting support gives you is a framework into which you can load other scripting engines, allowing you to run a variety of different scripts.  By default, it will support at least javascript with the JDK.  Jython, freemarker, groovy, jelly, jruby, ognl, velocity and others are all freely available.</description>
		<content:encoded><![CDATA[<p>Yes, everything can be done using the existing jython interpretor.  </p>
<p>In fact, the implementation of the jython scripting support is a very thin layer around the existing jython interpretor.</p>
<p>What the Java 6 scripting support gives you is a framework into which you can load other scripting engines, allowing you to run a variety of different scripts.  By default, it will support at least javascript with the JDK.  Jython, freemarker, groovy, jelly, jruby, ognl, velocity and others are all freely available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baoilleach</title>
		<link>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-101559</link>
		<author>baoilleach</author>
		<pubDate>Wed, 16 Jul 2008 12:28:11 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/07/15/java-6-using-python-via-the-new-scripting-engine/#comment-101559</guid>
		<description>I've heard about the new scripting support in Java 6, but could you spell out for me exactly what you can do now that previously was not possible? I thought that even with Java 5, you could use Jython from inside Java programs.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve heard about the new scripting support in Java 6, but could you spell out for me exactly what you can do now that previously was not possible? I thought that even with Java 5, you could use Jython from inside Java programs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
