看板java
标 题Re: [doc] ant常用task
发信站SayYA 资讯站 (Sun Apr 9 20:30:17 2006)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《[email protected] (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