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 23:23:03 GMT

For what it's worth, I added a '-url' argument to both the Firefox and Opera
<exec> tasks and all three <exec> tasks now work. (I also noticed that if I
added the '-url' argument to the IE task, it DIDN'T work.)

I've never heard of the '-url' flag before and it doesn't seem to be
necessary when executing the command on the command line but it helps a
great deal when executing from an Ant <exec> task.

Thanks for suggesting it! This really solved my problem.


----- Original Message ----- 
From: "Sebastian Redl" <>
To: "Ant Users List" <>
Sent: Thursday, October 21, 2004 5:09 PM
Subject: Re: Problem with <exec>

> Rhino wrote:
> >
> > 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:
> >
> I don't have a solution for your problem, I'd just like to point out
> that paths of browsers are something EXTREMELY unreliable, so if you
> actually want to use this for a distributed project, you need to come up
> with a better way of finding the browser.
> My FireFox, for example, is installed at
> C:\Programme\Mozilla Firefox\firefox.exe
> Note that even though I accepted the default installation directory,
> it's still not the same, because I have a German Windows. That doesn't
> even take into account my Linux computers, where the path is completely
> different (/usr/share/firefox/lib/firefox-bin I think).
> That said, Mozilla seems to require the -url switch to actually load an
> URL, so I think your FireFox call should look like this:
> <exec ...>
> <arg value="-url"/>
> <arg value="${server.webpage.URL\"/>
> </exec>
> Sebastian Redl
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message