« March 2004 | Main | May 2004 »

April 2004

April 20, 2004

Setting up Jetty in IDEA



Jetty is a lightweight embeddable Servlet/JSP container. I've configured it to run my test Tapestry application in IDEA and the server starts in about a second.

Here are the settings:

  1. Main class: org.mortbay.jetty.Server
  2. VM Parameters: -cp <include all jars from $JETTY_HOME/lib and $JETTY_HOME/ext>
  3. Program parameters: YOUR-APP-CONFIG.xml

YOUR-APP-CONFIG.xml (Note: default + value of jetty.home will point to directory with your web.xml):

  ...
  <Call name="addWebApplication">
    <Arg>/your-app/*</Arg>
    <Arg><SystemProperty name="jetty.home" default=".."/>/war/web</Arg>
  </Call>
  ...

Disabling Tapestry Cache



-Dorg.apache.tapestry.disable-caching=true

Dan Creswell & JINI


April 19, 2004

ToStringPlugin for IDEA


http://www.intellij.org/twiki/bin/view/Main/ToStringPlugin

It is very useful. I've slightly changed the "Default StringBuffer" template -- it can be done from the IDE Settings|GenerateToString:


final StringBuffer sb = new StringBuffer();
sb
.append("$classname")
#set ($i = 0)
#foreach ($field in $fields)
#if (!$field.modifierStatic)
#if ($i == 0)
.append("{##
#else
.append(",##
#end
$field.name=")##
#if ($field.primitiveArray)
.append($field.name == null ? "null" : "")
for (int i = 0; $field.name != null && i < $field.name .length; ++i)
.append(i == 0 ? "" : ", ").append($field.name[i])
#elseif ($field.objectArray)
.append($field.name == null ? "null" : Arrays.asList($field.name).toString())
#else
.append($field.name)
#end
#set ($i = $i + 1)
#end
#end
#if ($fields.size() == 0)
.append("{}");
#else
.append('}');
#end
return sb.toString();

April 06, 2004

How to use Ant 1.6.1 in IDEA


http://support.jetbrains.com/kb/entry.jspa?entryID=59&categoryID=27

April 01, 2004

wsadmin scripting

IBM WebSphere Developer Technical Journal Articles:

More: