<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-106</id>
	<title>Nabble - Ant</title>
	<updated>2008-07-18T08:33:46Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Ant-f106.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ant-f106.html" />
	<subtitle type="html">Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles. Ant home is &lt;a href=http://ant.apache.org target=&quot;_top&quot; rel=&quot;nofollow&quot; /&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-18531914</id>
	<title>Re: Ivy svn breaks ant-contrib svn</title>
	<published>2008-07-18T08:33:46Z</published>
	<updated>2008-07-18T08:33:46Z</updated>
	<author>
		<name>Stefan Bodewig</name>
	</author>
	<content type="html">On Thu, 17 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18531914&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; On Thu, Jul 17, 2008 at 10:00 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18531914&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I don't really have an opinion on the particular change but am a
&lt;br&gt;&amp;gt;&amp;gt; strong proponent of not breaking APIs in general (at least not
&lt;br&gt;&amp;gt;&amp;gt; without a deprecation period).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I agree in general, but Ivy 2 has been going in a deep code change, and we
&lt;br&gt;&amp;gt; decided to keep backward compatibility with 1.4 at ant tasks level, but not
&lt;br&gt;&amp;gt; at API level.
&lt;br&gt;&lt;br&gt;Understood.
&lt;br&gt;&lt;br&gt;&amp;gt; We warned the users about that in the release notes, and changing
&lt;br&gt;&amp;gt; code in Ivy for backward compatibility with a beta version (which in
&lt;br&gt;&amp;gt; Ivy language is not a release candidate) sounds not like a good idea
&lt;br&gt;&amp;gt; to me.
&lt;br&gt;&lt;br&gt;That is more tha fine with me.
&lt;br&gt;&lt;br&gt;&amp;gt; But once again I'm alone to decide, and if more people think it
&lt;br&gt;&amp;gt; makes sense, I won't object.
&lt;br&gt;&lt;br&gt;There is no reason to change anything for me.
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18531914&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18531914&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ivy-svn-breaks-ant-contrib-svn-tp18438865p18531914.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18530699</id>
	<title>Re: Ivy svn breaks ant-contrib svn</title>
	<published>2008-07-18T07:35:11Z</published>
	<updated>2008-07-18T07:35:11Z</updated>
	<author>
		<name>Stefan Bodewig</name>
	</author>
	<content type="html">On Thu, 17 Jul 2008, Maarten Coene &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18530699&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maarten_coene@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Just a wild guess, but maybe you could use IvyAntSettings again
&lt;br&gt;&amp;gt; (like your original code was),
&lt;br&gt;&lt;br&gt;I thought so myself and had a quick look, but I'm neither familiar
&lt;br&gt;enough with Ivy nor what the ant-contrib task is trying to do that I
&lt;br&gt;dared to change anything.
&lt;br&gt;&lt;br&gt;I might give it a try sometime later in August.
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18530699&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18530699&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ivy-svn-breaks-ant-contrib-svn-tp18438865p18530699.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18528509</id>
	<title>Re: svn commit: r677887 - in /ant/core/trunk: CONTRIBUTORS contributors.xml src/main/org/apache/tools/ant/taskdefs/optional/net/RExecTask.java src/main/org/apache/tools/ant/taskdefs/optional/net/TelnetTask.java</title>
	<published>2008-07-18T05:50:25Z</published>
	<updated>2008-07-18T05:50:25Z</updated>
	<author>
		<name>Stefan Bodewig</name>
	</author>
	<content type="html">On Fri, 18 Jul 2008, &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18528509&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; avoid excessive StringBuffer.toString calls while waiting for a
&lt;br&gt;&amp;gt; response string. &amp;nbsp;PR 34464. &amp;nbsp;Based on patch by Adam Blinkinsop.
&lt;br&gt;&lt;br&gt;I'd appreciate it if anybody who's still running telnet or even rexec
&lt;br&gt;could double check that the patch didn't breal anything. &amp;nbsp;It looks
&lt;br&gt;fine but I haven't run any sort of &amp;quot;integration test&amp;quot; here.
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18528509&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18528509&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-svn-commit%3A-r677887---in--ant-core-trunk%3A-CONTRIBUTORS-contributors.xml-src-main-org-apache-tools-ant-taskdefs-optional-net-RExecTask.java-src-main-org-apache-tools-ant-taskdefs-optional-net-TelnetTask.java-tp18528509p18528509.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18520383</id>
	<title>Re: Logging and synchronization</title>
	<published>2008-07-17T17:07:11Z</published>
	<updated>2008-07-17T17:07:11Z</updated>
	<author>
		<name>Jeffrey E Care</name>
	</author>
	<content type="html">
&lt;br&gt;&lt;tt&gt;&lt;font size=2&gt;Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18520383&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt; wrote on
07/17/2008 04:01:34 AM:&lt;br&gt;
&lt;br&gt;
&amp;gt; &amp;gt; I spent a lot of time &amp;amp; effort writing a thread-safe logger
for our&lt;br&gt;
&amp;gt; &amp;gt; own internal use.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sounds as if it was more painful than I had expected.&lt;br&gt;
&lt;/font&gt;&lt;/tt&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;&lt;br&gt;
It's been quite a while, so my memory is a little hazy, but IIRC much of
the effort was expended around features that are specific to our own Antlibs;
if you strip out that code it's probably easier to do than I remember.&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;It's going to take a while to get this
contribution cleared through IBM's IP attorneys, so don't expect to see
anything for a few months.&lt;/font&gt;
&lt;br&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td colspan=2&gt;&lt;font size=2 color=#603181 face=&quot;Tahoma&quot;&gt;____________________________________________________________________________________________
&lt;/font&gt;
&lt;tr&gt;
&lt;td&gt;&lt;font size=2 color=#603181 face=&quot;Tahoma&quot;&gt;Jeffrey E. (Jeff) Care &lt;/font&gt;
&lt;td&gt;
&lt;div align=right&gt;&lt;a href=mailto:carej@us.ibm.com target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;font size=2 color=blue face=&quot;Tahoma&quot;&gt;&lt;u&gt;carej@...&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;font size=2 color=#603181 face=&quot;Tahoma&quot;&gt;
&lt;/font&gt;&lt;/div&gt;
&lt;tr&gt;
&lt;td&gt;&lt;font size=1 color=#6260a1 face=&quot;Tahoma&quot;&gt;IBM WebSphere Application
Server &lt;/font&gt;
&lt;td&gt;
&lt;div align=right&gt;&lt;font size=1 color=#6260a1 face=&quot;Tahoma&quot;&gt;WAS Release Engineering
&lt;/font&gt;&lt;/div&gt;&lt;/table&gt;
&lt;br&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;td&gt;
&lt;div align=right&gt;&lt;/div&gt;&lt;/table&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Logging-and-synchronization-tp18407129p18520383.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18519863</id>
	<title>Re: [SPAM] Re: Ivy svn breaks ant-contrib svn</title>
	<published>2008-07-17T16:21:13Z</published>
	<updated>2008-07-17T16:21:13Z</updated>
	<author>
		<name>Xavier Hanin</name>
	</author>
	<content type="html">On Thu, Jul 17, 2008 at 4:16 PM, Scheper, Erik-Berndt &amp;lt;
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erik-berndt.scheper@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I've been thinking about suggesting this before, but now that the trunk has
&lt;br&gt;&amp;gt; broken (undesired) changes that worked fine in beta-2, it might be a good
&lt;br&gt;&amp;gt; idea to postpone most of the outstanding issues for RC1 to a RC2 and release
&lt;br&gt;&amp;gt; RC1 asap.
&lt;br&gt;&lt;br&gt;Well, IMO a RC should be, well, a release candidate. If you are sure it
&lt;br&gt;won't become a release because there are bugs you absolutely want to get
&lt;br&gt;fixed before the final release, I wouldn't call this a RC. That being said,
&lt;br&gt;maybe we should release a beta 3 now, and still make the best efforts to get
&lt;br&gt;rc1 out with the 18 corresponding issues fixed asap. The only problem I see
&lt;br&gt;is that some committers are currently in vacation, so it will be more
&lt;br&gt;difficult to get the votes for the release. But if enough committers (well,
&lt;br&gt;even PMC members) answer they are ok, I'll try to cut a beta 3 next week
&lt;br&gt;(despite my overloaded planning).
&lt;br&gt;&lt;br&gt;Xavier
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That would promote better testing of the 100+ bug-fixes and changes since
&lt;br&gt;&amp;gt; beta-2. Incidentally, beta-2 is now 4 months old, which was also the
&lt;br&gt;&amp;gt; timeframe between beta-1 and beta-2.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Erik-Berndt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ________________________________
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Van: Maarten Coene [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maarten_coene@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Verzonden: do 17-7-2008 11:45
&lt;br&gt;&amp;gt; Aan: Ant Developers List
&lt;br&gt;&amp;gt; Onderwerp: [SPAM] Re: Ivy svn breaks ant-contrib svn
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Just a wild guess, but maybe you could use IvyAntSettings again (like your
&lt;br&gt;&amp;gt; original code was), but instead of calling the execute method you can
&lt;br&gt;&amp;gt; register it yourself as Reference in the Project, something like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; IvyAntSettings settings = new IvyAntSettings();
&lt;br&gt;&amp;gt; settings.setXXX...
&lt;br&gt;&amp;gt; getProject().addReference(settingsId, settings);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maarten
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt; From: Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Sent: Tuesday, July 15, 2008 2:13:10 PM
&lt;br&gt;&amp;gt; Subject: Re: Ivy svn breaks ant-contrib svn
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, 15 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Tue, Jul 15, 2008 at 9:23 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Tue, 15 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; On Tue, Jul 15, 2008 at 8:53 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Ant-contrib also invokes setId() on the task, which works fine with
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Ivy 2.0.0beta2 but fails with trunk.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Could you please re-add the setid method?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; setId is now setSettingsId on IvyConfigure, which is more in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; conformance with Ant, since we are not setting the id of the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; task, but of the underneath datatype.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; OK, what can ant-contrib do if it wants to compile against Ivy
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 2.0.0beta2 and trunk with the same codebase?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; This is not straightforward, since we broke the API.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Right, that's why Gump finds it 8-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe you could throw in a deprecated setId() method that delegated to
&lt;br&gt;&amp;gt; setSettingsId()? &amp;nbsp;At least for the next beta so ant-contrib has a
&lt;br&gt;&amp;gt; stable base to work from without resorting to reflection.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I looked into the code to see what the id is used for. &amp;nbsp;It is later
&lt;br&gt;&amp;gt; used as the argument for IvyCacheFileset.setSettingsRef - this
&lt;br&gt;&amp;gt; wouldn't work with a reference to the task but would require a
&lt;br&gt;&amp;gt; reference to the settings, which now would exactly be what
&lt;br&gt;&amp;gt; setSettingsId creates, right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Stefan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Disclaimer:
&lt;br&gt;&amp;gt; This message contains information that may be privileged or confidential
&lt;br&gt;&amp;gt; and is the property of Sogeti Nederland B.V. or its Group members. It is
&lt;br&gt;&amp;gt; intended only for the person to whom it is addressed. If you are not the
&lt;br&gt;&amp;gt; intended recipient, you are not authorized to read, print, retain, copy,
&lt;br&gt;&amp;gt; disseminate, distribute, or use this message or any part thereof. If you
&lt;br&gt;&amp;gt; receive this message in error, please notify the sender immediately and
&lt;br&gt;&amp;gt; delete all copies of this message.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18519863&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Xavier Hanin - Independent Java Consultant
&lt;br&gt;&lt;a href=&quot;http://xhab.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xhab.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://ant.apache.org/ivy/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ant.apache.org/ivy/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.xoocode.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xoocode.org/&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ivy-svn-breaks-ant-contrib-svn-tp18438865p18519863.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18509490</id>
	<title>RE: [SPAM]  Re: Ivy svn breaks ant-contrib svn</title>
	<published>2008-07-17T07:16:36Z</published>
	<updated>2008-07-17T07:16:36Z</updated>
	<author>
		<name>Scheper, Erik-Berndt</name>
	</author>
	<content type="html">I've been thinking about suggesting this before, but now that the trunk has broken (undesired) changes that worked fine in beta-2, it might be a good idea to postpone most of the outstanding issues for RC1 to a RC2 and release RC1 asap. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;That would promote better testing of the 100+ bug-fixes and changes since beta-2. Incidentally, beta-2 is now 4 months old, which was also the timeframe between beta-1 and beta-2. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Erik-Berndt 
&lt;br&gt;&lt;br&gt;________________________________
&lt;br&gt;&lt;br&gt;Van: Maarten Coene [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maarten_coene@...&lt;/a&gt;]
&lt;br&gt;Verzonden: do 17-7-2008 11:45
&lt;br&gt;Aan: Ant Developers List
&lt;br&gt;Onderwerp: [SPAM] Re: Ivy svn breaks ant-contrib svn
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Just a wild guess, but maybe you could use IvyAntSettings again (like your original code was), but instead of calling the execute method you can register it yourself as Reference in the Project, something like:
&lt;br&gt;&lt;br&gt;IvyAntSettings settings = new IvyAntSettings();
&lt;br&gt;settings.setXXX...
&lt;br&gt;getProject().addReference(settingsId, settings);
&lt;br&gt;&lt;br&gt;Maarten
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----
&lt;br&gt;From: Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;Sent: Tuesday, July 15, 2008 2:13:10 PM
&lt;br&gt;Subject: Re: Ivy svn breaks ant-contrib svn
&lt;br&gt;&lt;br&gt;On Tue, 15 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Jul 15, 2008 at 9:23 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Tue, 15 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Tue, Jul 15, 2008 at 8:53 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ant-contrib also invokes setId() on the task, which works fine with
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ivy 2.0.0beta2 but fails with trunk.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Could you please re-add the setid method?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; setId is now setSettingsId on IvyConfigure, which is more in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; conformance with Ant, since we are not setting the id of the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; task, but of the underneath datatype.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; OK, what can ant-contrib do if it wants to compile against Ivy
&lt;br&gt;&amp;gt; &amp;gt; 2.0.0beta2 and trunk with the same codebase?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is not straightforward, since we broke the API.
&lt;/div&gt;&lt;/div&gt;Right, that's why Gump finds it 8-)
&lt;br&gt;&lt;br&gt;Maybe you could throw in a deprecated setId() method that delegated to
&lt;br&gt;setSettingsId()? &amp;nbsp;At least for the next beta so ant-contrib has a
&lt;br&gt;stable base to work from without resorting to reflection.
&lt;br&gt;&lt;br&gt;I looked into the code to see what the id is used for. &amp;nbsp;It is later
&lt;br&gt;used as the argument for IvyCacheFileset.setSettingsRef - this
&lt;br&gt;wouldn't work with a reference to the task but would require a
&lt;br&gt;reference to the settings, which now would exactly be what
&lt;br&gt;setSettingsId creates, right?
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Disclaimer:
&lt;br&gt;This message contains information that may be privileged or confidential and is the property of Sogeti Nederland B.V. or its Group members. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
&lt;br&gt;&lt;br&gt;&lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18509490&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ivy-svn-breaks-ant-contrib-svn-tp18438865p18509490.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18504977</id>
	<title>Re: Ivy svn breaks ant-contrib svn</title>
	<published>2008-07-17T02:45:45Z</published>
	<updated>2008-07-17T02:45:45Z</updated>
	<author>
		<name>Maarten Coene</name>
	</author>
	<content type="html">Just a wild guess, but maybe you could use IvyAntSettings again (like your original code was), but instead of calling the execute method you can register it yourself as Reference in the Project, something like:
&lt;br&gt;&lt;br&gt;IvyAntSettings settings = new IvyAntSettings();
&lt;br&gt;settings.setXXX...
&lt;br&gt;getProject().addReference(settingsId, settings);
&lt;br&gt;&lt;br&gt;Maarten
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----
&lt;br&gt;From: Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;Sent: Tuesday, July 15, 2008 2:13:10 PM
&lt;br&gt;Subject: Re: Ivy svn breaks ant-contrib svn
&lt;br&gt;&lt;br&gt;On Tue, 15 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Jul 15, 2008 at 9:23 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On Tue, 15 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Tue, Jul 15, 2008 at 8:53 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ant-contrib also invokes setId() on the task, which works fine with
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ivy 2.0.0beta2 but fails with trunk.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Could you please re-add the setid method?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; setId is now setSettingsId on IvyConfigure, which is more in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; conformance with Ant, since we are not setting the id of the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; task, but of the underneath datatype.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; OK, what can ant-contrib do if it wants to compile against Ivy
&lt;br&gt;&amp;gt; &amp;gt; 2.0.0beta2 and trunk with the same codebase?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is not straightforward, since we broke the API.
&lt;/div&gt;&lt;br&gt;Right, that's why Gump finds it 8-)
&lt;br&gt;&lt;br&gt;Maybe you could throw in a deprecated setId() method that delegated to
&lt;br&gt;setSettingsId()? &amp;nbsp;At least for the next beta so ant-contrib has a
&lt;br&gt;stable base to work from without resorting to reflection.
&lt;br&gt;&lt;br&gt;I looked into the code to see what the id is used for. &amp;nbsp;It is later
&lt;br&gt;used as the argument for IvyCacheFileset.setSettingsRef - this
&lt;br&gt;wouldn't work with a reference to the task but would require a
&lt;br&gt;reference to the settings, which now would exactly be what
&lt;br&gt;setSettingsId creates, right?
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504977&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ivy-svn-breaks-ant-contrib-svn-tp18438865p18504977.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18504676</id>
	<title>Re: Ivy svn breaks ant-contrib svn</title>
	<published>2008-07-17T02:24:41Z</published>
	<updated>2008-07-17T02:24:41Z</updated>
	<author>
		<name>Xavier Hanin</name>
	</author>
	<content type="html">On Thu, Jul 17, 2008 at 10:00 AM, Stefan Bodewig &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504676&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bodewig@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 16 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504676&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Yes, I think setSettingsId is the good method to call, 2.0.0-beta2 was
&lt;br&gt;&amp;gt; &amp;gt; broken in that sense. Introducing a setId method for backward
&lt;br&gt;&amp;gt; compatiblity
&lt;br&gt;&amp;gt; &amp;gt; with something broken in concept doesn't sound really nice IMO. We will
&lt;br&gt;&amp;gt; &amp;gt; probably forget to remove it after, I don't like it too much. IMO
&lt;br&gt;&amp;gt; antcontrib
&lt;br&gt;&amp;gt; &amp;gt; should be built either against trunk, or against beta2, but not both.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; But maybe others have a different opinion?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is exactly the kind of change that Gump was designed to catch and
&lt;br&gt;&amp;gt; I'm glad it did. &amp;nbsp;I don't really have an opinion on the particular
&lt;br&gt;&amp;gt; change but am a strong proponent of not breaking APIs in general (at
&lt;br&gt;&amp;gt; least not without a deprecation period).
&lt;/div&gt;&lt;br&gt;I agree in general, but Ivy 2 has been going in a deep code change, and we
&lt;br&gt;decided to keep backward compatibility with 1.4 at ant tasks level, but not
&lt;br&gt;at API level. We warned the users about that in the release notes, and
&lt;br&gt;changing code in Ivy for backward compatibility with a beta &amp;nbsp;version (which
&lt;br&gt;in Ivy language is not a release candidate) sounds not like a good idea to
&lt;br&gt;me. But once again I'm alone to decide, and if more people think it makes
&lt;br&gt;sense, I won't object.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Right now ant-contrib doesn't have anything but beta2 to build
&lt;br&gt;&amp;gt; against, so it must use setId.
&lt;br&gt;&lt;br&gt;Indeed.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;Once the next Ivy release is available
&lt;br&gt;&amp;gt; they (we, sometimes it's hard to wear different hats) can switch to
&lt;br&gt;&amp;gt; setSettingsId - or more precisely must. &amp;nbsp;This forces ant-contrib to
&lt;br&gt;&amp;gt; lock step its release plan with Ivy's - if there was such a plan.
&lt;br&gt;&lt;br&gt;Yes, in a way. That's the problem of using a beta version as a dependency.
&lt;br&gt;And that's also a problem of long release cycles, I'd really like to get Ivy
&lt;br&gt;2 final released asap to avoid or at least reduce this kind of problem in
&lt;br&gt;the future.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I'd avoid using reflection and in this particular case don't really
&lt;br&gt;&amp;gt; care too much, so I will simply keep Gump broken until Ivy has a new
&lt;br&gt;&amp;gt; artifact ant-contrib can build against. &amp;nbsp;It may be something you
&lt;br&gt;&amp;gt; should keep in mind when preparing the release notes of the next Ivy
&lt;br&gt;&amp;gt; release, though.
&lt;br&gt;&lt;br&gt;This sounds like a good option.
&lt;br&gt;&lt;br&gt;Xavier
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Stefan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504676&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18504676&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Xavier Hanin - Independent Java Consultant
&lt;br&gt;&lt;a href=&quot;http://xhab.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xhab.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://ant.apache.org/ivy/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ant.apache.org/ivy/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.xoocode.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xoocode.org/&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ivy-svn-breaks-ant-contrib-svn-tp18438865p18504676.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18503549</id>
	<title>Re: Logging and synchronization</title>
	<published>2008-07-17T01:01:34Z</published>
	<updated>2008-07-17T01:01:34Z</updated>
	<author>
		<name>Stefan Bodewig</name>
	</author>
	<content type="html">On Fri, 11 Jul 2008, Jeffrey E. Care &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18503549&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carej@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I spent a lot of time &amp; effort writing a thread-safe logger for our
&lt;br&gt;&amp;gt; own internal use.
&lt;br&gt;&lt;br&gt;Sounds as if it was more painful than I had expected.
&lt;br&gt;&lt;br&gt;&amp;gt; If there's sufficient interest I'd be willing to get the ball
&lt;br&gt;&amp;gt; rolling on getting the contribution approved by our internal IP
&lt;br&gt;&amp;gt; folks...
&lt;br&gt;&lt;br&gt;I'd be interested.
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18503549&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18503549&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Logging-and-synchronization-tp18407129p18503549.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18503533</id>
	<title>Re: Ivy svn breaks ant-contrib svn</title>
	<published>2008-07-17T01:00:26Z</published>
	<updated>2008-07-17T01:00:26Z</updated>
	<author>
		<name>Stefan Bodewig</name>
	</author>
	<content type="html">On Wed, 16 Jul 2008, Xavier Hanin &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18503533&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xavier.hanin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Yes, I think setSettingsId is the good method to call, 2.0.0-beta2 was
&lt;br&gt;&amp;gt; broken in that sense. Introducing a setId method for backward compatiblity
&lt;br&gt;&amp;gt; with something broken in concept doesn't sound really nice IMO. We will
&lt;br&gt;&amp;gt; probably forget to remove it after, I don't like it too much. IMO antcontrib
&lt;br&gt;&amp;gt; should be built either against trunk, or against beta2, but not both.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But maybe others have a different opinion?
&lt;br&gt;&lt;br&gt;This is exactly the kind of change that Gump was designed to catch and
&lt;br&gt;I'm glad it did. &amp;nbsp;I don't really have an opinion on the particular
&lt;br&gt;change but am a strong proponent of not breaking APIs in general (at
&lt;br&gt;least not without a deprecation period).
&lt;br&gt;&lt;br&gt;Right now ant-contrib doesn't have anything but beta2 to build
&lt;br&gt;against, so it must use setId. &amp;nbsp;Once the next Ivy release is available
&lt;br&gt;they (we, sometimes it's hard to wear different hats) can switch to
&lt;br&gt;setSettingsId - or more precisely must. &amp;nbsp;This forces ant-contrib to
&lt;br&gt;lock step its release plan with Ivy's - if there was such a plan.
&lt;br&gt;&lt;br&gt;I'd avoid using reflection and in this particular case don't really
&lt;br&gt;care too much, so I will simply keep Gump broken until Ivy has a new
&lt;br&gt;artifact ant-contrib can build against. &amp;nbsp;It may be something you
&lt;br&gt;should keep in mind when preparing the release notes of the next Ivy
&lt;br&gt;release, though.
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18503533&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18503533&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Dev-f108.html&quot; embed=&quot;fixTarget[108]&quot; target=&quot;_top&quot; &gt;Ant - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ivy-svn-breaks-ant-contrib-svn-tp18438865p18503533.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18490324</id>
	<title>RE: Pass Quotes to arg line</title>
	<published>2008-07-16T08:33:55Z</published>
	<updated>2008-07-16T08:33:55Z</updated>
	<author>
		<name>Scot P. Floess</name>
	</author>
	<content type="html">So, assuming one does this, how would one put quotes in place around 
&lt;br&gt;params?
&lt;br&gt;&lt;br&gt;On Wed, 16 Jul 2008, Karr, David wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; As another poster pointed out, the correct solution is to use multiple
&lt;br&gt;&amp;gt; &amp;quot;arg&amp;quot;s with &amp;quot;value&amp;quot; attributes, not trying to figure out how to get
&lt;br&gt;&amp;gt; through the various escaping layers with the &amp;quot;line&amp;quot; attribute.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Peters, John [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;John.Peters@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Sent: Tuesday, July 15, 2008 2:27 PM
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Pass Quotes to arg line
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to pass quotes to the arg line for a parameter
&lt;br&gt;&amp;gt;&amp;gt; that has spaces in it.
&lt;br&gt;&amp;gt;&amp;gt; I've tried &amp;quot; but that didn't seem to work.
&lt;br&gt;&amp;gt;&amp;gt; Also tried &amp;quot;&amp;quot; \&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt; Any suggestions?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;target name=&amp;quot;call_tfsbuild&amp;quot; depends=&amp;quot;process_proj&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;exec executable=&amp;quot;${os.tfsbuild}&amp;quot; failonerror=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;arg line=&amp;quot;start ${os.tfsmstr} ${cc.vob} ${cc.proj}
&lt;br&gt;&amp;gt;&amp;gt; /msBuildArguments:/p:LabelComment=Label for Build at
&lt;br&gt;&amp;gt;&amp;gt; ${local.time.start}
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/target&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Blue Cross Blue Shield of Florida, Inc., and its subsidiary
&lt;br&gt;&amp;gt;&amp;gt; and affiliate companies are not responsible for errors or
&lt;br&gt;&amp;gt;&amp;gt; omissions in this e-mail message. Any personal comments made
&lt;br&gt;&amp;gt;&amp;gt; in this e-mail do not reflect the views of Blue Cross Blue
&lt;br&gt;&amp;gt;&amp;gt; Shield of Florida, Inc. &amp;nbsp;The information contained in this
&lt;br&gt;&amp;gt;&amp;gt; document may be confidential and intended solely for the use
&lt;br&gt;&amp;gt;&amp;gt; of the individual or entity to whom it is addressed. &amp;nbsp;This
&lt;br&gt;&amp;gt;&amp;gt; document may contain material that is privileged or protected
&lt;br&gt;&amp;gt;&amp;gt; from disclosure under applicable law. &amp;nbsp;If you are not the
&lt;br&gt;&amp;gt;&amp;gt; intended recipient or the individual responsible for
&lt;br&gt;&amp;gt;&amp;gt; delivering to the intended recipient, please (1) be advised
&lt;br&gt;&amp;gt;&amp;gt; that any use, dissemination, forwarding, or copying of this
&lt;br&gt;&amp;gt;&amp;gt; document IS STRICTLY PROHIBITED; and (2) notify sender
&lt;br&gt;&amp;gt;&amp;gt; immediately by telephone and destroy the document. THANK YOU.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt; For
&lt;br&gt;&amp;gt;&amp;gt; additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Scot P. Floess
&lt;br&gt;27 Lake Royale
&lt;br&gt;Louisburg, NC &amp;nbsp;27549
&lt;br&gt;&lt;br&gt;252-478-8087 (Home)
&lt;br&gt;919-754-4592 (Work)
&lt;br&gt;&lt;br&gt;Chief Architect JPlate &amp;nbsp; &lt;a href=&quot;http://sourceforge.net/projects/jplate&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/projects/jplate&lt;/a&gt;&lt;br&gt;Chief Architect JavaPIM &amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/javapim&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/projects/javapim&lt;/a&gt;&lt;br&gt;&lt;br&gt;Architect Keros &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/keros&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/projects/keros&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490324&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Users-f107.html&quot; embed=&quot;fixTarget[107]&quot; target=&quot;_top&quot; &gt;Ant - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Pass-Quotes-to-arg-line-tp18475283p18490324.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18490019</id>
	<title>Re: Trouble executing python script in Unix</title>
	<published>2008-07-16T08:23:01Z</published>
	<updated>2008-07-16T08:23:01Z</updated>
	<author>
		<name>Keith Hughitt</name>
	</author>
	<content type="html">Got it :)
&lt;br&gt;&lt;br&gt;Somewhat round-about, but I wrote a small bash script that accepts two
&lt;br&gt;arguments and wraps the first
&lt;br&gt;one in &amp;lt;&amp;gt; and then executes the command:
&lt;br&gt;&lt;br&gt;--------------------------------------------------------
&lt;br&gt;#!/bin/bash
&lt;br&gt;&lt;br&gt;input=$1
&lt;br&gt;output=$2
&lt;br&gt;&lt;br&gt;./jsmin.py &amp;lt;$input&amp;gt;$output
&lt;br&gt;--------------------------------------------------------
&lt;br&gt;&lt;br&gt;It's a little round-about, but it works, finally. I think I learned the same
&lt;br&gt;lesson today.
&lt;br&gt;&lt;br&gt;Thanks André.
&lt;br&gt;&lt;br&gt;-Keith
&lt;br&gt;&lt;br&gt;On Wed, Jul 16, 2008 at 11:04 AM, André Pilz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andre.pilz@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; oh, the &amp;lt;|&amp;gt; problem. Today learned: Never ignore funny arguments.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe the output/input attributes of the &amp;lt;exec&amp;gt; task are helpful. In my
&lt;br&gt;&amp;gt; cases I use a self-written ant task.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; André
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Keith Hughitt schrieb:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi André,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for the suggestion. Python does find the script: Adding a print
&lt;br&gt;&amp;gt;&amp;gt; statement
&lt;br&gt;&amp;gt;&amp;gt; in the python script shows up during the build. Originally I thought that
&lt;br&gt;&amp;gt;&amp;gt; the issue might be
&lt;br&gt;&amp;gt;&amp;gt; due to the script not finding the input file. I now think, however, it may
&lt;br&gt;&amp;gt;&amp;gt; be due to how python
&lt;br&gt;&amp;gt;&amp;gt; interprets the angle brackets.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I once again added a &amp;quot;print sys.argv&amp;quot; which prints both the command
&lt;br&gt;&amp;gt;&amp;gt; executed
&lt;br&gt;&amp;gt;&amp;gt; as well
&lt;br&gt;&amp;gt;&amp;gt; as any arguments passed to it. Running the ant build results in:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [exec] Executing JSMin... arguments:
&lt;br&gt;&amp;gt;&amp;gt; [exec] ['/var/www/hv/install/jsmin.py', '&amp;lt;proj-all.js&amp;gt;',
&lt;br&gt;&amp;gt;&amp;gt; 'proj-all-min.js']
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Which I thought is what should be the output. However, running the same
&lt;br&gt;&amp;gt;&amp;gt; script by itself,
&lt;br&gt;&amp;gt;&amp;gt; the output (which actually goes to proj-all-min.js and not the
&lt;br&gt;&amp;gt;&amp;gt; command-line)
&lt;br&gt;&amp;gt;&amp;gt; is:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Executing JSMin... arguments:
&lt;br&gt;&amp;gt;&amp;gt; ['./jsmin.py']
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It looks like what is happening is that angle-brackets and the following
&lt;br&gt;&amp;gt;&amp;gt; argument
&lt;br&gt;&amp;gt;&amp;gt; specify streams to use for input and output, but for some reason when the
&lt;br&gt;&amp;gt;&amp;gt; script
&lt;br&gt;&amp;gt;&amp;gt; is run by ant, they are not interpreted this way. Perhaps the console is
&lt;br&gt;&amp;gt;&amp;gt; still interpreting
&lt;br&gt;&amp;gt;&amp;gt; them as escaped brackets (&amp;lt; and &amp;gt;), instead of actual angle
&lt;br&gt;&amp;gt;&amp;gt; brackets.
&lt;br&gt;&amp;gt;&amp;gt; If that is
&lt;br&gt;&amp;gt;&amp;gt; the case, it looks like I may be out of luck unless I rewrite the script
&lt;br&gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt; initiate the filestreams
&lt;br&gt;&amp;gt;&amp;gt; in another way.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The same script is available in other languages (Perl, etc), so I will try
&lt;br&gt;&amp;gt;&amp;gt; another version that
&lt;br&gt;&amp;gt;&amp;gt; doesn't make use of the angle-brackets. Then I should be able to tell if
&lt;br&gt;&amp;gt;&amp;gt; this is actually the
&lt;br&gt;&amp;gt;&amp;gt; root of the problem.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for taking the time to take a look at my problem, and for providing
&lt;br&gt;&amp;gt;&amp;gt; feedback André.
&lt;br&gt;&amp;gt;&amp;gt; And sorry for calling you Luis by accident last time.. Got my emails mixed
&lt;br&gt;&amp;gt;&amp;gt; up :P
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Take care,
&lt;br&gt;&amp;gt;&amp;gt; Keith
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Jul 16, 2008 at 9:47 AM, André Pilz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andre.pilz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Seems like python doesn't find the script (because there is no error
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; message).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Possible solutions:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - use absolute path for script location:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - call script directly (like your working test.py):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;exec executable=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I also note the double slash in the last argument.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; André
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Keith Hughitt schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Hi Luis,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks for the suggestion. I had tried using &amp;quot;ant -v&amp;quot; before, and also
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; redirecting the output, but was not aware of the '-d' parameter.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The script *should* result in a new file, &amp;quot;proj-all-min.js&amp;quot; being
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; created.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The file is only created when I run the script manually, however,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and not when I call the script during an Ant build.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Here is the relevant section of my build.xml as well as the complete
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; output
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; from execution:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ========= BEGIN build.xml ===============
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;project name=&amp;quot;proj&amp;quot; default=&amp;quot;build&amp;quot; basedir=&amp;quot;../&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;target name=&amp;quot;build&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- create build directory --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mkdir dir=&amp;quot;lib/proj/build&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- test --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;exec dir=&amp;quot;install&amp;quot; executable=&amp;quot;test.py&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; resolveexecutable=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- minify --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;python&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ========= END build.xml ===========
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Note: Ant is run from /install, and thus &amp;quot;../&amp;quot; points to the project's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; root
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; directory.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The relevant python script is located in /install/tools, and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;test.py&amp;quot; is a dummy
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;script located in /install that I used to test a simple case of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; script execution.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; =========BEGIN OUTPUT===========
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; $:/var/www/hv/install$ ant -d
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Apache Ant version 1.7.0 compiled on August 29 2007
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Buildfile: build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.PropertyHelper
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-1.6.0.06/jre
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Detected OS: Linux
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.ComponentHelper
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Setting ro project property: ant.file -&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.projectHelper
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.parsing.context
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.targets
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; parsing buildfile /var/www/hv/install/build.xml with URI =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; file:/var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Setting ro project property: ant.project.name -&amp;gt; proj
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: proj
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Setting ro project property: ant.file.proj -&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Project base dir set to: /var/www/hv
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;+Target:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;+Target: build
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; [antlib:org.apache.tools.ant] Could not load definitions from resource
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org/apache/tools/ant/antlib.xml. It could not be found.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Attempting to create object of type
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.tools.ant.helper.DefaultExecutor
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.executor
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Build sequence for target(s) `build' is [build]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Complete build sequence is [build, ]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; build:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] Current OS is Linux
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] Executing '/var/www/hv/install/test.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Execute:Java13CommandLauncher: Executing '/var/www/hv/install/test.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] Hello World
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] Current OS is Linux
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] Executing 'python' with arguments:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] 'install/tools/jsmin.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] '&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] '/var/www/hv/lib/proj//build/proj-all-min.js'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;[exec] not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Execute:Java13CommandLauncher: Executing 'python' with arguments:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 'install/tools/jsmin.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; '&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; '/var/www/hv/lib/proj//build/proj-all-min.js'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; BUILD SUCCESSFUL
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Total time: 0 seconds
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; =========END OUTPUT===========
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Keith
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Wed, Jul 16, 2008 at 5:56 AM, André Pilz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andre.pilz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; need more info to help you. Use &amp;quot;ant -d&amp;quot; to get the command line and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; arguments how python is called. How exactly does it not work? Any error
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; message?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; André
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Keith Hughitt schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Hi all,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;I've just recently started using Ant on Linux, and so far it has been
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; really
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; amazing. I've run into
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; one problem, however, that I haven't been able to get past.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I would like to call an external script (a python script to minimize
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; JavaScript files),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; but have not been able to get it to execute properly. I searched
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; around
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some, and found
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; an earlier thread (&lt;a href=&quot;http://marc.info/?l=ant-user&amp;m=115078380228196&amp;w=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://marc.info/?l=ant-user&amp;m=115078380228196&amp;w=2&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; )
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; where someone with a similar problem was able to fix things setting
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;resolveexecutable&amp;quot; to true.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; This works for me when I try running a dummy script with no arguments,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; e.g:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;test.py&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; [exec] Hello World
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; When I try and do something requiring command-line arguments though I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; can't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; get it to work:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;python&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;&amp;lt;${libs}/build/test.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;${libs}/build/testl-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've tried executing both &amp;quot;python&amp;quot; (and passing the scripts name as an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; argument), and the script itself.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nothing seems to work. The command executes fine from the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; command-line,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; what even more, when
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I print the arguments passed to the python script using argv, and then
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; string them together and run them
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it works fine, but still no luck when I try to get it working through
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ant.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Anyone have any suggestions as to what might be the problem?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any help would be greatly appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Keith
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18490019&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Users-f107.html&quot; embed=&quot;fixTarget[107]&quot; target=&quot;_top&quot; &gt;Ant - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Trouble-executing-python-script-in-Unix-tp18474363p18490019.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18489932</id>
	<title>RE: Pass Quotes to arg line</title>
	<published>2008-07-16T08:17:35Z</published>
	<updated>2008-07-16T08:17:35Z</updated>
	<author>
		<name>dkarr</name>
	</author>
	<content type="html">As another poster pointed out, the correct solution is to use multiple
&lt;br&gt;&amp;quot;arg&amp;quot;s with &amp;quot;value&amp;quot; attributes, not trying to figure out how to get
&lt;br&gt;through the various escaping layers with the &amp;quot;line&amp;quot; attribute. 
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Peters, John [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489932&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;John.Peters@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Tuesday, July 15, 2008 2:27 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489932&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Pass Quotes to arg line
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I'm trying to pass quotes to the arg line for a parameter 
&lt;br&gt;&amp;gt; that has spaces in it.
&lt;br&gt;&amp;gt; I've tried &amp;quot; but that didn't seem to work.
&lt;br&gt;&amp;gt; Also tried &amp;quot;&amp;quot; \&amp;quot;.
&lt;br&gt;&amp;gt; Any suggestions?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;target name=&amp;quot;call_tfsbuild&amp;quot; depends=&amp;quot;process_proj&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;exec executable=&amp;quot;${os.tfsbuild}&amp;quot; failonerror=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;arg line=&amp;quot;start ${os.tfsmstr} ${cc.vob} ${cc.proj} 
&lt;br&gt;&amp;gt; /msBuildArguments:/p:LabelComment=Label for Build at 
&lt;br&gt;&amp;gt; ${local.time.start}
&lt;br&gt;&amp;gt; &amp;quot; /&amp;gt;	
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/target&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Blue Cross Blue Shield of Florida, Inc., and its subsidiary 
&lt;br&gt;&amp;gt; and affiliate companies are not responsible for errors or 
&lt;br&gt;&amp;gt; omissions in this e-mail message. Any personal comments made 
&lt;br&gt;&amp;gt; in this e-mail do not reflect the views of Blue Cross Blue 
&lt;br&gt;&amp;gt; Shield of Florida, Inc. &amp;nbsp;The information contained in this 
&lt;br&gt;&amp;gt; document may be confidential and intended solely for the use 
&lt;br&gt;&amp;gt; of the individual or entity to whom it is addressed. &amp;nbsp;This 
&lt;br&gt;&amp;gt; document may contain material that is privileged or protected 
&lt;br&gt;&amp;gt; from disclosure under applicable law. &amp;nbsp;If you are not the 
&lt;br&gt;&amp;gt; intended recipient or the individual responsible for 
&lt;br&gt;&amp;gt; delivering to the intended recipient, please (1) be advised 
&lt;br&gt;&amp;gt; that any use, dissemination, forwarding, or copying of this 
&lt;br&gt;&amp;gt; document IS STRICTLY PROHIBITED; and (2) notify sender 
&lt;br&gt;&amp;gt; immediately by telephone and destroy the document. THANK YOU.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489932&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt; For 
&lt;br&gt;&amp;gt; additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489932&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489932&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489932&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Users-f107.html&quot; embed=&quot;fixTarget[107]&quot; target=&quot;_top&quot; &gt;Ant - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Pass-Quotes-to-arg-line-tp18475283p18489932.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18489607</id>
	<title>How to pass an unset property with inheritall=false</title>
	<published>2008-07-16T08:06:20Z</published>
	<updated>2008-07-16T08:06:20Z</updated>
	<author>
		<name>Knuplesch, Juergen</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I want to use antcall together with inheritall=false:
&lt;br&gt;&amp;lt;antcall target=&amp;quot;junittests&amp;quot; inheritall=&amp;quot;false&amp;quot; &amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;param name=&amp;quot;paramsometimesunset&amp;quot; value=&amp;quot;${paramsometimesunset}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;lt;/antcall&amp;gt;
&lt;br&gt;&lt;br&gt;There are some targets that dont run, when paramsometimesunset is unset.
&lt;br&gt;If I pass the parameter like this and paramsometimesunset is unset, it is set in the called target.
&lt;br&gt;But I want it to be just the same value (either unset or some value)
&lt;br&gt;&lt;br&gt;Any ideas?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jürgen Knuplesch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489607&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489607&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Users-f107.html&quot; embed=&quot;fixTarget[107]&quot; target=&quot;_top&quot; &gt;Ant - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-pass-an-unset-property-with-inheritall%3Dfalse-tp18489607p18489607.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18489558</id>
	<title>Re: Trouble executing python script in Unix</title>
	<published>2008-07-16T08:04:59Z</published>
	<updated>2008-07-16T08:04:59Z</updated>
	<author>
		<name>André Pilz</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;oh, the &amp;lt;|&amp;gt; problem. Today learned: Never ignore funny arguments.
&lt;br&gt;&lt;br&gt;Maybe the output/input attributes of the &amp;lt;exec&amp;gt; task are helpful. In my 
&lt;br&gt;cases I use a self-written ant task.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;André
&lt;br&gt;&lt;br&gt;Keith Hughitt schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi André,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for the suggestion. Python does find the script: Adding a print
&lt;br&gt;&amp;gt; statement
&lt;br&gt;&amp;gt; in the python script shows up during the build. Originally I thought that
&lt;br&gt;&amp;gt; the issue might be
&lt;br&gt;&amp;gt; due to the script not finding the input file. I now think, however, it may
&lt;br&gt;&amp;gt; be due to how python
&lt;br&gt;&amp;gt; interprets the angle brackets.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I once again added a &amp;quot;print sys.argv&amp;quot; which prints both the command executed
&lt;br&gt;&amp;gt; as well
&lt;br&gt;&amp;gt; as any arguments passed to it. Running the ant build results in:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [exec] Executing JSMin... arguments:
&lt;br&gt;&amp;gt; [exec] ['/var/www/hv/install/jsmin.py', '&amp;lt;proj-all.js&amp;gt;', 'proj-all-min.js']
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Which I thought is what should be the output. However, running the same
&lt;br&gt;&amp;gt; script by itself,
&lt;br&gt;&amp;gt; the output (which actually goes to proj-all-min.js and not the command-line)
&lt;br&gt;&amp;gt; is:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Executing JSMin... arguments:
&lt;br&gt;&amp;gt; ['./jsmin.py']
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It looks like what is happening is that angle-brackets and the following
&lt;br&gt;&amp;gt; argument
&lt;br&gt;&amp;gt; specify streams to use for input and output, but for some reason when the
&lt;br&gt;&amp;gt; script
&lt;br&gt;&amp;gt; is run by ant, they are not interpreted this way. Perhaps the console is
&lt;br&gt;&amp;gt; still interpreting
&lt;br&gt;&amp;gt; them as escaped brackets (&amp;lt; and &amp;gt;), instead of actual angle brackets.
&lt;br&gt;&amp;gt; If that is
&lt;br&gt;&amp;gt; the case, it looks like I may be out of luck unless I rewrite the script to
&lt;br&gt;&amp;gt; initiate the filestreams
&lt;br&gt;&amp;gt; in another way.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The same script is available in other languages (Perl, etc), so I will try
&lt;br&gt;&amp;gt; another version that
&lt;br&gt;&amp;gt; doesn't make use of the angle-brackets. Then I should be able to tell if
&lt;br&gt;&amp;gt; this is actually the
&lt;br&gt;&amp;gt; root of the problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for taking the time to take a look at my problem, and for providing
&lt;br&gt;&amp;gt; feedback André.
&lt;br&gt;&amp;gt; And sorry for calling you Luis by accident last time.. Got my emails mixed
&lt;br&gt;&amp;gt; up :P
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Take care,
&lt;br&gt;&amp;gt; Keith
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wed, Jul 16, 2008 at 9:47 AM, André Pilz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andre.pilz@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Seems like python doesn't find the script (because there is no error
&lt;br&gt;&amp;gt;&amp;gt; message).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Possible solutions:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - use absolute path for script location:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - call script directly (like your working test.py):
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec executable=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I also note the double slash in the last argument.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; André
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Keith Hughitt schrieb:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Luis,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks for the suggestion. I had tried using &amp;quot;ant -v&amp;quot; before, and also
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; redirecting the output, but was not aware of the '-d' parameter.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The script *should* result in a new file, &amp;quot;proj-all-min.js&amp;quot; being created.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The file is only created when I run the script manually, however,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and not when I call the script during an Ant build.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Here is the relevant section of my build.xml as well as the complete
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; output
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from execution:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ========= BEGIN build.xml ===============
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;project name=&amp;quot;proj&amp;quot; default=&amp;quot;build&amp;quot; basedir=&amp;quot;../&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;target name=&amp;quot;build&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- create build directory --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;mkdir dir=&amp;quot;lib/proj/build&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- test --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec dir=&amp;quot;install&amp;quot; executable=&amp;quot;test.py&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- minify --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;python&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ========= END build.xml ===========
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Note: Ant is run from /install, and thus &amp;quot;../&amp;quot; points to the project's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; root
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; directory.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The relevant python script is located in /install/tools, and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;test.py&amp;quot; is a dummy
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; script located in /install that I used to test a simple case of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; script execution.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; =========BEGIN OUTPUT===========
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $:/var/www/hv/install$ ant -d
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Apache Ant version 1.7.0 compiled on August 29 2007
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Buildfile: build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.PropertyHelper
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-1.6.0.06/jre
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Detected OS: Linux
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.ComponentHelper
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Setting ro project property: ant.file -&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.projectHelper
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.parsing.context
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.targets
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; parsing buildfile /var/www/hv/install/build.xml with URI =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; file:/var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Setting ro project property: ant.project.name -&amp;gt; proj
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: proj
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Setting ro project property: ant.file.proj -&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Project base dir set to: /var/www/hv
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;+Target:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;+Target: build
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [antlib:org.apache.tools.ant] Could not load definitions from resource
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org/apache/tools/ant/antlib.xml. It could not be found.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Attempting to create object of type
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.tools.ant.helper.DefaultExecutor
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adding reference: ant.executor
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Build sequence for target(s) `build' is [build]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Complete build sequence is [build, ]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; build:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Current OS is Linux
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Executing '/var/www/hv/install/test.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Execute:Java13CommandLauncher: Executing '/var/www/hv/install/test.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Hello World
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Current OS is Linux
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Executing 'python' with arguments:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] 'install/tools/jsmin.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] '&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] '/var/www/hv/lib/proj//build/proj-all-min.js'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Execute:Java13CommandLauncher: Executing 'python' with arguments:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 'install/tools/jsmin.py'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; '&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; '/var/www/hv/lib/proj//build/proj-all-min.js'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; BUILD SUCCESSFUL
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Total time: 0 seconds
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; =========END OUTPUT===========
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Keith
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Wed, Jul 16, 2008 at 5:56 AM, André Pilz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andre.pilz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; need more info to help you. Use &amp;quot;ant -d&amp;quot; to get the command line and the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; arguments how python is called. How exactly does it not work? Any error
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; message?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; André
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Keith Hughitt schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Hi all,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've just recently started using Ant on Linux, and so far it has been
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; really
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; amazing. I've run into
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; one problem, however, that I haven't been able to get past.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I would like to call an external script (a python script to minimize
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; JavaScript files),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; but have not been able to get it to execute properly. I searched around
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some, and found
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; an earlier thread (&lt;a href=&quot;http://marc.info/?l=ant-user&amp;m=115078380228196&amp;w=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://marc.info/?l=ant-user&amp;m=115078380228196&amp;w=2&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; where someone with a similar problem was able to fix things setting
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;resolveexecutable&amp;quot; to true.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; This works for me when I try running a dummy script with no arguments,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; e.g:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;test.py&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; [exec] Hello World
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; When I try and do something requiring command-line arguments though I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; can't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; get it to work:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;python&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;&amp;lt;${libs}/build/test.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;${libs}/build/testl-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've tried executing both &amp;quot;python&amp;quot; (and passing the scripts name as an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; argument), and the script itself.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nothing seems to work. The command executes fine from the command-line,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; what even more, when
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I print the arguments passed to the python script using argv, and then
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; string them together and run them
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it works fine, but still no luck when I try to get it working through
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ant.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Anyone have any suggestions as to what might be the problem?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any help would be greatly appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Keith
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489558&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Users-f107.html&quot; embed=&quot;fixTarget[107]&quot; target=&quot;_top&quot; &gt;Ant - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Trouble-executing-python-script-in-Unix-tp18474363p18489558.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18489283</id>
	<title>Re: Trouble executing python script in Unix</title>
	<published>2008-07-16T07:51:08Z</published>
	<updated>2008-07-16T07:51:08Z</updated>
	<author>
		<name>Keith Hughitt</name>
	</author>
	<content type="html">Hi André,
&lt;br&gt;&lt;br&gt;Thanks for the suggestion. Python does find the script: Adding a print
&lt;br&gt;statement
&lt;br&gt;in the python script shows up during the build. Originally I thought that
&lt;br&gt;the issue might be
&lt;br&gt;due to the script not finding the input file. I now think, however, it may
&lt;br&gt;be due to how python
&lt;br&gt;interprets the angle brackets.
&lt;br&gt;&lt;br&gt;I once again added a &amp;quot;print sys.argv&amp;quot; which prints both the command executed
&lt;br&gt;as well
&lt;br&gt;as any arguments passed to it. Running the ant build results in:
&lt;br&gt;&lt;br&gt;[exec] Executing JSMin... arguments:
&lt;br&gt;[exec] ['/var/www/hv/install/jsmin.py', '&amp;lt;proj-all.js&amp;gt;', 'proj-all-min.js']
&lt;br&gt;&lt;br&gt;Which I thought is what should be the output. However, running the same
&lt;br&gt;script by itself,
&lt;br&gt;the output (which actually goes to proj-all-min.js and not the command-line)
&lt;br&gt;is:
&lt;br&gt;&lt;br&gt;Executing JSMin... arguments:
&lt;br&gt;['./jsmin.py']
&lt;br&gt;&lt;br&gt;&lt;br&gt;It looks like what is happening is that angle-brackets and the following
&lt;br&gt;argument
&lt;br&gt;specify streams to use for input and output, but for some reason when the
&lt;br&gt;script
&lt;br&gt;is run by ant, they are not interpreted this way. Perhaps the console is
&lt;br&gt;still interpreting
&lt;br&gt;them as escaped brackets (&amp;lt; and &amp;gt;), instead of actual angle brackets.
&lt;br&gt;If that is
&lt;br&gt;the case, it looks like I may be out of luck unless I rewrite the script to
&lt;br&gt;initiate the filestreams
&lt;br&gt;in another way.
&lt;br&gt;&lt;br&gt;The same script is available in other languages (Perl, etc), so I will try
&lt;br&gt;another version that
&lt;br&gt;doesn't make use of the angle-brackets. Then I should be able to tell if
&lt;br&gt;this is actually the
&lt;br&gt;root of the problem.
&lt;br&gt;&lt;br&gt;Thanks for taking the time to take a look at my problem, and for providing
&lt;br&gt;feedback André.
&lt;br&gt;And sorry for calling you Luis by accident last time.. Got my emails mixed
&lt;br&gt;up :P
&lt;br&gt;&lt;br&gt;Take care,
&lt;br&gt;Keith
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Jul 16, 2008 at 9:47 AM, André Pilz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489283&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andre.pilz@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Seems like python doesn't find the script (because there is no error
&lt;br&gt;&amp;gt; message).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possible solutions:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - use absolute path for script location:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - call script directly (like your working test.py):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec executable=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot;
&lt;br&gt;&amp;gt; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I also note the double slash in the last argument.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; André
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Keith Hughitt schrieb:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Luis,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for the suggestion. I had tried using &amp;quot;ant -v&amp;quot; before, and also
&lt;br&gt;&amp;gt;&amp;gt; redirecting the output, but was not aware of the '-d' parameter.
&lt;br&gt;&amp;gt;&amp;gt; The script *should* result in a new file, &amp;quot;proj-all-min.js&amp;quot; being created.
&lt;br&gt;&amp;gt;&amp;gt; The file is only created when I run the script manually, however,
&lt;br&gt;&amp;gt;&amp;gt; and not when I call the script during an Ant build.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Here is the relevant section of my build.xml as well as the complete
&lt;br&gt;&amp;gt;&amp;gt; output
&lt;br&gt;&amp;gt;&amp;gt; from execution:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ========= BEGIN build.xml ===============
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;project name=&amp;quot;proj&amp;quot; default=&amp;quot;build&amp;quot; basedir=&amp;quot;../&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;target name=&amp;quot;build&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- create build directory --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;mkdir dir=&amp;quot;lib/proj/build&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- test --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec dir=&amp;quot;install&amp;quot; executable=&amp;quot;test.py&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- minify --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;python&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ========= END build.xml ===========
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Note: Ant is run from /install, and thus &amp;quot;../&amp;quot; points to the project's
&lt;br&gt;&amp;gt;&amp;gt; root
&lt;br&gt;&amp;gt;&amp;gt; directory.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The relevant python script is located in /install/tools, and
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;test.py&amp;quot; is a dummy
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; script located in /install that I used to test a simple case of
&lt;br&gt;&amp;gt;&amp;gt; script execution.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; =========BEGIN OUTPUT===========
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $:/var/www/hv/install$ ant -d
&lt;br&gt;&amp;gt;&amp;gt; Apache Ant version 1.7.0 compiled on August 29 2007
&lt;br&gt;&amp;gt;&amp;gt; Buildfile: build.xml
&lt;br&gt;&amp;gt;&amp;gt; Adding reference: ant.PropertyHelper
&lt;br&gt;&amp;gt;&amp;gt; Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-1.6.0.06/jre
&lt;br&gt;&amp;gt;&amp;gt; Detected OS: Linux
&lt;br&gt;&amp;gt;&amp;gt; Adding reference: ant.ComponentHelper
&lt;br&gt;&amp;gt;&amp;gt; Setting ro project property: ant.file -&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt; Adding reference: ant.projectHelper
&lt;br&gt;&amp;gt;&amp;gt; Adding reference: ant.parsing.context
&lt;br&gt;&amp;gt;&amp;gt; Adding reference: ant.targets
&lt;br&gt;&amp;gt;&amp;gt; parsing buildfile /var/www/hv/install/build.xml with URI =
&lt;br&gt;&amp;gt;&amp;gt; file:/var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt; Setting ro project property: ant.project.name -&amp;gt; proj
&lt;br&gt;&amp;gt;&amp;gt; Adding reference: proj
&lt;br&gt;&amp;gt;&amp;gt; Setting ro project property: ant.file.proj -&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt;&amp;gt; Project base dir set to: /var/www/hv
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;+Target:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;+Target: build
&lt;br&gt;&amp;gt;&amp;gt; [antlib:org.apache.tools.ant] Could not load definitions from resource
&lt;br&gt;&amp;gt;&amp;gt; org/apache/tools/ant/antlib.xml. It could not be found.
&lt;br&gt;&amp;gt;&amp;gt; Attempting to create object of type
&lt;br&gt;&amp;gt;&amp;gt; org.apache.tools.ant.helper.DefaultExecutor
&lt;br&gt;&amp;gt;&amp;gt; Adding reference: ant.executor
&lt;br&gt;&amp;gt;&amp;gt; Build sequence for target(s) `build' is [build]
&lt;br&gt;&amp;gt;&amp;gt; Complete build sequence is [build, ]
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; build:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Current OS is Linux
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Executing '/var/www/hv/install/test.py'
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] not part of the command.
&lt;br&gt;&amp;gt;&amp;gt; Execute:Java13CommandLauncher: Executing '/var/www/hv/install/test.py'
&lt;br&gt;&amp;gt;&amp;gt; The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt; not part of the command.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Hello World
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Current OS is Linux
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] Executing 'python' with arguments:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] 'install/tools/jsmin.py'
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] '&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;'
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] '/var/www/hv/lib/proj//build/proj-all-min.js'
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec]
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; [exec] not part of the command.
&lt;br&gt;&amp;gt;&amp;gt; Execute:Java13CommandLauncher: Executing 'python' with arguments:
&lt;br&gt;&amp;gt;&amp;gt; 'install/tools/jsmin.py'
&lt;br&gt;&amp;gt;&amp;gt; '&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;'
&lt;br&gt;&amp;gt;&amp;gt; '/var/www/hv/lib/proj//build/proj-all-min.js'
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The ' characters around the executable and arguments are
&lt;br&gt;&amp;gt;&amp;gt; not part of the command.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; BUILD SUCCESSFUL
&lt;br&gt;&amp;gt;&amp;gt; Total time: 0 seconds
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; =========END OUTPUT===========
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any ideas?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Keith
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Jul 16, 2008 at 5:56 AM, André Pilz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489283&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andre.pilz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; need more info to help you. Use &amp;quot;ant -d&amp;quot; to get the command line and the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; arguments how python is called. How exactly does it not work? Any error
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; message?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; André
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Keith Hughitt schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Hi all,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've just recently started using Ant on Linux, and so far it has been
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; really
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; amazing. I've run into
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; one problem, however, that I haven't been able to get past.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I would like to call an external script (a python script to minimize
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; JavaScript files),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; but have not been able to get it to execute properly. I searched around
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some, and found
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; an earlier thread (&lt;a href=&quot;http://marc.info/?l=ant-user&amp;m=115078380228196&amp;w=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://marc.info/?l=ant-user&amp;m=115078380228196&amp;w=2&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; where someone with a similar problem was able to fix things setting
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;resolveexecutable&amp;quot; to true.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; This works for me when I try running a dummy script with no arguments,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; e.g:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;test.py&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; [exec] Hello World
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; When I try and do something requiring command-line arguments though I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; can't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; get it to work:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;python&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;&amp;lt;${libs}/build/test.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;${libs}/build/testl-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I've tried executing both &amp;quot;python&amp;quot; (and passing the scripts name as an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; argument), and the script itself.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nothing seems to work. The command executes fine from the command-line,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; what even more, when
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I print the arguments passed to the python script using argv, and then
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; string them together and run them
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it works fine, but still no luck when I try to get it working through
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ant.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Anyone have any suggestions as to what might be the problem?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any help would be greatly appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Keith
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489283&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489283&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489283&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18489283&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Ant---Users-f107.html&quot; embed=&quot;fixTarget[107]&quot; target=&quot;_top&quot; &gt;Ant - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Trouble-executing-python-script-in-Unix-tp18474363p18489283.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18487846</id>
	<title>Re: Trouble executing python script in Unix</title>
	<published>2008-07-16T06:47:31Z</published>
	<updated>2008-07-16T06:47:31Z</updated>
	<author>
		<name>André Pilz</name>
	</author>
	<content type="html">Seems like python doesn't find the script (because there is no error 
&lt;br&gt;message).
&lt;br&gt;&lt;br&gt;Possible solutions:
&lt;br&gt;&lt;br&gt;- use absolute path for script location:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;- call script directly (like your working test.py):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec executable=&amp;quot;${basedir}/install/tools/jsmin.py&amp;quot; 
&lt;br&gt;resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/exec&amp;gt;
&lt;br&gt;&lt;br&gt;I also note the double slash in the last argument.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;André
&lt;br&gt;&lt;br&gt;Keith Hughitt schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Luis,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for the suggestion. I had tried using &amp;quot;ant -v&amp;quot; before, and also
&lt;br&gt;&amp;gt; redirecting the output, but was not aware of the '-d' parameter.
&lt;br&gt;&amp;gt; The script *should* result in a new file, &amp;quot;proj-all-min.js&amp;quot; being created.
&lt;br&gt;&amp;gt; The file is only created when I run the script manually, however,
&lt;br&gt;&amp;gt; and not when I call the script during an Ant build.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the relevant section of my build.xml as well as the complete output
&lt;br&gt;&amp;gt; from execution:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ========= BEGIN build.xml ===============
&lt;br&gt;&amp;gt; &amp;lt;project name=&amp;quot;proj&amp;quot; default=&amp;quot;build&amp;quot; basedir=&amp;quot;../&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;target name=&amp;quot;build&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- create build directory --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mkdir dir=&amp;quot;lib/proj/build&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- test --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;exec dir=&amp;quot;install&amp;quot; executable=&amp;quot;test.py&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- minify --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;exec dir=&amp;quot;./&amp;quot; executable=&amp;quot;python&amp;quot; resolveexecutable=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;install/tools/jsmin.py&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;&amp;lt;/var/www/hv/lib/proj/build/proj-all.js&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg value=&amp;quot;/var/www/hv/lib/proj//build/proj-all-min.js&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ========= END build.xml ===========
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Note: Ant is run from /install, and thus &amp;quot;../&amp;quot; points to the project's root
&lt;br&gt;&amp;gt; directory.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The relevant python script is located in /install/tools, and
&lt;br&gt;&amp;gt; &amp;quot;test.py&amp;quot; is a dummy
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;script located in /install that I used to test a simple case of
&lt;br&gt;&amp;gt; script execution.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; =========BEGIN OUTPUT===========
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $:/var/www/hv/install$ ant -d
&lt;br&gt;&amp;gt; Apache Ant version 1.7.0 compiled on August 29 2007
&lt;br&gt;&amp;gt; Buildfile: build.xml
&lt;br&gt;&amp;gt; Adding reference: ant.PropertyHelper
&lt;br&gt;&amp;gt; Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-1.6.0.06/jre
&lt;br&gt;&amp;gt; Detected OS: Linux
&lt;br&gt;&amp;gt; Adding reference: ant.ComponentHelper
&lt;br&gt;&amp;gt; Setting ro project property: ant.file -&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt; Adding reference: ant.projectHelper
&lt;br&gt;&amp;gt; Adding reference: ant.parsing.context
&lt;br&gt;&amp;gt; Adding reference: ant.targets
&lt;br&gt;&amp;gt; parsing buildfile /var/www/hv/install/build.xml with URI =
&lt;br&gt;&amp;gt; file:/var/www/hv/install/build.xml
&lt;br&gt;&amp;gt; Setting ro project property: ant.project.name -&amp;gt; proj
&lt;br&gt;&amp;gt; Adding reference: proj
&lt;br&gt;&amp;gt; Setting ro project property: ant.file.proj -&amp;gt; /var/www/hv/install/build.xml
&lt;br&gt;&amp;gt; Project base dir set to: /var/www/hv
&lt;br&gt;&am