Example usage for com.google.gwt.core.ext.linker SyntheticArtifact getPartialPath

List of usage examples for com.google.gwt.core.ext.linker SyntheticArtifact getPartialPath

Introduction

In this page you can find the example usage for com.google.gwt.core.ext.linker SyntheticArtifact getPartialPath.

Prototype

public final String getPartialPath() 

Source Link

Document

Returns the partial path within the output directory of the EmittedArtifact.

Usage

From source file:net.randomhacks.wave.voting.approval.ApprovalVotingLinker.java

License:Apache License

private SyntheticArtifact findSyntheticArtifact(ArtifactSet artifacts, String partialPath) {
    SyntheticArtifact result = null;/*  w  ww  .  j av  a  2  s .  co m*/
    for (Artifact<?> artifact : artifacts) {
        if (artifact instanceof SyntheticArtifact) {
            SyntheticArtifact synthetic = (SyntheticArtifact) artifact;
            if (synthetic.getPartialPath().equals(partialPath)) {
                result = synthetic;
            }
        }
    }
    return result;
}