Example usage for com.google.gwt.eclipse.core.speedtracer SymbolManifestGenerator getSymbolManifestFile

List of usage examples for com.google.gwt.eclipse.core.speedtracer SymbolManifestGenerator getSymbolManifestFile

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.speedtracer SymbolManifestGenerator getSymbolManifestFile.

Prototype

public static File getSymbolManifestFile(File warOutFolder) 

Source Link

Usage

From source file:com.google.gdt.eclipse.suite.launch.SpeedTracerLaunchDelegate.java

License:Open Source License

private void generateSymbolManifest(IProject project, File extraDir, IPath warOutLocation)
        throws IOException, OperationCanceledException, CoreException {
    IModule[] modules = ModuleUtils.findAllModules(JavaCore.create(project), false);

    // TODO: only generate for modules selected in the launch config

    List<String> moduleNames = new ArrayList<String>();
    for (IModule module : modules) {
        moduleNames.add(module.getCompiledName());
    }//from w  w w .ja  v  a  2  s  .c  o  m

    SymbolManifestGenerator generator = new SymbolManifestGenerator(warOutLocation.toFile(), moduleNames,
            extraDir, project.getName());

    File warOutFolder = warOutLocation.toFile();
    File symbolManifestFile = SymbolManifestGenerator.getSymbolManifestFile(warOutFolder);
    String symbolManifestContents = generator.generate();

    ResourceUtils.writeToFile(symbolManifestFile, symbolManifestContents);
}