• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

target - run external application?

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Nearly finnished by build script. Now I am doing the run target. However (do not know if this is possible, searched on google so far and did not find much) I would like to make the ruin target open a web browser (IE, or FireFox) and load my web application.

I read somewhere that i can actually add my extra libreries in Ant. However I was hoping for something more simple, and this is something which is likly to be in Ant!

thanks and regards,
sim085
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The <exec /> task will run other applications. However, be wary of this, since no matter how careful you are you add some degree of expectation about the environment Ant will be run in.

That being said however:


I would like to make the ruin target open a web browser (IE, or FireFox) and load my web application.



Why do you need a Web Browser to do this? Typically deploying web applications is just a case of moving files. If you want to tests whether your app has deployed and is accessable you might consider HttpUnit from Ant instead (or just rely on Ant' <http /> element)
[ April 25, 2006: Message edited by: Paul Sturrock ]
 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Why do you need a Web Browser to do this?



Because if I do something I want to see how it is showing on the web, like I give it a test run just to see it going!

Do you mean that with the <http/> thing it would display the website for me?

thanks a lot for your advise,
sim085
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, but I don't think you should automate this step. If you want to see what state your application is in, I'd just do this manually. Because you can do something with Ant doesn't mean you really should .
 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok

I will stay on what you tell me then (at the end of the day, all it takes is to click the browser refresh button

I asked for this because in swing applications, I had a target that called the java element, and tried to do the same thing for the web

However you have a valid point, just because I can do it, does not mean I should have it (and to say the truth I never saw it any project I made so far)

Thanks
sim085
 
reply
    Bookmark Topic Watch Topic
  • New Topic