package Ġcom . av ito . android Ċ Ċ import Ġcom . av ito . logger . Gradle LoggerFactory Ċ import Ġorg . gradle . api . Default Task Ċ import Ġorg . gradle . api . file . Directory Property Ċ import Ġorg . gradle . api . file . Project Layout Ċ import Ġorg . gradle . api . file . Regular File Ċ import Ġorg . gradle . api . model . ObjectFactory Ċ import Ġorg . gradle . api . provider . Provider Ċ import Ġorg . gradle . api . tasks . Input Ċ import Ġorg . gradle . api . tasks . Input Directory Ċ import Ġorg . gradle . api . tasks . OutputFile Ċ import Ġorg . gradle . api . tasks . Task Action Ċ import Ġorg . gradle . kotlin . dsl . property Ċ import Ġorg . gradle . workers . Worker Executor Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* Ġtodo Ġ@ Cache able Task Ġ+ Ġtest Ġfor Ġit Ċ Ġ*/ Ċ @ Suppress (" Un stable Api Usage ") Ċ abstract Ġclass ĠFind Changed Tests Task Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġobjects : ĠObject Factory , ĊĠĠĠ Ġlayout : ĠProject Layout , ĊĠĠĠ Ġprivate Ġval Ġworker Executor : ĠWorker Executor Ċ ) Ġ: ĠDefault Task () Ġ{ ĊĊĠĠĠ Ġ@ Input ĊĠĠĠ Ġval Ġtarget Commit Ġ= Ġobjects . property < String >() ĊĊĠĠĠ Ġ@ Input Directory ĊĠĠĠ Ġval Ġandroid Test Dir : ĠDirectory Property Ġ= Ġobjects . directory Property () ĊĠĠĠĠĠĠĠ Ġ. convention ( layout . project Directory . dir (" src / android Test ")) ĊĊĠĠĠ Ġ@ OutputFile ĊĠĠĠ Ġval Ġchanged Tests File : ĠProvider < Regular File > Ġ= Ġobjects . directory Property () ĊĠĠĠĠĠĠĠ Ġ. convention ( layout . build Directory ) ĊĠĠĠĠĠĠĠ Ġ. file (" changed - test - classes . txt ") ĊĊĠĠĠ Ġ@ Task Action ĊĠĠĠ Ġfun Ġdo Work () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġlogger Factory Ġ= ĠGradle LoggerFactory . from Task ( this ) ĊĊĠĠĠĠĠĠĠ Ġworker Executor . no Isolation (). submit ( Find Changed Tests Action :: class . java ) Ġ{ Ġparams Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams . rootDir . set ( project . rootDir ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams . target Commit . set ( target Commit ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams . logger Factory . set ( logger Factory ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams . android Test Dir . set ( android Test Dir ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams . changed Tests File . set ( changed Tests File ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ