APISonar


com.google.devtools.build.lib.rules.objc.J2ObjcSource.SourceType.JAVA

> com > google > devtools > build > lib > rules > objc > J2ObjcSource > SourceType > JAVA
com APIs google APIs devtools APIs build APIs lib APIs rules APIs objc APIs J2ObjcSource APIs SourceType APIs JAVA APIs

Example 1
private J2ObjcSource buildJ2ObjcSource(RuleContext ruleContext,
      Iterable<Artifact> javaInputSourceFiles) {
    PathFragment objcFileRootRelativePath = ruleContext.getUniqueDirectory("_j2objc");
    PathFragment objcFilePath = ruleContext
        .getConfiguration()
        .getBinFragment()
        .getRelative(objcFileRootRelativePath);
    Iterable<Artifact> objcSrcs = getOutputObjcFiles(ruleContext, javaInputSourceFiles,
        objcFileRootRelativePath, ".m");
    Iterable<Artifact> objcHdrs = getOutputObjcFiles(ruleContext, javaInputSourceFiles,
        objcFileRootRelativePath, ".h");
    return new J2ObjcSource(ruleContext.getRule().getLabel(), objcSrcs, objcHdrs, objcFilePath,
        SourceType.JAVA);
  }