ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [DO NOT REPLY: Bug 3189] New: <depend> task documentation should mention supported nested elements
Date Mon, 20 Aug 2001 21:24:52 GMT
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3189

*** shadow/3189	Mon Aug 20 14:24:52 2001
--- shadow/3189.tmp.24999	Mon Aug 20 14:24:52 2001
***************
*** 0 ****
--- 1,41 ----
+ +============================================================================+
+ | <depend> task documentation should mention supported nested elements       |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3189                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.4Beta1                |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: Optional Tasks          |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: mwomack@bevocal.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ From looking at the 1.4b1 documentation and source code, I think the <depend> 
+ task documentation should mention that it supports nested <include>, <exclude>,

+ and <patternset> elements, just like the <javac> task.  Since Depend.java 
+ extends from MatchingTask.java, this comes for free and is useful to check the 
+ dependencies on the same set of files fed to the <javac> task.  I tried it in 
+ my build file, and it seems to work as expected.
+ 
+ The relevant bit from the <javac> documentation:
+ 
+ -------
+ 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.
+ -------
+ 
+ And an example of usage:
+ 
+ <depend srcdir="${build.java}" destdir="${build.classes}"
+         cache="${build.java}/dependencies" closure="false">
+   <patternset>
+     <include name="**/*.java" />
+     <excludesfile name="${build.java}/build_excludes" />
+   </patternset>
+ </depend>

Mime
View raw message