Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ant task to automatically convert to a simple shim layout (#7561)
Closes #7528 Usage: ```bash mvn -B clean generate-sources antrun:run@shimplify-shim-sources -pl sql-plugin -Dshimplify=true -Dshimplify.add.base=323 -Dshimplify.add.shim=324 ``` - Prints warning if detects a shim containing multiple source roots not shared with other shims. By construction a shim should have only a single directory that is not shared. Example: ``` shimplify - WARNING - Consider consolidating 340, it spans multiple dedicated directories ['/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/340+/scala', '/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/340/scala'] shimplify - WARNING - Consider consolidating 312db, it spans multiple dedicated directories ['/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/312db/scala', '/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/31xdb/scala'] ``` - Updates shimplfy json comments without moving the files they are the old locations - Move files to the canonical fist-shim-affected location - Clones an existing shim to a new shim - Removes an existing shim The goal is to deprecate the range dirs. Signed-off-by: Gera Shegalov <[email protected]> Co-authored-by: Niranjan Artal <[email protected]> Co-authored-by: Jason Lowe <[email protected]> Co-authored-by: Raza Jafri <[email protected]>
- Loading branch information