2013-04-17 4 views
1

У нас есть Ant скрипт с Чаун задачи следующим образом:Как отлаживать задачу chown в Ant?

<chown owner="${user}" verbose="true"> 
    <fileset dir="${dev-home}" includes="**/**"/> 
    <dirset dir="${dev-home}" includes="**/**"/> 
</chown> 

Задача не удается, а просто говорит, что он не без указания, почему или дать команду, которая выполняется. Как мы можем отладить это?

ответ

1

Вы можете запустить antfile в режиме отладки =>ant -debug -f yourbuildfile.xml
, чтобы получить больше продукции или для отладки отдельных частей используют методы, описанные в ответах на вопрос Make ant quiet without the -q flag?
Может быть, вы столкнулись с этими проблемами, упомянутые в ant manual for chown task:
». ..
If you are working on a large number of files this may result in a command line that is too long for your operating system. If you encounter such problems, you should set the maxparallel attribute of this task to a non-zero value. The number to use highly depends on the length of your file names (the depth of your directory tree) and your operating system, so you'll have to experiment a little.
... "

Смежные вопросы