Universal Wiki Converter building with Eclipse

I am trying to build the uwc via Eclipse. I installed the Ant plugin to Eclipse. I used JRE 1.7 and 1.6, but in both cases I have no success. I get the following errors. Did anyone experience with this tool?

Buildfile: C:\Users\****\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\build.xml
    init:
    compile.module.uwc.production:
    [javac2] C:\Users\*****\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\build.xml:156: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac2] Compiling 62 source files to C:\Users\******\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\target\uwc\classes
    [javac2] C:\Users\******\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\src\com\atlassian\uwc\ui\FeedbackWindow.java:296: error: incompatible types
    [javac2]            method = (State.Type) methodObj;
    [javac2]                     ^
    [javac2]   required: java.awt.Window.Type
    [javac2]   found:    com.atlassian.uwc.ui.State.Type
    [javac2] C:\Users\******\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\src\com\atlassian\uwc\ui\FeedbackWindow.java:321: error: incomparable types: java.awt.Window.Type and com.atlassian.uwc.ui.State.Type
    [javac2]        if (method == State.Type.NOTE) { 
    [javac2]                   ^
    [javac2] C:\Users\******\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\src\com\atlassian\uwc\ui\FeedbackWindow.java:337: error: incomparable types: java.awt.Window.Type and com.atlassian.uwc.ui.State.Type
    [javac2]        if (method == State.Type.STEP) {
    [javac2]                   ^
    [javac2] C:\Users\******\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\src\com\atlassian\uwc\ui\FeedbackWindow.java:341: error: incomparable types: java.awt.Window.Type and com.atlassian.uwc.ui.State.Type
    [javac2]        else if (method == State.Type.MAX) {
    [javac2]                        ^
    [javac2] Note: Some input files use or override a deprecated API.
    [javac2] Note: Recompile with -Xlint:deprecation for details.
    [javac2] Note: Some input files use unchecked or unsafe operations.
    [javac2] Note: Recompile with -Xlint:unchecked for details.
    [javac2] 4 errors

    BUILD FAILED
    C:\Users\******\workspace\UWCbuild\appfusions-universal-wiki-converter-cc46cdb17c5c\build.xml:156: Compile failed; see the compiler error output for details.

    Total time: 2 seconds

Thanks for looking

Answers


We got the exact same errors building it via cmdline on a Linux machine - so it's not related to Eclipse.

We solved it - at least for us - by modifying src/com/atlassian/uwc/ui/FeedbackWindow.java, changing a few types and/or type casts.

The commented-out lines below are the original ones:

//import com.atlassian.uwc.ui.State.Type;
import com.atlassian.uwc.ui.State;
...

public void update(Observable stateObs, Object methodObj) {
    State state;
    //Type method;
    State.Type method;
    CastProblem problem = CastProblem.NOT_STATE;
    try {
        state = (State) stateObs;
        problem = CastProblem.NOT_TYPE; //state cast didn't fail; let's try methodObj. Used by ClassCastException catch block
        //method = (Type) methodObj;
        method = (State.Type) methodObj;
    } catch (ClassCastException e) {
...

//private void updateFeedbackTextArea(State state, Type method) {
private void updateFeedbackTextArea(State state, State.Type method) {
    //if ((State.Type) method == State.Type.NOTE) {
    if (method == State.Type.NOTE) {
...

//private synchronized void updateProgressBar(State state, Type method) {
private synchronized void updateProgressBar(State state, State.Type method) {
...

Need Your Help

creating an AutoCompleteTextView inside alertDialog

android google-places-api android-alertdialog autocompletetextview

I am trying to add an AutoCompleteTextBox inside an AlertDialog but I have no Idea how to do that. Any help regarding the same would be appreciated. Also In that AutoCompleteTextBox , I want to dis...

How do I copy a filtered range into an array? (Excel VBA)

arrays excel vba

I use this formula to copy unique records from Column A into Column B.