1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Apache Ant build script for code beautifying Robocode sources -->
<!-- ====================================================================== -->
<project name="beautifier" default="jacobe">
<description>Apache Ant build script for code beautifying Robocode sources</description>
<!-- ====================================== -->
<!-- Jacobe Code Beautifying -->
<!-- ====================================== -->
<taskdef name="jacobe" classname="com.tiobe.jacobe.JacobeTask" classpath="jacobe.jar"/>
<target name="jacobe">
<beautify dir="../../autoextract"/>
<beautify dir="../../robocode"/>
<beautify dir="../../robocodeextract"/>
<beautify dir="../../roborumble"/>
<beautify dir="../../tests"/>
</target>
<macrodef name="beautify">
<attribute name="dir"/>
<sequential>
<jacobe input="@{dir}" cfg="robocode.cfg" overwrite="true" nobackup="true"/>
</sequential>
</macrodef>
</project>
|