This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Neat trick for Unix shell users..

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you code for Tomcat as I do sans-IDE, you might find this tip useful.

Even with the "reloadable" attribute set to true, it is often necessary to manually reload an application (web.xml changes, context scope vars etc..) running in Tomcat.
The fastest way to do this (CPU wise) is with the Tomcat manager application.
The problem is that this involves having a browser open and on that page or else reaching for the mouse (a loathsome chore).

wget to the rescue!

Like most command line junkies I have a script that I use to set up my environment for each project (classpath etc..).

By creating an alias that calls wget (a command line tool for pulling HTTP content from cron scripts for mirroring websites), pointed to the manager app, I've made it easy to quickly reload the app I'm working on without leaving the window I'm in.

Here is the command:

 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good tip Ben, Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic