<?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>Hanury.NET &#187; ant</title>
	<atom:link href="http://hanury.net/wp/tag/ant/feed" rel="self" type="application/rss+xml" />
	<link>http://hanury.net/wp</link>
	<description>하늘이, 형거니, 규영이 홈피입니다.</description>
	<lastBuildDate>Mon, 21 May 2012 05:15:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>iPhone의 pushme.to 와 ant의 만남.</title>
		<link>http://hanury.net/wp/archives/1869</link>
		<comments>http://hanury.net/wp/archives/1869#comments</comments>
		<pubDate>Tue, 29 Dec 2009 12:53:36 +0000</pubDate>
		<dc:creator>alexken</dc:creator>
				<category><![CDATA[기술]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[pushme.to]]></category>

		<guid isPermaLink="false">http://hanury.net/wp/?p=1869</guid>
		<description><![CDATA[iPhone의 What&#8217;s Apps로 iPhone 유저끼리는 장소를 초월한 무제한 채팅을 즐기고 있다. 비슷해 보이지만, pushme.to란 어플은, 아이폰 사용여부와 상관없이 나에게 노티를 날릴 수 있다. 심지어는 오른쪽 밑에 보면 pushme.to를 붙여놨다. 즉 [...]]]></description>
			<content:encoded><![CDATA[<p>iPhone의 What&#8217;s Apps로 iPhone 유저끼리는 장소를 초월한 무제한 채팅을 즐기고 있다.<br />
비슷해 보이지만, pushme.to란 어플은, 아이폰 사용여부와 상관없이 나에게 노티를 날릴 수 있다.</p>
<p><del datetime="2011-04-11T17:33:55+00:00">심지어는 오른쪽 밑에 보면 pushme.to를 붙여놨다.</del></p>
<p>즉 저기가 글을 작성하고 버튼을 누르면, 나한테 문자가 도착한다는 얘기.</p>
<p>pushme.to는 기타 여러가지로 사용하기 쉬운게 HTTP POST로 날리면 되기 때문에<br />
curl이 깔린 Unix/Mac terminal이라면</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:680px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$curl -d &quot;message=MESSAGE&amp;signature=SIGNATURE&quot; http://pushme.to/id/</div></div>
<p>라고만 타이핑 해도 문자(노티)가 날라간다.<br />
주의 사항 : id 뒤에 / 를 꼭 붙여줘야 함, character encoding은 반드시 utf-8로만 해야함.</p>
<p>회사에 ant로 만든 20분짜리 빌드가 하나 있는데, 빌드가 완료되면 핸드폰(iPhone)으로 문자(노티,푸시)를 주면 어떨까해서, 찾아보았다.<br />
ant 기본 task에는 HTTP POST가 없고 antcontrib에 있기때문에 작성하면 다음과 같다.</p>
<div class="codecolorer-container xml vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:680px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!-- antcontrib를 사용하기 위해서 앞 부분에 선언... --&gt;</span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">resource</span>=<span style="color: #ff0000;">&quot;net/sf/antcontrib/antcontrib.properties&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pathelement</span> <span style="color: #000066;">location</span>=<span style="color: #ff0000;">&quot;/usr/share/java/lib/ant-contrib-0.3.jar&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/taskdef<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<br />
<span style="color: #808080; font-style: italic;">&lt;!-- build task 마지막 쯤에... --&gt;</span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;post</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;http://pushme.to/id/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prop</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;message&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;빌드 완료&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prop</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;signature&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;나의 프로젝트&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/post<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>이렇게 하면 빌드가 완료되면 iPhone으로 완료 문자 통지가 됨.</p>
]]></content:encoded>
			<wfw:commentRss>http://hanury.net/wp/archives/1869/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

