<?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>Acts Media &#187; eclipse</title>
	<atom:link href="http://blog.actsmedia.com/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.actsmedia.com</link>
	<description>Acts Media specializes in Wed Design, Web Development, and Flash/Flex Authoring</description>
	<lastBuildDate>Thu, 27 Jan 2011 16:15:18 +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>MySQL Ant Task</title>
		<link>http://blog.actsmedia.com/2009/09/mysql-ant-task/</link>
		<comments>http://blog.actsmedia.com/2009/09/mysql-ant-task/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 21:23:17 +0000</pubDate>
		<dc:creator>Bryn Knatterud</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.actsmedia.com/?p=115</guid>
		<description><![CDATA[I recently wanted to be able to automate a mysqldump statement from Eclipse using Apache Ant. I&#8217;m guessing this code could be cleaned up some to better handle the command line arguments, so if somebody can let me know how it can be cleaned up I&#8217;m all ears. However, this worked so I went with [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to be able to automate a mysqldump statement from Eclipse using Apache Ant. I&#8217;m guessing this code could be cleaned up some to better handle the command line arguments, so if somebody can let me know how it can be cleaned up I&#8217;m all ears. However, this worked so I went with it.</p>
<p>Also, I created a ZIP archive of the resulting dump statement.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;local_database_host&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;localhost&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;local_database_username&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;root&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;local_database_password&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;local_database_name&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;bzftp_beta&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;backup_directory&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;C:/Databases/&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;backup_file&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;bzftp_beta&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;createDBArchive&quot;</span> <span style="color: #000066;">description</span>=<span style="color: #ff0000;">&quot;--&gt;</span></span>&gt; Create database dump archive file&quot;&gt;
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;C:/xampp/mysql/bin/mysqldump.exe&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">'-u &quot;${local_database_username}&quot; -r &quot;${backup_directory}${backup_file}.sql&quot; ${local_database_name} jos_categories jos_sections jos_content jos_content_frontpage jos_content_rating jos_components jos_menu jos_modules jos_templates_menu'</span>  <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;zip</span> <span style="color: #000066;">destfile</span>=<span style="color: #ff0000;">&quot;${backup_directory}${backup_file}.sql.zip&quot;</span> <span style="color: #000066;">update</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${backup_directory}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;${backup_file}.sql&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/zip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.actsmedia.com/2009/09/mysql-ant-task/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

