Example usage for com.google.gwt.dev.codeserver CompileDir getWarDir

List of usage examples for com.google.gwt.dev.codeserver CompileDir getWarDir

Introduction

In this page you can find the example usage for com.google.gwt.dev.codeserver CompileDir getWarDir.

Prototype

public File getWarDir() 

Source Link

Document

The directory tree where the compiler saves output files that should be available via HTTP.

Usage

From source file:org.cruxframework.crux.tools.codeserver.CodeServerRecompileListener.java

License:Apache License

private void updateWebDir(String moduleName) {
    if (webDir != null) {
        CompileDir dir = compileDir.get(moduleName);
        try {//  w  w w  . j  a v a2  s .  c o m
            FileUtils.copyFilesFromDir(dir.getWarDir(), webDir);
        } catch (IOException e) {
            logger.error("Error updating webDir", e);
        }
    }
}