<?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>