Maven 2.x Antrun Plugin

StringIndexOutOfBoundsException in custom ant task referencing 'basedir'