[FlashCodersNY] ANT script to launch browser in OSX

Tim Beynart timbeynart at gmail.com
Fri Sep 19 11:13:54 PDT 2008


see http://www.darronschall.com/weblog/archives/000275.cfm

in ant:
<!-- Launch the browser via the exec ANT task -->
		<exec executable="${BROWSER}" spawn="yes">
			<arg line="${BROWSER_ARG_OSX}" />
			<arg line="${LOCAL_SITE}" />
		</exec>

windows build properties::
BROWSER:C:\\Program Files\\Internet Explorer\\iexplore.exe
BROWSER_ARG_OSX:   #leave blank

OSX build properties:
BROWSER:open
BROWSER_ARG_OSX:-a Firefox


On Fri, Sep 19, 2008 at 2:06 PM, Yee Peng Chia <yeepeng.chia at gmail.com> wrote:
> Does anyone have an ANT script that will launch a html page in a web
> browser on OSX?
>
> Been trying out different things but none seemed to work. That
> includes Andrew Hunt's excellent ANT tutorial (sorry Andy!).
>
> For some reason, Andy's script launches Firefox in WinXP/Parallels as
> opposed to the one installed in OSX. May be something to do with my
> configuration. If anyone can shed some light on this, it would be much
> appreciated. Googling the subject did not return much result.
>
> Other sources that I've tried:
>
> http://www.darronschall.com/weblog/archives/000275.cfm
> http://readlist.com/lists/chattyfig.figleaf.com/flashcoders/4/23882.html
>
> Something tells me that for all this effort, it may be easier to just
> command-tab to the browser or find window instead.
>
> Peng
>
> _______________________________________________
> FlashCodersNY mailing list
> FlashCodersNY at flashcodersny.org
> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>



-- 
+ Tim Beynart
+ tim at timbeynart.com
+ 706.372.6994



More information about the FlashCodersNY mailing list