Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
How to open URL from ANT.

How to open URL from ANT.

2005-05-18       - By manoj puthran
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Even I like to find out the same.

But in the meantime I am using the exec task, i.e. running system
command, to open my url in the browser, in Win2k.


<project>
       <property name="url" value="http://ant.apache.org" />

       <exec executable="cmd.exe" os="Windows 2000,Windows NT,Windows
XP" >
               <arg line="/C start ${url}" />
       </exec>
</project>


-----Original Message-----
From: Nir Geier [mailto:Nir.Geier@(protected)]
Sent: Wednesday, May 18, 2005 2:59 PM
To: Ant Users List
Subject: How to open URL from ANT.

Hi all.

How can I open url from ant?
For example I have a documentation page that I want to display (HTML
page)
I want to click on ant target which opens the page in browser.

Is there any option to open URL with Browser?

Ty in advance.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.