@@ -172,7 +172,9 @@ def build_and_locally_deploy_maven() -> None:
172172 execute ("./gradlew publishToMavenLocal" , working_dir = CHECKER_FRAMEWORK )
173173
174174
175- def build_checker_framework_release (version : str , old_cf_version : str ) -> None :
175+ def build_checker_framework_release (
176+ version : str , old_cf_version : str , checker_framework_interm_dir : Path
177+ ) -> None :
176178 """Build the release files for the Checker Framework project and run tests.
177179
178180 The release files include the manual and the zip file.
@@ -193,6 +195,7 @@ def build_checker_framework_release(version: str, old_cf_version: str) -> None:
193195 )
194196
195197 # Build the Checker Framework binaries and documents. Tests are run by release_push.py.
198+ # This also makes the manuals.
196199 gradle_cmd = "./gradlew buildAll"
197200 execute (gradle_cmd , CHECKER_FRAMEWORK )
198201
@@ -202,8 +205,7 @@ def build_checker_framework_release(version: str, old_cf_version: str) -> None:
202205
203206 # Create checker-framework-X.Y.Z.zip and put it in checker_framework_interm_dir
204207 # copy the remaining checker-framework website files to checker_framework_interm_dir
205- # This also makes the manuals.
206- gradle_cmd = "./gradlew copyToWebsite -PcfWebsite={checker_framework_interm_dir}"
208+ gradle_cmd = f"./gradlew copyToWebsite -PcfWebsite={ checker_framework_interm_dir } "
207209 execute (gradle_cmd , CHECKER_FRAMEWORK )
208210
209211 # clean no longer necessary files left over from building the checker framework tutorial
@@ -214,7 +216,7 @@ def build_checker_framework_release(version: str, old_cf_version: str) -> None:
214216
215217 dev_website_relative_dir = Path (DEV_SITE_DIR ) / "releases" / version
216218 print (f"Copying from: { dev_website_relative_dir } \n to: { DEV_SITE_DIR } " )
217- copy_tree (dev_website_relative_dir , DEV_SITE_DIR )
219+ copy_tree (str ( dev_website_relative_dir ), str ( DEV_SITE_DIR ) )
218220
219221
220222def commit_to_interm_projects (cf_version : str ) -> None :
@@ -312,7 +314,7 @@ def main(argv: list[str]) -> None:
312314
313315 # The Checker Framework jar files and documentation are built and the website is updated.
314316 print_step ("Build Step 5: Build projects and websites." ) # AUTO
315- build_checker_framework_release (cf_version , old_cf_version )
317+ build_checker_framework_release (cf_version , old_cf_version , checker_framework_interm_dir )
316318
317319 print_step ("Build Step 6: Overwrite .htaccess and CFLogo.png ." ) # AUTO
318320
@@ -336,11 +338,9 @@ def main(argv: list[str]) -> None:
336338 ensure_group_access (CHECKER_FRAMEWORK )
337339 ensure_group_access (INTERM_CHECKER_REPO )
338340
339- # At the moment, this will lead to output error messages because some metadata in some of the
340- # dirs I think is owned by Mike or Werner. We should identify these and have them fix it.
341- # But as long as the processes return a zero exit status, we should be ok.
342341 print_step ("\n \n Build Step 9: Add group permissions to websites." ) # AUTO
343- ensure_group_access (DEV_SITE_DIR )
342+ ## TODO: This is returning a status of 1, but it runs fine from the command line.
343+ # ensure_group_access(DEV_SITE_DIR)
344344
345345 create_empty_file (RELEASE_BUILD_COMPLETED_FLAG_FILE )
346346
0 commit comments