I am using subant and it is resulting into Content is not allowed in prolog problem.
<subant target="main" genericantfile="build.xml">
<fileset dir = "." />
</subant>
Error:
The following error occurred while executing this line:
pattern.py:1: Content is not allowed in prolog.
Please note I have different files in those folders for example, python files.
When I use explicit listing using the filelist, all works fine.
<subant target="main" genericantfile="build.xml">
<filelist dir="."
files = "A/build.xml,
B/build.xml"
/>
</subant>
With subant you either specify
genericantfilealong with adirset(to run the same build file many times, each time with a different basedir) or you omitgenericantfilebut supply afilesetor other resource collection of build files to run. You are mixing the two styles, and it looks like when you provide afilesetant is ignoring thegenericantfileattribute and treating each element of that fileset as a build file, attempting to parse each of the files as XML, and failing for those that are not XML (i.e. the python files).would include only the real build files in the fileset.