<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Boilerplate Build mit FTP deploy	</title>
	<atom:link href="https://nerdpress.org/2011/09/13/boilerplate-build-mit-ftp-deploy/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org/2011/09/13/boilerplate-build-mit-ftp-deploy/</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Tue, 13 Sep 2011 17:43:08 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Max Girkens		</title>
		<link>https://nerdpress.org/2011/09/13/boilerplate-build-mit-ftp-deploy/#comment-590</link>

		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Tue, 13 Sep 2011 17:43:08 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1652#comment-590</guid>

					<description><![CDATA[&lt;p&gt;yeah, we&#039;re working on it, but writing in english takes us some time :)
but i tried to translate ivos post - here you go:
&lt;/p&gt;


I took a closer look at the &lt;a href=&quot;http://html5boilerplate.com/&quot; rel=&quot;nofollow&quot;&gt;html5 boilerplate&lt;/a&gt; lately.
It optimizes Images, concats and compresses anything with a little help from the YUI compressor.
What it doesn&#039;t do yet is deploying stuff - but you can teach it ;)

Well let&#039;s try it. 
This &lt;a href=&quot;http://net.tutsplus.com/tutorials/html-css-techniques/automated-optimization-with-html5-boilerplate-build/&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt; does decribe quite good what is possible

I&#039;m using ant 1.8.0, so let&#039;s do as adviced:
&lt;blockquote&gt;All features of the build script require Ant version 1.8.2. Please upgrade to 1.8.2 or remove all instances of &#039;overwrite=no&#039; (and this fail task) from the build script to continue&lt;/blockquote&gt;

Remove all overwrit attributes and the test task:

[code lang=&quot;html&quot;]
 &#060;fail message=&#034;All features of the build script require Ant version 1.8.2. Please upgrade to 1.8.2 or remove all instances of &#039;overwrite=no&#039; (and this fail task) from the build script to continue&#034;&#062;
        &#060;condition&#062;
            &#060;not&#062;
                &#060;contains string=&#034;${ant.version}&#034; substring=&#034;1.8.2&#034;/&#062;
            &#060;/not&#062;
        &#060;/condition&#062;
 &#060;/fail&#062;
[/code]


then try:

[code lang=&quot;shell&quot;]
cd build
ant
[/code]

It works! in &quot;publish&quot; you&#039;ll find the optimized web project.

Clear the buffer folder afterwards. Which is not necessary but is quite fun.

[code lang=&quot;shell&quot;]ant clean[/code]

To enable image optimization, one has to install the libs:


[code lang=&quot;shell&quot;]sudo apt-get install libjpeg-progs optipng[/code]

hint:

if you&#039;re using additional javascript libs, which you don&#039;t want to be concated,
don&#039;t put them in between those comments:

[code lang=&quot;html&quot;]
 &#060;!-- scripts concatenated and minified via ant build script--&#062;
 &#060;!-- end scripts--&#062;
[/code]

To carry things to the extreme let&#039;s run the full minify:

[code lang=&quot;shell&quot;]ant minify[/code]

It also compresses the markup

clean up:

[code lang=&quot;shell&quot;]ant clean[/code]

Now i want to upload the publish folder:
I wanna use FTP via ant, so install dependencies first.
(see my &lt;a href=&quot;https://nerdpress.org/2011/07/29/install-ant-ftp-task-on-ubuntu/&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt; on how to do that)

you&#039;ll also have to add the FTP properties in config/project.properties:

[code lang=&quot;shell&quot;]
 #FTP deploy
 tool.ftp.host = host
 tool.ftp.user = user
 tool.ftp.password = password
 tool.ftp.remotedir = httpdocs
[/code]

if you got the boilerplate dev version directly from &lt;a href=&quot;https://github.com/paulirish/html5-boilerplate&quot; rel=&quot;nofollow&quot;&gt;github&lt;/a&gt;,
you&#039;ll have the possibility to create a project.xml file with your own targets in it.
If you&#039;re using the latest stable build you&#039;ll have to put the task in the build.xml

The FTP task itself is pretty simple:

[code lang=&quot;html&quot;]
&#060;target name=&#034;ftpupload&#034; description=&#034;uploads the publish folder to your web space via ftp&#034;&#062;
	&#060;ftp server=&#034;${tool.ftp.host}&#034; userid=&#034;${tool.ftp.user}&#034; password=&#034;${tool.ftp.password}&#034; timediffauto=&#034;false&#034; remotedir=&#034;${tool.ftp.remotedir}&#034; action=&#034;send&#034; verbose=&#034;yes&#034; passive=&#034;yes&#034; depends=&#034;yes&#034;&#062;
            &#060;fileset dir=&#034;${dir.publish}&#034;&#062;
            &#060;/fileset&#062;
        &#060;/ftp&#062;
&#060;/target&#062;
[/code]

and upload it:

[code lang=&quot;shell&quot;]ant ftpupload[/code]

so it&#039;s those commands:

[code lang=&quot;shell&quot;]
 ant minify
 ant ftpupload
 ant clean
[/code]]]></description>
			<content:encoded><![CDATA[<p>yeah, we&#8217;re working on it, but writing in english takes us some time :)<br />
but i tried to translate ivos post &#8211; here you go:
</p>
<p>I took a closer look at the <a href="http://html5boilerplate.com/" rel="nofollow">html5 boilerplate</a> lately.<br />
It optimizes Images, concats and compresses anything with a little help from the YUI compressor.<br />
What it doesn&#8217;t do yet is deploying stuff &#8211; but you can teach it ;)</p>
<p>Well let&#8217;s try it.<br />
This <a href="http://net.tutsplus.com/tutorials/html-css-techniques/automated-optimization-with-html5-boilerplate-build/" rel="nofollow">post</a> does decribe quite good what is possible</p>
<p>I&#8217;m using ant 1.8.0, so let&#8217;s do as adviced:</p>
<blockquote><p>All features of the build script require Ant version 1.8.2. Please upgrade to 1.8.2 or remove all instances of &#8216;overwrite=no&#8217; (and this fail task) from the build script to continue</p></blockquote>
<p>Remove all overwrit attributes and the test task:</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;fail message=&quot;All features of the build script require Ant version 1.8.2. Please upgrade to 1.8.2 or remove all instances of 'overwrite=no' (and this fail task) from the build script to continue&quot;&gt;
        &lt;condition&gt;
            &lt;not&gt;
                &lt;contains string=&quot;${ant.version}&quot; substring=&quot;1.8.2&quot;/&gt;
            &lt;/not&gt;
        &lt;/condition&gt;
 &lt;/fail&gt;
</pre>
<p>then try:</p>
<pre class="brush: bash; title: ; notranslate">
cd build
ant
</pre>
<p>It works! in &#8220;publish&#8221; you&#8217;ll find the optimized web project.</p>
<p>Clear the buffer folder afterwards. Which is not necessary but is quite fun.</p>
<pre class="brush: bash; title: ; notranslate">ant clean</pre>
<p>To enable image optimization, one has to install the libs:</p>
<pre class="brush: bash; title: ; notranslate">sudo apt-get install libjpeg-progs optipng</pre>
<p>hint:</p>
<p>if you&#8217;re using additional javascript libs, which you don&#8217;t want to be concated,<br />
don&#8217;t put them in between those comments:</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;!-- scripts concatenated and minified via ant build script--&gt;
 &lt;!-- end scripts--&gt;
</pre>
<p>To carry things to the extreme let&#8217;s run the full minify:</p>
<pre class="brush: bash; title: ; notranslate">ant minify</pre>
<p>It also compresses the markup</p>
<p>clean up:</p>
<pre class="brush: bash; title: ; notranslate">ant clean</pre>
<p>Now i want to upload the publish folder:<br />
I wanna use FTP via ant, so install dependencies first.<br />
(see my <a href="https://nerdpress.org/2011/07/29/install-ant-ftp-task-on-ubuntu/" rel="nofollow">post</a> on how to do that)</p>
<p>you&#8217;ll also have to add the FTP properties in config/project.properties:</p>
<pre class="brush: bash; title: ; notranslate">
 #FTP deploy
 tool.ftp.host = host
 tool.ftp.user = user
 tool.ftp.password = password
 tool.ftp.remotedir = httpdocs
</pre>
<p>if you got the boilerplate dev version directly from <a href="https://github.com/paulirish/html5-boilerplate" rel="nofollow">github</a>,<br />
you&#8217;ll have the possibility to create a project.xml file with your own targets in it.<br />
If you&#8217;re using the latest stable build you&#8217;ll have to put the task in the build.xml</p>
<p>The FTP task itself is pretty simple:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;target name=&quot;ftpupload&quot; description=&quot;uploads the publish folder to your web space via ftp&quot;&gt;
	&lt;ftp server=&quot;${tool.ftp.host}&quot; userid=&quot;${tool.ftp.user}&quot; password=&quot;${tool.ftp.password}&quot; timediffauto=&quot;false&quot; remotedir=&quot;${tool.ftp.remotedir}&quot; action=&quot;send&quot; verbose=&quot;yes&quot; passive=&quot;yes&quot; depends=&quot;yes&quot;&gt;
            &lt;fileset dir=&quot;${dir.publish}&quot;&gt;
            &lt;/fileset&gt;
        &lt;/ftp&gt;
&lt;/target&gt;
</pre>
<p>and upload it:</p>
<pre class="brush: bash; title: ; notranslate">ant ftpupload</pre>
<p>so it&#8217;s those commands:</p>
<pre class="brush: bash; title: ; notranslate">
 ant minify
 ant ftpupload
 ant clean
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: cordoval		</title>
		<link>https://nerdpress.org/2011/09/13/boilerplate-build-mit-ftp-deploy/#comment-583</link>

		<dc:creator><![CDATA[cordoval]]></dc:creator>
		<pubDate>Tue, 13 Sep 2011 14:01:57 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1652#comment-583</guid>

					<description><![CDATA[it would be great if you write in english, google translator is not doing the best job translating this. thanks.]]></description>
			<content:encoded><![CDATA[<p>it would be great if you write in english, google translator is not doing the best job translating this. thanks.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
