<?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/"
	>

<channel>
	<title>_mindMeld &#187; Uncategorized</title>
	<atom:link href="http://www.mindmeld.ws/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mindmeld.ws/blog</link>
	<description>Les Stroud on Technology, Life, Liberty, and the Pursuit of Happiness</description>
	<lastBuildDate>Wed, 11 Aug 2010 23:19:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>GMaven Problems, back to maven-antrun-plugin</title>
		<link>http://www.mindmeld.ws/blog/2008/08/07/gmaven-problems-back-to-maven-antrun-plugin/</link>
		<comments>http://www.mindmeld.ws/blog/2008/08/07/gmaven-problems-back-to-maven-antrun-plugin/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 21:28:28 +0000</pubDate>
		<dc:creator>les</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mindmeld.ws/blog/?p=68</guid>
		<description><![CDATA[<p>I use gmaven to run groovy scripts in several of my builds.  In the last few weeks I started to have problems.  The errors were cryptic and taking far too long to track down.  Since nothing had changed in my project config, I decided to fall back to using ant to run the scripts.</p>
<p>So, in the interest of moving forward, I switched back to using maven-antrun-plugin.  I had moved away from this because it was difficult to find information about accessing project information from within the script.  For instance, I have some code generators.  I need the script to know the source dir.  Until now, I was not able to find out how to access that contextual information from within the script. It turns out, that there is a &#8220;binding&#8221; variable(type groovy.lang.Binding) automatically set on your object.  Here is a print of the data that was in the binding variable for this particular project:</p>
<pre class="brush: java">[&#34;project&#34;:org.apache.tools.ant.Project@b63a69, &#34;args&#34;:[], &#34;task&#34;:org.codehaus.groovy.ant.Groovy@1b4f82d, &#34;target&#34;:, &#34;properties&#34;:[&#34;ant.project.name&#34;:&#34;DummyProject&#34;, &#34;basedir&#34;:&#34;/home/username/development/code/blah/beip/trunk/gap/framework&#34;], &#34;ant&#34;:groovy.util.AntBuilder@11761b]
</pre>
<p>So, you can get the basedir within your script as follows:</p>
<pre class="brush: java">this.binding.getVariable(&#039;properties&#039;)[&#039;basedir&#039;]</pre>
<p>Here is the plugin config for reference:</p>
<pre class="brush: xml">
&#60;plugin&#62;
    &#60;artifactid&#62;maven-antrun-plugin&#60;/artifactid&#62;
    &#60;executions&#62;
            &#60;execution&#62;
                    &#60;id&#62;compile&#60;/id&#62;
                    &#60;phase&#62;generate-resources&#60;/phase&#62;
                    &#60;goals&#62;
                        &#60;goal&#62;run&#60;/goal&#62;
                    &#60;/goals&#62;
                    &#60;configuration&#62;
                        &#60;tasks&#62;
                            &#60;taskdef name=&#34;groovy&#34; classname=&#34;org.codehaus.groovy.ant.Groovy&#34; classpathref=&#34;maven.runtime.classpath&#34;&#62;&#60;/taskdef&#62;
                            &#60;groovy src=&#34;${basedir}/src/main/script/compressJs.groovy&#34; classpathref=&#34;maven.runtime.classpath&#34;/&#62;
                        &#60;/tasks&#62;
                    &#60;/configuration&#62;
                &#60;/execution&#62;
        &#60;/executions&#62;
&#60;/plugin&#62;</pre>
&#8230;]]></description>
		<wfw:commentRss>http://www.mindmeld.ws/blog/2008/08/07/gmaven-problems-back-to-maven-antrun-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting Idea: Bluetooth Rebroadcasting</title>
		<link>http://www.mindmeld.ws/blog/2004/06/18/interesting-idea-bluetooth-rebroadcasting/</link>
		<comments>http://www.mindmeld.ws/blog/2004/06/18/interesting-idea-bluetooth-rebroadcasting/#comments</comments>
		<pubDate>Fri, 18 Jun 2004 19:20:16 +0000</pubDate>
		<dc:creator>les</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.beeadvantage.net/wordpress/?p=28</guid>
		<description><![CDATA[<p>It would seem to be a great fit in the gaming (especially small gaming community) if you were to tie this in with some <a href="http://www.jini.org">Jini</a> or <a href="http://www.jxta.org">jxta</a> network surragates.  Then you would get an easy, device driven, dynamic gaming community.</p>
<blockquote>
<p align="center">
<img src="http://www.russellbeattie.com/notebook/images/bt.jpg"/>
</p>
<p>Have I mentioned my Bluetooth Rebroadcasting idea? I was in the bathroom this morning doing my business, playing FIFA 2004 on my N-Gage &#8220;Classic&#8221; and thinking to myself that it would be so great if I could play head-to-head against some of the other N-Gage owners that I know right then and there.</p>
<p>
The problem is that 1) I was in the bathroom at 8 in the morning and 2) everyone I know that owns an N-Gage &#8211; Ewan, Frank, JimH &#8211; all live in Europe. That&#8217;s when I remembered the inkling of an idea that I had months ago when I first bought my N-Gage: PC-based Bluetooth Rebroadcasting over TCP/IP. The idea is simple in theory. You and a friend run an application on your Bluetooth-enabled PC that streams the data received over Bluetooth from your N-Gage to a friend&#8217;s computer which passes it on to their N-Gage, and vice versa. </p>
<p>
Now, I&#8217;m sure there&#8217;s a million details in the implementation. Is the&#8230;</p></blockquote>]]></description>
		<wfw:commentRss>http://www.mindmeld.ws/blog/2004/06/18/interesting-idea-bluetooth-rebroadcasting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
