I'm trying to build Android Permission Explorer from source code. I checked out with svn checkout http://android-permission-explorer.googlecode.com/svn/
. I added a basic build.xml
after checkout to the project, and then dropped into a terminal:
$ /usr/local/bin/ant release
...
-compile:
[javac] Compiling 14 source files to .../android-permission-explorer/bin/classes
[javac] .../android-permission-explorer/src/com/carlocriniti/android/permission_explorer/ApplicationDetail.java:7: error: unmappable character for encoding UTF-8
[javac] * Activit� d'affichage du d�tail d'une application
...
The error is unmappable character for encoding UTF-8
.
Here's the offending line in ApplicationDetail.java
(which makes no sense to me since its a comment):
/*
* Projet : Permission Explorer
* Auteur : Carlo Criniti
* Date : 2011.06.10
*
* Classe ApplicationDetail
* ActivitÈ d'affichage du dÈtail d'une application
* avec les permissions qu'elle utilise
*/
There are multiple errors like this. If /usr/local/bin/ant release 2>&1 | grep -i error | wc -l
is accurate, then there's 103 of them.
Question: Why are characters in the comments affecting the build?
I've been through ant's documentation at Writing a Simple Buildfile and Property Task, but damn if I can figure out how to set a source file language.
Question: How do I set the source file language in build.xml
?