You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Hani Elabed <ha...@elabed.net> on 2000/08/03 18:29:31 UTC

CompileError

Good morning,
I just got back on the Printing Project this morning.
Downloaded latest Xerces, Xalan(with bsf.jar) and
checked out the latest FOP from the CVS.  And got
the following compile Error.. Any ideas.. I am using the
ant.jar that came with FOP.

Hani
Compiling the sources
    [javac] Compiling 3 source files to
T:\JavaProjects\JavaReFormsC\xml-fop\build\classes
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:149:
Constant expression required.
    [javac]       case LeaderPattern.SPACE:
    [javac]       ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:149:
Undefined variable or class name: LeaderPattern
    [javac]       case LeaderPattern.SPACE:
    [javac]            ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:153:
Constant expression required.
    [javac]       case LeaderPattern.RULE:
    [javac]       ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:153:
Undefined variable or class name: LeaderPattern
    [javac]       case LeaderPattern.RULE:
    [javac]            ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:155:
Constant expression required.
    [javac]       case LeaderPattern.DOTS:
    [javac]       ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:155:
Undefined variable or class name: LeaderPattern
    [javac]       case LeaderPattern.DOTS:
    [javac]            ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:158:
Constant expression required.
    [javac]       case LeaderPattern.USECONTENT:
    [javac]       ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:158:
Undefined variable or class name: LeaderPattern
    [javac]       case LeaderPattern.USECONTENT:
    [javac]            ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardElementMapping.java:98:
Undefined variable or class name: DisplayRule
    [javac]     builder.addMapping(uri, "display-rule",
DisplayRule.maker());
    [javac]                                             ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardPropertyListMapping.java:162:
Undefined variable or class name: LeaderPattern
    [javac]
propertyTable.put("leader-pattern",LeaderPattern.maker());
    [javac]                                        ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardPropertyListMapping.java:163:
Undefined variable or class name: LeaderLength
    [javac]     propertyTable.put("leader-length",LeaderLength.maker());

    [javac]                                       ^
    [javac]
T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardPropertyListMapping.java:164:
Undefined variable or class name: RuleStyle
    [javac]   propertyTable.put("rule-style",RuleStyle.maker());
    [javac]                                  ^
    [javac] 12 errors

BUILD FAILED



Re: CompileError ignoreMe

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
Sorry for the trouble. Yesterday I tried to do a full checkout, to see whether my latest 
commit works, but it took over 2 hour and wasnt finished when I had to leave. 
The main problem was the old version of the properties.xml file. I committed the new 
one. 
Maybe it is not necessary to mention it, but nevertheless: If you checkout the latest 
change and start build again the errors won't have disappeared, because the date of 
properties.xml is not checked by ant. The best solution is to delete the build directory 
completely and build anew. 
Fotis

Re: CompileError ignoreMe

Posted by Hani Elabed <ha...@elabed.net>.
Hey Everybody,
I guess after looking into it, I fixed the problem.
(a mind is a terrible thing NOT to use !!)
I removed the Leader.java file from the fop/fo/flow
directory.

I commented out the following lines from
StandardPropertyListMapping.java
// propertyTable.put("leader-pattern",LeaderPattern.maker());
// propertyTable.put("leader-length",LeaderLength.maker());
//  propertyTable.put("rule-style",RuleStyle.maker());

I commented out the following lines from
StandardElementMapping.java
// builder.addMapping(uri, "display-rule", DisplayRule.maker());
// builder.addMapping(uri, "leader", Leader.maker());

and Everything compiled beautifully. Now back to
bringing the latest Wisconsin Supreme Court Docs
to the latest FOP, then to BIG reports.

To all of you have a great day.

Hani Elabed wrote:

> Good morning,
> I just got back on the Printing Project this morning.
> Downloaded latest Xerces, Xalan(with bsf.jar) and
> checked out the latest FOP from the CVS.  And got
> the following compile Error.. Any ideas.. I am using the
> ant.jar that came with FOP.
>
> Hani
> Compiling the sources
>     [javac] Compiling 3 source files to
> T:\JavaProjects\JavaReFormsC\xml-fop\build\classes
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:149:
> Constant expression required.
>     [javac]       case LeaderPattern.SPACE:
>     [javac]       ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:149:
> Undefined variable or class name: LeaderPattern
>     [javac]       case LeaderPattern.SPACE:
>     [javac]            ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:153:
> Constant expression required.
>     [javac]       case LeaderPattern.RULE:
>     [javac]       ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:153:
> Undefined variable or class name: LeaderPattern
>     [javac]       case LeaderPattern.RULE:
>     [javac]            ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:155:
> Constant expression required.
>     [javac]       case LeaderPattern.DOTS:
>     [javac]       ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:155:
> Undefined variable or class name: LeaderPattern
>     [javac]       case LeaderPattern.DOTS:
>     [javac]            ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:158:
> Constant expression required.
>     [javac]       case LeaderPattern.USECONTENT:
>     [javac]       ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\flow\Leader.java:158:
> Undefined variable or class name: LeaderPattern
>     [javac]       case LeaderPattern.USECONTENT:
>     [javac]            ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardElementMapping.java:98:
> Undefined variable or class name: DisplayRule
>     [javac]     builder.addMapping(uri, "display-rule",
> DisplayRule.maker());
>     [javac]                                             ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardPropertyListMapping.java:162:
> Undefined variable or class name: LeaderPattern
>     [javac]
> propertyTable.put("leader-pattern",LeaderPattern.maker());
>     [javac]                                        ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardPropertyListMapping.java:163:
> Undefined variable or class name: LeaderLength
>     [javac]     propertyTable.put("leader-length",LeaderLength.maker());
>
>     [javac]                                       ^
>     [javac]
> T:\JavaProjects\JavaReFormsC\xml-fop\build\src\org\apache\fop\fo\StandardPropertyListMapping.java:164:
> Undefined variable or class name: RuleStyle
>     [javac]   propertyTable.put("rule-style",RuleStyle.maker());
>     [javac]                                  ^
>     [javac] 12 errors
>
> BUILD FAILED