<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Net Wolf's Blog &#187; Java</title>
	<atom:link href="http://netwolfuk.wordpress.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://netwolfuk.wordpress.com</link>
	<description>TAG_LINE='Linux and stuff' ; echo ${TAG_LINE}</description>
	<lastBuildDate>Fri, 25 Sep 2009 10:53:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='netwolfuk.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/978de68921d74e7eca180176df5ec696?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Net Wolf's Blog &#187; Java</title>
		<link>http://netwolfuk.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://netwolfuk.wordpress.com/osd.xml" title="Net Wolf&#8217;s Blog" />
		<item>
		<title>Updated TeamCity WebHooks plugin available</title>
		<link>http://netwolfuk.wordpress.com/2009/07/04/updated-teamcity-webhooks-plugin-available/</link>
		<comments>http://netwolfuk.wordpress.com/2009/07/04/updated-teamcity-webhooks-plugin-available/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 08:15:02 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TeamCity]]></category>
		<category><![CDATA[WebHooks]]></category>
		<category><![CDATA[tcPlugins]]></category>
		<category><![CDATA[tcWebHooks]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=107</guid>
		<description><![CDATA[Version 0.6.13.11 of the tcWebHooks plugin is available for download. It&#8217;s mainly a bugfix release and some tidy up of the user interface.
Fixes:
- Fix for newly created WebHooks not being persisted to plugin-settings.xml until re-edited.
- Plugin JSPs loaded using getPluginResourcesPath(), so plugin dir can be anything, and not hard-coded to &#8220;webhook&#8221;.
- webHookUrl form input style [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=107&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Version 0.6.13.11 of the <a title="My TeamCity Plugins page" href="http://netwolfuk.wordpress.com/teamcity-plugins/">tcWebHooks</a> plugin is available for <a title="Download from SourceForge" href="http://sourceforge.net/projects/tcplugins/files/">download</a>. It&#8217;s mainly a bugfix release and some tidy up of the user interface.</p>
<p><strong>Fixes:</strong><br />
- Fix for newly created WebHooks not being persisted to plugin-settings.xml until re-edited.<br />
- Plugin JSPs loaded using getPluginResourcesPath(), so plugin dir can be anything, and not hard-coded to &#8220;webhook&#8221;.<br />
- webHookUrl form input style fix for linux (or large fonts in general). URL input field was too wide for div.</p>
<p><strong>Features:</strong><br />
- WebHook blurb updated. A new link can be added to the &#8220;Further reading&#8221; section of the blurb by adding a &lt;info&gt; line to the &lt;webhooks&gt; section of the main-config.xml<br />
- Enabled events are now listed in Tabs and Edit pages, eg. Build Started, Build Changed Status, Build Interrupted, Build Almost Completed, Build Responsibility Changed</p>
<p><strong>Links:</strong></p>
<p><a title="My TeamCity Plugins page" href="http://netwolfuk.wordpress.com/teamcity-plugins/">More Info</a> | <a title="Download from SourceForge" href="http://sourceforge.net/projects/tcplugins/files/">Download</a> | <a title="View the docs in Trac" href="http://sourceforge.net/apps/trac/tcplugins/">Install and usage docs</a></p>
<p>I welcome any and all feedback.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=107&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2009/07/04/updated-teamcity-webhooks-plugin-available/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>Developing for TeamCity in Eclipse</title>
		<link>http://netwolfuk.wordpress.com/2009/06/28/developing-for-teamcity-in-eclipse/</link>
		<comments>http://netwolfuk.wordpress.com/2009/06/28/developing-for-teamcity-in-eclipse/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 13:25:02 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[TeamCity]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=94</guid>
		<description><![CDATA[Tips on developing for TeamCity, without restarting Tomcat continuously.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=94&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This document assumes you are running the TeamCity package from JetBrains, which includes Tomcat. If you are running your own Tomcat install, you may need to hunt out the files yourself. This document is based on Linux. I&#8217;ve tried to point out what you need to change on Windows, but I don&#8217;t have a Windows box to test with.</p>
<p>My TeamCity home  is <em>/opt/TeamCity</em></p>
<h4>Enable JSP development mode in Tomcat.</h4>
<p>This setting alows you to hot delpoy JSPs, and Tomcat will re-compile them for you without a restart.  Edit <em>&lt;TeamCityHome&gt;</em>/conf/web.xml and find the <strong>JspServlet</strong> section. Change the development mode to <strong>true</strong> as per the section below.</p>
<pre>&lt;servlet-name&gt;jsp&lt;/servlet-name&gt;
   &lt;servlet-class&gt;org.apache.jasper.servlet.JspServlet&lt;/servlet-class&gt;
     &lt;init-param&gt;
       &lt;param-name&gt;development&lt;/param-name&gt;
       &lt;param-value&gt;true&lt;/param-value&gt;
     &lt;/init-param&gt;
  ...</pre>
<h4>Enable Java code hot-swapping with a debugger</h4>
<p>We have enabled JSP hot-compile in the previous, now we need to configure Tomcat so that Eclipse can load new Java code into the JVM from within the Eclipse debugger.</p>
<p>For Linux, edit <em>&lt;TeamCityHome&gt;</em>/bin/teamcity-server.sh and insert the commands needed to start Tomcat with the debugger enabled. I added the TEAMCITY_DEBUG_OPTS variable, and then added it to the CATALINA_OPTS line.</p>
<pre>TEAMCITY_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

 CATALINA_OPTS="$CATALINA_OPTS $TEAMCITY_SERVER_OPTS $TEAMCITY_DEBUG_OPTS -server $TEAMCITY_SERVER_MEM_OPTS -Dlog4j.configuration=file:$BIN/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djava.awt.headless=true"</pre>
<p>For Windows, edit &lt;TeamCityHome&gt;\conf\teamcity-server.bat and insert the debug commands. I added the TEAMCITY_DEBUG_OPTS variable, and then added it to the CATALINA_OPTS line.</p>
<pre>:server_mem_opts_done
SET TEAMCITY_DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
SET CATALINA_OPTS=%TEAMCITY_SERVER_OPTS% %TEAMCITY_DEBUG_OPTS% -server %TEAMCITY_SERVER_MEM_OPTS_ACTUAL% -Dlog4j.configuration=file:../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/</pre>
<h4>Start Tomcat</h4>
<p>Stop Tomcat if it&#8217;s running and then start it by running &lt;TeamCityHome&gt;/bin/teamcity-server.sh start (or &lt;TeamCityHome&gt;\bin\teamcity-server.bat start on Windows).</p>
<p>Have a look in <em>&lt;TeamCityHome&gt;</em>/logs/catalina.out  There should be a line similar to the one below indicating that Tomcat is running with the debug port open.</p>
<pre>Listening for transport dt_socket at address: 8000</pre>
<h4><strong>Configure Eclipse</strong></h4>
<p>In Eclipse, create a new Debug Configuration (In the Java perspective, it&#8217;s under the Run menu).</p>
<p>Find Remote Java Application, and click the new button.  In the <strong>Connect</strong> tab, set:</p>
<ul>
<li>Connection Type: Standard Socket (Attach)</li>
<li>Connection Properties:
<ul>
<li>Host: localhost (assuming your TeamCity instance is on your local machine)</li>
<li>Port: 8000</li>
</ul>
</li>
</ul>
<p>In the <strong>Source</strong> tab, I added my Java source directory.</p>
<h4>Connect to Tomcat in Eclipse</h4>
<p>Run the new Debug Config, and change to the Debug perspective. A quote from the <a href="http://www.jetbrains.net/confluence/display/TCD4/Development+Environment">TeamCity dev page</a> is relevant here.</p>
<blockquote><p>if you do not change code affecting plugin initialization and change only body of the methods, you can attach to the server process with a debugger and hot-swap the code</p></blockquote>
<p>So if you change your registers or constructors, you need to restart Tomcat.</p>
<h4>Deploy your JSPs</h4>
<p>When TeamCity starts, it copies the JSPs from your plugin into <em>&lt;TeamCityHome&gt;</em>/webapps/ROOT/plugins/<em>&lt;YourPluginName&gt;</em>/</p>
<p>Therefore, you can copy updated JSPs to here. This might be best acheived with a simple ANT script.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=94&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2009/06/28/developing-for-teamcity-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>TeamCity WebHooks plugin beta available</title>
		<link>http://netwolfuk.wordpress.com/2009/06/22/teamcity-webhooks-plugin-beta-available/</link>
		<comments>http://netwolfuk.wordpress.com/2009/06/22/teamcity-webhooks-plugin-beta-available/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 16:33:28 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TeamCity]]></category>
		<category><![CDATA[WebHooks]]></category>
		<category><![CDATA[tcPlugins]]></category>
		<category><![CDATA[tcWebHooks]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=82</guid>
		<description><![CDATA[tcWebHooks - Trigger a WebHook POST from a build event in TeamCity<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=82&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Announcing a beta release (version 0.5.5.5) of a plugin for <a href="http://www.jetbrains.com/teamcity/">TeamCity</a> which enhances TeamCity to provide <a href="http://webhooks.pbworks.com/">WebHook</a> functionality. With the <a href="/teamcity-plugins">tcWebHooks plugin</a> installed, you can tell TeamCity to trigger a webhook POST request as build events occur.</p>
<p>WebHooks are configured on a project basis, and when events occur in the build process, a POST request is submitted to the URL. You can configure as many URLs as you like (within reason) and which events will trigger the request.</p>
<p>There is support for proxies in this version, and webhooks are configured in the TeamCity UI. There are a few outstanding items to tidy up, but the core functionality is working.</p>
<p>The project is on SourceForge at <a href="http://tcplugins.sourceforge.net/">tcplugins.sourceforge.net</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=82&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2009/06/22/teamcity-webhooks-plugin-beta-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
	</channel>
</rss>