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 8559] New: - Add <fileset> to <arg>, add a new task ex. <directoryfinder>
Date Fri, 26 Apr 2002 14:05:20 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: benjachi@yahoo.com


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message