Artifact function ( RuleContext arg0 , Artifact arg1 ) { Root loc0 = arg0 . getConfiguration ( ) . getGenfilesDirectory ( ) ; PathFragment loc1 = new PathFragment ( "srini_string" ) . getRelative ( arg1 . getRootRelativePath ( ) ) ; return arg0 . getShareableArtifact ( loc1 , loc0 ) ; }
get the artifact generated by the 2to3 action . the artifact is in a python3 subdirectory to avoid conflicts eg . when the input file is generated . concode_field_sep PathFragment INIT_PY concode_elem_sep Runfiles.EmptyFilesSupplier GET_INIT_PY_FILES concode_elem_sep PathFragment INIT_PYC concode_elem_sep FileType REQUIRES_INIT_PY concode_field_sep Artifact generate2to3Action concode_elem_sep Iterable<PathFragment> getExtraPaths concode_elem_sep Set<PathFragment> getInitPyFiles concode_elem_sep Map<PathFragment,Artifact> generate2to3Actions