Exit with state 1 on failure.

This allows the properly connection of commands on success, e.g:
java -jar ADAGIO.jar file.adg && lilypond file.ly && timidity -int
file.midi
Converted some ISO-8859-1 files to UTF-8.

Ant may complain otherwise. Mostly, if the user locale is UTF-8.
Fixed conversion from generic Map.Entry key.

Java does automatic unboxing (i.e. from Integer to int), but casting an Object into an int is not allowed, since the int is not an Object. You can cast the Object to an Integer (which is also an Object), java will take care of the rest.
Added ANT build.xml file for ADAgio.

Now eclipse is not required in order to compile the project:

ant build -> generates the CLI jar in dist/
ant clean -> removes both bin/ and dist/
ant test -> runs the tests
Fixed output filenames.

Previously, the output filenames were generated from the input filenames
by replacing ".adg" with ".ly" anywhere in the string. Consider the
following examples:

- "test.adg" -> "test.ly" (OK)
- "test" -> "test" (overwriting input file!!!)
- "test.adg.bak" -> "test.ly.bak" (not really expected behavior)
- "test.adg.bak.adg" -> "test.ly.bak.ly" (not really expected behavior)
- "test.adging" -> "test.lying" (unexpected)
- "test.adg.2" -> "test.ly.2" (not sure if this is desirable)

The new behavior replaces ".adg" with ".ly" if it occurs at the end of
the filename. Otherwise, ".ly" is appended at to the filename. These
examples seems more reasonable:

- "test.adg" -> "test.ly"
- "test" -> "test.ly"
- "test.adg.bak" -> "test.adg.bak.ly"
- "test.adg.bak.adg" -> "test.adg.bak.ly"
- "test.adging" -> "test.adging.ly"
- "test.adg.2" -> "test.adg.2.ly" (not really expected)
Output now consists of the generated filenames.

e.g.:
$ java -jar dist/ADAgio.jar test/file.adg
test/file.ly

$ java -jar dist/ADAgio.jar /home/user/music/example
/home/user/music/example
Merge pull request #1 from lquesada/master

Several fixes
Commit Summary

Exit with state 1 on failure.
Converted some ISO-8859-1 files to UTF-8.
Fixed conversion from generic Map.Entry key.
Added ANT build.xml file for ADAgio.
Fixed output filenames.
Output now consists of the generated filenames.
File Changes

A ADAgioProject/.gitignore (1)
A ADAgioProject/build.xml (100)
M ADAgioProject/src/com/adagio/ADAgioCLI.java (32)
M ADAgioProject/src/com/adagio/events/statements/MusicPlayStatementEvent.java (2)
M ADAgioProject/src/com/adagio/language/bars/chords/ChordIdentifier.java (2)
M ADAgioProject/src/com/adagio/language/definitions/ChordDefinition.java (4)
M ADAgioProject/src/com/adagio/structures/Rhythm.java (2)
M ADAgioProject/test/test/com/adagio/language/musicnotes/MusicNoteTest.java (30)
M ADAgioProject/test/test/com/adagio/language/statements/PlayStatementTest.java (2)
Patch Links:

https://github.com/juanhg/ADAgio/pull/1.patch
https://github.com/juanhg/ADAgio/pull/1.diff