ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kendall Collett" <kcoll...@convio.com>
Subject does <apply> do the xargs thing?
Date Fri, 21 Jun 2002 21:57:05 GMT
I have the following <apply> target:

  <target name="etags2" depends="etags.clean">
    <apply executable="etags" dir="${source.dir}"
           relative="true" parallel="true">
      <arg value="-a"/>
      <arg value="-o"/>
      <arg file="${etags.filename}"/>
      <fileset dir="${source.dir}"
               includes="**/*.java"/>
    </apply>
  </target>

When I try to run this against all the .java files in our source base, I get
this error:

    [apply] c: No such file or directory

Through experimentation, I've found that if I change the "includes"
specification so that fewer .java files are matched, then the target
succeeds.

This makes me suspect that the implementation of <apply> isn't doing the
xargs thing where the system limits on number of command arguments etc. is
taken into account.  (Is there even a way to do this portably w/in Java?)

Kendall

PS: I can work around the issue by changing "parallel" to false, but I was
kind of hoping for a fast solution that doesn't rely on an <exec> with the
equivalent "find | xargs" command.




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message