Показаны сообщения с ярлыком ant. Показать все сообщения
Показаны сообщения с ярлыком ant. Показать все сообщения

среда, 27 февраля 2013 г.

How to run some Ant target only once ?


    <target name="show-info" unless="show-info_has_run">
        <property name="show-info_has_run" value="true"/>
        <!-- ...... some actions --- ->
    </target>

четверг, 10 января 2013 г.

How to log Ant output to file and show it on console at the same time?


Put the following string:

<record name="build.log"> </record>

at the beginning of build.xml file.

For example:


<?xml version="1.0" encoding="UTF-8"?>
<project name="name-of-project" default="usage">
    <record name="build.log" append="yes"> </record>

   <!-- ... some targets and properties -->


</project>