<?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>The Leprechaun Works, LLC &#187; netbeans</title>
	<atom:link href="http://www.leprechaunworks.com/content/tag/netbeans/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leprechaunworks.com/content</link>
	<description>Useable technology</description>
	<lastBuildDate>Mon, 31 Jan 2011 13:00:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Updating Netbeans installations</title>
		<link>http://www.leprechaunworks.com/content/2009/12/09/updating-netbeans-installations/</link>
		<comments>http://www.leprechaunworks.com/content/2009/12/09/updating-netbeans-installations/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 14:42:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.leprechaunworks.com/content/?p=220</guid>
		<description><![CDATA[We love Netbeans but like many Open Source projects, they release new versions on a regular basis. The community is also very active in fixing bugs. You can report bugs and download a nightly build as soon as the problem is fixed. Each download always installed into its own directory. In the beginning this bothered us because we would end up with many versions of the application installed on our system. In the end, this is in fact a very good thing.]]></description>
			<content:encoded><![CDATA[<p><div class="adSquare"><script type="text/javascript"><!--
                google_ad_client = "pub-8377860022408081";
                /* button for images */
                google_ad_slot = "6390324464";
                google_ad_width = 300;
                google_ad_height = 250;
                //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script></div> <div class="rounded">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/tutorials/untitled-1.jpg" title="Different download options highlighted" class="shutterset_singlepic53" >
    <img class="ngg-singlepic" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/53__320x240_untitled-1.jpg" alt="Netbeans web site" title="Netbeans web site" />
</a>
<div class="flickrCaption"><span>Different download options highlighted</span></div>
</div>
 We love Netbeans but like many Open Source projects, they release new versions on a regular basis. The community is also very active in fixing bugs. You can report bugs and download a nightly build as soon as the problem is fixed. Each download always installed into its own directory. In the beginning this bothered us because we would end up with many versions of the application installed on our system. In the end, this is in fact a very good thing.</p>
<p>By having multiple versions installed in different directories, you can use any of them and know that they are isolated from each other. So, you can go grab that nightly build and know that it isn&#8217;t going to break your stable development platform. Furthermore, if you follow a couple of simple steps, the platform will also update its plugins.</p>
<p>If you want to try a new build, simply download it and install it. After this, just start the application. The application will then detect and ask if you want to import settings from a previous version. Once the application fully opens, it will then look at any installed plugins from previous versions and ask if you want to import them. It will also warn you if an older plugin isn&#8217;t compatible with the new build.</p>
<p>So, in the end all you really need to do is run the new build before you uninstall any previous builds. Eventually, you will need to uninstall old builds, but there really isn&#8217;t any rush since they are isolated.</p>
<p>Have fun and go grab the newest build of <a href="http://netbeans.org/downloads/">Netbeans</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leprechaunworks.com/content/2009/12/09/updating-netbeans-installations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetBeans and Ant, a great combination</title>
		<link>http://www.leprechaunworks.com/content/2009/11/16/netbeans-and-ant-a-great-combination/</link>
		<comments>http://www.leprechaunworks.com/content/2009/11/16/netbeans-and-ant-a-great-combination/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 12:00:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.leprechaunworks.com/content/?p=170</guid>
		<description><![CDATA[We love NetBeans! It neatly fills our needs for developing php applications. It does seem to have some minor annoyances, but at least one of them can easily be overcome by using Ant. NetBeans with php allows you to designate a local web server for testing. The IDE automatically will copy files to the web server... well, most of the time. Sometimes, for whatever reason, NetBeans, doesn't know if it needs to copy files. ]]></description>
			<content:encoded><![CDATA[<div class="step"><div class="adSquare"><script type="text/javascript"><!--
                google_ad_client = "pub-8377860022408081";
                /* button for images */
                google_ad_slot = "6390324464";
                google_ad_width = 300;
                google_ad_height = 250;
                //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script></div>We love NetBeans! It neatly fills our needs for developing php applications. It does seem to have some minor annoyances, but at least one of them can easily be overcome by using Ant. NetBeans with php allows you to designate a local web server for testing. The IDE automatically will copy files to the web server&#8230; well, most of the time. Sometimes, for whatever reason, NetBeans, doesn&#8217;t know if it needs to copy files. This often happens with our image files. It always will copy a file if you modify it, but this doesn&#8217;t work very well for files like images that aren&#8217;t normally modified in the IDE. Furthermore, it is annoying as mentioned earlier. You can update your files quickly by building a simple Ant script to copy your local files to your web server or another location.</p>
<p>For this tutorial, we will assume that you know about NetBeans, and how to create a new project. We are planning a couple of tutorials on using NetBeans for WordPress development in the future. These will cover more basics of using NetBeans.</p>
<p>If you would like to try NetBeans, go to <a href="http://netbeans.org/">http://netbeans.org/</a> to download the newest version. They have many different configurations depending on what your needs are. We use the php version.
<div class="stepClear"></div>
</div>
<div class="step">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/netbeans-ant/tools.png" title="" class="shutterset_singlepic50" >
	<img class="ngg-singlepic ngg-right" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/50__320x240_tools.png" alt="tools" title="tools" />
</a>
On top of what comes in the php version of NetBeans, you will need to add the Ant plugin. The plugins dialog is located under the tools menu.
<div class="stepClear"></div>
</div>
<div class="step">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/netbeans-ant/plugins.png" title="" class="shutterset_singlepic48" >
	<img class="ngg-singlepic ngg-right" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/48__320x240_plugins.png" alt="plugins" title="plugins" />
</a>
Next, click on the available plugins tab. If you click on the name column head, the plugins will sort alphabetically putting Ant at the top. Simply check the checkbox next to Ant and click the Install button at the bottom of the dialog. That&#8217;s it.
<div class="stepClear"></div>
</div>
<div class="step">So, how do you use this? NetBeans will automatically recognize any Ant build file. So all we have to do, is create an Ant build file. The default build file is usually named build.xml.</p>
<p>Simply, create a new empty file named build.xml and add the following code.</p>
<div class="dean_ch" style="white-space: nowrap;">
<span class="sc3"><span class="re1">&lt;project</span> <span class="re0">name</span>=<span class="st0">&quot;Netbeans push&quot;</span> <span class="re0">default</span>=<span class="st0">&quot;copyLocal&quot;</span> <span class="re0">basedir</span>=<span class="st0">&quot;.&quot;</span><span class="re2">&gt;</span></span><br />
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;description<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; pushes files to local web server<br />
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/description<span class="re2">&gt;</span></span></span></p>
<p>&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;property</span> <span class="re0">name</span>=<span class="st0">&quot;local.web&quot;</span> <span class="re0">location</span>=<span class="st0">&quot;C:\xampplite\htdocs&quot;</span> <span class="re2">/&gt;</span></span></p>
<p>&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;target</span> <span class="re0">name</span>=<span class="st0">&quot;copyLocal&quot;</span> <span class="re0">description</span>=<span class="st0">&quot;Copy site locally for testing&quot;</span><span class="re2">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;copy</span> <span class="re0">todir</span>=<span class="st0">&quot;${local.web}\testing&quot;</span><span class="re2">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;fileset</span> <span class="re0">dir</span>=<span class="st0">&quot;${basedir}&quot;</span><span class="re2">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;exclude</span> <span class="re0">name</span>=<span class="st0">&quot;**\.svn\**&quot;</span><span class="re2">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;exclude</span> <span class="re0">name</span>=<span class="st0">&quot;**\nbproject\**&quot;</span><span class="re2">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/fileset<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/copy<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/target<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;/project<span class="re2">&gt;</span></span></span><br />
&nbsp;</div>
<div class="stepClear"></div>
</div>
<div class="step">
<ul> A quick review of the file.</p>
<li> It simply starts with project, everything except for the name is optional. The default attribute names the default target. Basedir simply defines a property for a basedir that can be used later.</li>
<li> The description should be self-explanatory.</li>
<li>The property statement allows us to create a variable that we can use repeatedly in our code. Obviously, in this example, it actually adds typing, but you can imagine the time savings if you have a large build file with multiple targets.</li>
<li>The target is the meat of the file. This is what gets called when the build file runs. Targets can even depend on other targets.<br />
The name must be unique within the file.<br />
The copy line inside of the target is called a task. There are many ways to write almost all tasks. In this case, we are simply saying that we want to copy everything in our base directory to our local web server. As you can see, we can put any property inside of ${ } to use it within attributes. Additionally in this example, we have added a couple of exclude statements that are common in our work. The first ignores any Subversion files. Since we use Subversion as our Versioning system, it isn&#8217;t necessary to copy these to our local web server. The second ignores all of the Netbeans project files. You may or may not have your project files with the projects.</li>
</ul>
<div class="stepClear"></div>
</div>
<div class="step">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/netbeans-ant/runtarget.png" title="" class="shutterset_singlepic49" >
	<img class="ngg-singlepic ngg-right" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/49__320x240_runtarget.png" alt="runtarget" title="runtarget" />
</a>
All that&#8217;s left is to use the file. In Netbeans, you can access the targets in multiple ways. The most common access points for us, is to right click on the file itself in the project window and click run target.
<div class="stepClear"></div>
</div>
<div class="step">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/netbeans-ant/navigator.png" title="" class="shutterset_singlepic46" >
	<img class="ngg-singlepic ngg-right" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/46__320x240_navigator.png" alt="navigator" title="navigator" />
</a>
You can also view targets inside of the navigator window. Right clicking on the target you want to run, and selecting run is all there is to it.
<div class="stepClear"></div>
</div>
<div class="step">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/netbeans-ant/output.png" title="" class="shutterset_singlepic47" >
	<img class="ngg-singlepic ngg-right" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/47__320x240_output.png" alt="output" title="output" />
</a>
You should see the results in your output window. This will also display any errors in your build file if you run into problems.
<div class="stepClear"></div>
</div>
<div class="step">For more information on Ant, visit <a href="http://ant.apache.org/">http://ant.apache.org/</a></p>
<p>As a final note, it is likely that Netbeans is caching information regarding the modification times of the files to accomplish its copy to server functionality. In our experience, we have not seen any problems, but you should proceed with caution.
<div class="stepClear"></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.leprechaunworks.com/content/2009/11/16/netbeans-and-ant-a-great-combination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

