ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rhino" <>
Subject Re: Problem with <exec>
Date Thu, 21 Oct 2004 22:44:21 GMT
Sorry? I'm not sure that I understand your point about the file:// protocol.

You are right that the paths for Opera and Firefox are different than IE; I
installed IE in C:\Program Files but I deliberately put Opera and Firefox in
D:\Program Files because the C: drive was getting full.


----- Original Message ----- 
From: "W. Sean Hennessy" <>
To: "'Ant Users List'" <>
Sent: Thursday, October 21, 2004 5:10 PM
Subject: RE: Problem with <exec>

Perhaps your URL is not resolving across the drive volume if it is using the
file:// protocol instead of http://
Recommned an examination of the resulting ${server.webpage.URL}.
Noted that the ie6.path differs in drive volume from firefox.path and

-----Original Message-----
From: Rhino []
Sent: Thursday, October 21, 2004 1:50 PM
To: ant-user
Subject: Problem with <exec>

I'm having problems with <exec> and would appreciate some guidance.

My project involves compiling, jarring, and uploading a revised Java applet
to a webpage. All of that works fine.

I decided I would like to try to improve the script by adding a target that
displayed the web page containing the applet
in each of the three browsers that I have, just to make sure the applet
looks good on the web page. I composed this
target to do that:

<property name="ie6.path" value="c:\Program Files\Internet

<property name="firefox.path" value="d:\Program Files\Mozilla

<property name="opera.path" value="d:\Program Files\Opera\opera.exe"/>

<target name="web" depends="getserver,getprops" description="Display the web
page in one or more browsers.">
<echo message="Displaying webpage ${server.webpage.URL} in Internet

<exec executable="${ie6.path}" spawn="true" os="Windows XP"
description="Launch web page in IE6">

<arg value="${server.webpage.URL}"/>


<echo message="Displaying webpage ${server.webpage.URL} in Firefox."/>

<exec executable="${firefox.path}" spawn="true" os="Windows XP"
description="Launch web page in Firefox">

<arg value="${server.webpage.URL}"/>


<echo message="Displaying webpage ${server.webpage.URL} in Opera."/>

<exec executable="${opera.path}" spawn="true" os="Windows XP"
description="Launch web page in Opera">

<arg value="${server.webpage.URL}"/>



The first of the <exec> tasks works: the webpage is displayed in a new IE6
window, just as I wanted.

The second and third <exec> tasks don't work at all; the <echo> before each
task is executed but no instance of Firefox
or Opera is started, let alone displays the desired page. However, Windows
Task Manager (I'm on XP with SP1) shows three
instances of iexplore.exe, four instances of opera.exe, and one instance of
firefox.exe so it appears that Windows is
trying to launch my broswers.

Does anyone have any idea why this doesn't work or what I can do to make it

rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no
deficiencies. And the other way is to make it so complicated that there are
no obvious deficiencies." - C.A.R. Hoare

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message