1
我使用subant,它是由於導致內容是不允許在序言問題。螞蟻失敗內容是不允許在序言
<subant target="main" genericantfile="build.xml">
<fileset dir = "." />
</subant>
錯誤:
The following error occurred while executing this line:
pattern.py:1: Content is not allowed in prolog.
請注意我在這些文件夾例如,Python文件不同的文件。
當我使用文件列表顯式列表時,所有工作正常。
<subant target="main" genericantfile="build.xml">
<filelist dir="."
files = "A/build.xml,
B/build.xml"
/>
</subant>
「內容在prolog中不允許」通常表示解析文件時出現問題。 –