qos-ch/cal10n — pull request #6 by MaliciousMonkey (2013-04-25 03:55:03+00:00)
Title: Verify Ant Task...Take Two

This is the updates to fix issues with running the AntUnit tests. They were causing out of memory errors due to an improperly configured classpath. I will let this sit for a bit before merging it just in case. Also, I need to go to sleep. :-)

Original Pull Request Info: (From https://github.com/qos-ch/cal10n/pull/5)

I noticed that there was no equivalent ant task for the verify plugin so I decided to take a stab at writing one. It works similarly to the maven plugin. Here are a few examples:

To start you need add the cal10n-api and cal10n-ant-task jars to the ant classpath. Then you need to define the ant tasks using a ```taskdef``` element:

```xml

```
Then you can use the task like this:

```xml

ch.qos.cal10n.ant.testdata.Colors
ch.qos.cal10n.ant.testdata.DaysOfTheWeek

```

The classpath provided to the task is the classpath where the enums and resource bundles to check are located.

You can also specify the classpath using the `````` element inside the task. If you only have one enum that you want to test you can use the ```enumtype``` attribute.

I have included a bunch of unit tests that hopefully covers the vast majority of the use cases. The module can also be expanded to add more task as needed.

I am looking for some feedback on this. I am not a maven expert so hopefully I managed to incorporate the changes in relatively cleanly. Please let me know what you think.