Re: [doc] ant常用task
※ 引述《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
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):
java 近期熱門文章
PTT數位生活區 即時熱門文章
13
23