<?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>O!Hacker Blog &#187; ant</title>
	<atom:link href="http://ohacker.com/tag/ant/feed/" rel="self" type="application/rss+xml" />
	<link>http://ohacker.com</link>
	<description>anything to hack</description>
	<lastBuildDate>Thu, 12 Aug 2010 05:17:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>用perl脚本解决ant&#8230;非法字符:\65279&#8230;的问题</title>
		<link>http://ohacker.com/2010/02/21/perl-ant-65279/</link>
		<comments>http://ohacker.com/2010/02/21/perl-ant-65279/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 10:41:07 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[ant]]></category>

		<guid isPermaLink="false">http://ohacker.com/?p=287</guid>
		<description><![CDATA[用perl脚本解决ant&#8230;非法字符:\65279&#8230;的问题 用ant管理项目，编译时发现有些utf8编码的java文件无法编译,报错是&#8230;非法字符:\65279&#8230;。 在网上查N多与ant有关的文章，但是大多数的解决方案都不是很理想。因为文件比较多，而且我的 机器上也没有装editplus。 索性自己用perl写了一个脚本 如下： #remove the utf-8 BOM for Ant sub remove_bom &#123; #open( my $in, &#34;+&#60;&#34;, &#34;src/com/umpay/wap20/mobileProxy/MobileProxy.java&#34; ); foreach my $filename &#40;@_&#41; &#123; print $filename,&#34;\n&#34;; open&#40; my $in, &#34;+&#60;&#34;, $filename &#41;; @lines = &#60;$in&#62;; $line1 = $lines&#91;0&#93;; $t_chk1 = substr&#40; $line1, 0, 1 &#41;; #0xef -&#62; 239 $t_chk2 = substr&#40; $line1, 1, [...]]]></description>
		<wfw:commentRss>http://ohacker.com/2010/02/21/perl-ant-65279/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ant 小记</title>
		<link>http://ohacker.com/2010/02/19/ant-path-fileset/</link>
		<comments>http://ohacker.com/2010/02/19/ant-path-fileset/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 14:09:35 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[ant]]></category>

		<guid isPermaLink="false">http://ohacker.com/?p=272</guid>
		<description><![CDATA[传统的ant 打包的项目需要处理文件和路径。特别是烦人的classpath。Ant内置了很多处理文件和路径的数据类型。比如fileset和path]]></description>
		<wfw:commentRss>http://ohacker.com/2010/02/19/ant-path-fileset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ant随笔&#8211;path and fileset</title>
		<link>http://ohacker.com/2009/08/02/ant-datatype-and-properties/</link>
		<comments>http://ohacker.com/2009/08/02/ant-datatype-and-properties/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 02:04:17 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[ant]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=45</guid>
		<description><![CDATA[&#60;fileset id=&#34;sourec.fileset&#34; dir=&#34;src&#34; includes=&#34;**/*.java&#34;/&#62; &#160; &#60;!--在fileset中设置id属性。在其他datatype中可能需要refid属性，这个refid就是fileset中的id，比如--&#62; &#60;copy todir=&#34;backup&#34;&#62; &#60;fileset refid=&#34;source.fileset&#34;/&#62; &#60;/copy&#62; 其他常用的还有property,path,mkdir,target,javac,classpath 例如： &#60;property name=&#34;build.classes.dir&#34; location=&#34;build/classes&#34;/&#62; &#60;path id=&#34;compile.classpath&#34;&#62; &#60;pathelement location=&#34;lib/junit.jar&#34;/&#62; &#60;/path&#62; &#60;mkdir dir=&#34;${build.classes.dir}&#34;/&#62; &#60;target name=&#34;compile&#34;&#62; &#60;javac destdir=&#34;${build.classes.dir}&#34; debug=&#34;true&#34; srcdir=&#34;src&#34;&#62; &#60;classpath refid=&#34;compile.classpath&#34;/&#62; &#60;/javac&#62; &#60;/target&#62; path:包含一系列有序元素，这些元素可以使文件地址，也可以是路径。既可以使用classpath标签，也可以使用path标签 比如： &#60;path&#62; &#60;pathelement location=&#34;lib/junit.jar&#34;/&#62; &#60;/path&#62; &#60;path&#62; &#60;pathelement path=&#34;build/classes;lib/junit.jar&#34;/&#62; &#60;/path&#62; &#60;path location=&#34;lib/junit.jar&#34;/&#62;&#60;!--这是单个文件--&#62; &#60;path path=&#34;build/classes:lib/junit.jar&#34;/&#62;&#60;!--这是多文件--&#62; 当然path也可以使用我们刚刚看到的fileset标签： &#60;path&#62; &#60;fileset dir='lib&#34;&#62; &#60;include name=&#34;*.jar&#34;/&#62; &#60;/fileset&#62; &#60;/path&#62; [...]]]></description>
		<wfw:commentRss>http://ohacker.com/2009/08/02/ant-datatype-and-properties/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
