• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to automate button clicking sequence in Eclipse to Stop Tomcat, Re-Build and Deploy

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


The following, is my work-flow:

Important: Please Open Reference Image which Refers to the "Buttons" in Eclipse: https://i.stack.imgur.com/LgaUn.png

1. I write code.
2. I stop the Tomcat server by pressing button #2.
3. I re-build/compile the project by pressing button #3.
4. I start the Tomcat server by pressing button #1.

I simply want to be able to do this via a single keyboard-shortcut. I have looked into AHK, and I have looked into Eclipse's key-mappings, but to no avail. I am even considering exotic solutions such as utilizing AHK which would do a mouse-click, wait a few seconds, and then do another mouse-click using screen-coordinates - but that would be a very brittle solution.

Thank you!
 
Bartender
Posts: 669
15
TypeScript Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you restarting the server so often?
 
Saloon Keeper
Posts: 28469
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be able to write an Eclipse plug-in to give you a one-button solution, if you wanted it that way.

However, if your project is properly set up, simply doing a re-build would trigger a hot-deploy of the updated webapp.

Hot deployment doesn't always work, and during the days of the dreaded PermGen storage, you tended to only get 2 or 3 before you ran out of RAM, but a full stop/rebuild/deploy/start isn't always necessary.
 
What a show! What atmosphere! What fun! What a tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic