Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

[GWT 2.8-SNAPSHOT/Gradle 2.13] Properties issue #102

@hrstoyanov

Description

@hrstoyanov

Hi all,
I have the following gradle.properties file next to my gradle.build:

# Dev mode gwt compiler 
java_lang_level = 1.8
gwt_compiler_minHeapSize = 512M
gwt_compiler_maxHeapSize = 1024M
gwt_log_level = WARN
gwt_source_level = 1.8
gwt_compiler_optimize = 0
gwt_compiler_enableClosureCompiler=false
gwt_compiler_style = DETAILED
gwt_compiler_draftCompile = false
gwt_app_modules = com.xxxxx.App

and here is how use them with this plug-in:

gwt {
    modules      gwt_app_modules
    devModules   gwt_app_modules
    gwtVersion   gwt_version
    minHeapSize = gwt_compiler_minHeapSize
    maxHeapSize = gwt_compiler_maxHeapSize
    logLevel    = gwt_log_level
    sourceLevel = java_lang_level

    compiler {
        strict = true;
        optimize = gwt_compiler_optimize;
        enableClosureCompiler = gwt_compiler_enableClosureCompiler;
        disableCastChecking = true;
        localWorkers = 2;
        style = gwt_compiler_style;
        draftCompile = gwt_compiler_draftCompile;
    }

    superDev{
        noPrecompile = true;
    }
}

However, when I launch "gradle -i war", I see some strange stuff fed to the compiler like:

 /usr/java/jdk1.8.0_77/bin/java -Dgwt.persistentunitcachedir=/projects/xxxxx/xxxxx-war/build/gwt/cache -Xms512M -Xmx1024M -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp <... very long class path ...> com.google.gwt.dev.Compiler -sourceLevel 1.8 -logLevel WARN -war /projects/xxxxx/xxxxx-war/build/gwt/out -extra /projects/xxxxx/xxxxx-war/build/gwt/extra -workDir /projects/xxxxx/xxxxx-war/build/gwt/work -gen /projects/xxxxx/xxxxx-war/build/gwt/gen -localWorkers 2 -draftCompile -optimize 48 -XdisableCastChecking -style DETAILED -strict -XenableClosureCompiler com.xxxxx.web.AppDev

Look at the optimize and draftCompile options: I was expecting to see optimize value of 0 and no -draftCompile comman line flag. This plug-in seems to have problem picking up Integer and Boolean properties, while strings seems ok??? Note, If I hard-code the optimize value into the build.gradle file itself, it is picked up correctly.

What is going on?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions