summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNikita Iashchenko <nikitai@google.com>2019-02-13 15:49:04 +0000
committerNikita Iashchenko <nikitai@google.com>2019-02-14 17:26:23 +0000
commit99c8d8347eefb5215d7a2fdb69f84b33bb46318a (patch)
tree763d4c8b69fd104f0942d81c67fb4af2ccbaaff1 /annotations/generate_annotated_java_files.py
parent35353cb07f4652815a11cd3d065214f15a194253 (diff)
Add presubmit repo hook to check license headers in luni/ojluni
This CL adds two hooks for checkstyle tool that will ensure that java files under luni/ and ojluni/ directories do not contain undesired licenses: ojluni/ generally must not have APACHE-licensed files, and luni/ must not have GPL-licensed files. This will help to prevent errors when wrong license is added accidentally. Bug: 38121042 Test: run ${ANDROID_BUILD_TOP}/tools/repohooks/pre-upload.py -- script fails as expected Test: Add GPL license in the header of java file under luni/, commited it and tried to upload such change -- failed to upload as expected Did the same thing but for Apache license and java file under ojluni/ -- same results as expected Change-Id: Ia15091e1cff1e76eda9c2708345d2d09cdc5b7f3
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions