grammatica-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Grammatica-users] Grammatica 1.4 sources corrupt?


From: Karl Weber
Subject: Re: [Grammatica-users] Grammatica 1.4 sources corrupt?
Date: Sun, 6 Apr 2008 00:11:59 +0200
User-agent: KMail/1.9.5

Am Samstag, 5. April 2008 22:56 schrieb Karl Weber:
> Hi,
>
> I got the sources 1.4 of grammatica and tried to compile it. It failed with
> the following error message:
>    
> [javac]
> ...../grammatica-1.4/test/src/java/net/percederberg/grammatica/parser/re/Te
>stRegExp.java:56: warning: unmappable character for encoding UTF8
> [javac]         "�����������������������������������������������";

Well, I finally managed to compile grammatica. The following modifications had 
to be made:

(1) The file 

TestRegExp.java

is not properly encoded. I had to properly encode it using

mv TestRegExp.java TestRegExp.java.old

and

iconv --from-code=ISO-8859-1 --to-code=UTF-8 TestRegExp.java.old > 
TestRegExp.java

with bash (note, I am using linux).

(2) I have nothing to do with C#. So, I had to remove a couple of things, that 
require C#:

(2.1)  I had to remove the dependency of the target test on test-csharp.

(2.2) I had to remove the dependency of the target doc on doc-csharp.

(3) Altough I am using eclipse, which has junit built-in, it could not be 
found. 

(3.1) I had to add junit explicitly to the classpath of ant. (o.k.)

(3.2) Even though I added junit as library to the eclipse project _and_ to the 
classpath of ant, I still got the error

doc-java:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package 
net.percederberg.grammatica.parser...
  [javadoc] Loading source files for package 
net.percederberg.grammatica.parser.re...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.6.0
  [javadoc] Building tree for all the packages and classes...
  [javadoc] com.sun.tools.javac.code.Symbol$CompletionFailure: class file for 
junit.framework.TestCase not found
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...

As far as I can tell, the build.xml is always building the java _and_ the C# 
version, no matter what. This does not seem to be a good idea for people not 
having C# on there system.

-Karl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]