Typedef Task - Apache Ant
ant.apache.org › manual › TasksIf this is not possible, the second best option is to use the loaderref attribute and specify the same name for each and every typedef/taskdef—this way the classes will share the same ClassLoader. Note that the typedef / taskdef tasks must use identical classpath definitions (this includes the order of path components) for the loaderref ...