Example usage for com.google.gwt.eclipse.core.modules IModule getCompiledName

List of usage examples for com.google.gwt.eclipse.core.modules IModule getCompiledName

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.modules IModule getCompiledName.

Prototype

String getCompiledName();

Source Link

Document

Returns the compiled name of this module.

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   www.  ja  v a  2 s .  co 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);
}