I am using subant like this:

<target name="subant">
  <mkdir dir="${outdir}"/>
  <subant genericantfile="./VCCMake.xml"
          verbose="true"
          target="compile">
    <fileset dir="." includes="**/makefile.mak"/>
  </subant>
</target>

When I run it with -v I get:

subant:
   [subant] calling target(s) [compile] in build file
K:\BuildDir\WebHeatmaps\Server\SeverEventLogging\makefile.mak
parsing buildfile
K:\BuildDir\WebHeatmaps\Server\SeverEventLogging\makefile.mak with URI =
file:///K:/BuildDir/WebHeatmaps/Server/SeverEventLogging/makefile.mak

Which of course fails, since that file isn't xml. I don't see anything
in the subant documentation that leads me to expect this behavior. The
examples contain:

<subant target="">
             <propertyset>
                  <propertyref prefix="toplevel"/>
                  <mapper type="glob" from="foo*" to="bar*"/>
             </propertyset>
             <fileset dir="." includes="*/build.xml"/>
          </subant>
        
this snippet build file will run ant in each subdirectory of the project
directory, where a file called build.xml can be found.
Which leads me to believe that the fileset is just to pick the
subdirectories to use, not the build files to use. Since I have a
generic ant file, which, by the way, is in the file VCCMake.xml, (i.e.,
I want to call myself) why is it ignoring it? 

Reply via email to