DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8559>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8559 Add <fileset> to <arg>, add a new task ex. <directoryfinder> Summary: Add <fileset> to <arg>, add a new task ex. <directoryfinder> Product: Ant Version: 1.5 alpha (nightly) Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] It would be usefull to add <fileset> to <arg>, I see a case where you would use this feature. For example if you like to pass all the files with **/*.java or **/*.sqlj to the argument for execution you would use something like this (See last section): ----------------------------------------------------- <java classname="sqlj.tools.Sqlj"> <arg value="-linemap=0"/> <arg value="-user="/> <arg value="-status=1"/> <arg value="-compile=0"/> <arg value="-explain=1"/> <arg value="-warn=all"/> <arg value="-d=${build.temp.translated_sqlj}"/> <arg value="-dir=${build.temp.translated_sqlj}"/> <arg> <fileset dir="${cc.src}" casesensitive="yes" > <patternset> <include name="**/*.sqlj"/> <include name="**/*.java"/> </patternset> </fileset> </arg> </java> ----------------------------------- Another feature to add is a directory finder tag that works with <arg> for finding directories that contains certain files such as **/*.sqlj or **/*.java and include the path directory plus the "*.java" or "*.sqlj" (Just the wildcard "*.java", not replacing "*" with the actual file names). See example: -------------------------------------- My src/com/sun/tools/ directory has java files. The new directory finder tag would add "src/com/sun/tools/*.java" to the command line argument. If the directory doesn't have *.java files then it'll be excluded. Let's make adding "*.java" an optional argrument to the <directoryfinder>. here's an example: <arg> <directoryfinder appendExtension="yes"> <include name="**/*.sqlj"/> <include name="**/*.java"/> </directoryfinder> <arg> The result for the arg would look something like this: All results are in one line and seperated by space, we should customize the delimeters. e.x. "src/com/sun/tools/*.java src/com/sun/tools/ext/*.sqlj ..." -------------------------------------- - Benjamin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
