Customized Contextual Menu for Deploying from NetBeans IDE 4.1

After creating a property-determined Ant target that deploys a NetBeans IDE project to Tomcat 4 or JBoss (see yesterday's blog entry), I wanted to be able to access the target from a project's contextual menu. This is only possible in a free-form project. So I created a free-form project from the build-impl.xml file that the IDE creates for you when you create a standard project. This way, I've got the best of both worlds -- all the standard targets generated by the IDE together with the possibility of extending the project even further, giving it more freedom, thanks to the facilities offered by the free-form project. So here is my contextual menu:

I guess a better name for the contextual menu would be something like "Deploy to External Server", but what if I were to forget which servers are made available in the properties file? At least this way I know what's there.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
24
25
26
27
28
29
30
   
       
Today