Re: [doc] ant常用task

看板java作者時間19年前 (2006/04/09 21:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《Oreilly.bbs@ptt.cc (Vendetta 我心無所懼)》之銘言: > 已經習慣在寫web application時 > 把java class加上套件 > <javac srcdir="${src}" destdir="${build}"> > <include name="**/*.java" /> > ^^^^^^^^^^^ > <classpath refid="classpath" /> > </javac> > ======================================================== > <include name="**/*.java" /> 這樣寫就可以將src底下的不同套件的java作編譯 > p.s:我今天寫class沒有加套件 jsp中直接import該class > 結果不行 > < 謝感分享啊^^ 又學了一招 本來想javac有include可以用嗎? 發現我當初在看的時候只看到黑體字的部分 原來上面還有一小段寫隱含了fileset ^^ 所以可以直接寫include <% Parameters specified as nested elements This task forms an implicit FileSet and supports all attributes of <fileset> (dir becomes srcdir) as well as the nested <include>, <exclude> and <patternset> elements. src, classpath, sourcepath, bootclasspath and extdirs %> -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: 163.26.34.20
文章代碼(AID): #14EGMH00 (java)
文章代碼(AID): #14EGMH00 (java)