From 574bc49316c79ae8f5c519398116c0234e9347da Mon Sep 17 00:00:00 2001 From: Jason Daming Date: Thu, 28 Nov 2024 10:43:20 -0600 Subject: [PATCH] Use deleteOldFiles = true (#918) --- Writerside/topics/pplib-Build-an-Auto.md | 7 +++---- examples/cpp/build.gradle | 1 + examples/java/build.gradle | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Writerside/topics/pplib-Build-an-Auto.md b/Writerside/topics/pplib-Build-an-Auto.md index 840171c6..05153fd4 100644 --- a/Writerside/topics/pplib-Build-an-Auto.md +++ b/Writerside/topics/pplib-Build-an-Auto.md @@ -376,11 +376,10 @@ every auto in the project. > **Warning** > -> This method will load all autos in the deploy directory. Since the deploy process does not automatically clear the -> deploy directory, old auto files that have since been deleted from the project could remain on the RIO, therefore -> being added to the auto chooser. +> This method will load all autos in the deploy directory. [Make sure you have the line](https://docs.wpilib.org/en/latest/docs/software/advanced-gradlerio/compiler-args.html#deleting-unused-deploy-files) +> `deleteOldFiles = true` in your build.gradle file or the deploy directory will not be cleared and you will see deleted autos. > -> To remove old options, the deploy directory will need to be cleared manually via SSH, WinSCP, reimaging the RIO, etc. +> To manually remove old options, use SSH, WinSCP, reimaging the RIO, etc. > {style="warning"} diff --git a/examples/cpp/build.gradle b/examples/cpp/build.gradle index f49913a4..4a6fd6a8 100644 --- a/examples/cpp/build.gradle +++ b/examples/cpp/build.gradle @@ -27,6 +27,7 @@ deploy { frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) { files = project.fileTree('src/main/deploy') directory = '/home/lvuser/deploy' + deleteOldFiles = true } } } diff --git a/examples/java/build.gradle b/examples/java/build.gradle index a077c4e0..90c190c4 100644 --- a/examples/java/build.gradle +++ b/examples/java/build.gradle @@ -33,6 +33,7 @@ deploy { frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) { files = project.fileTree('src/main/deploy') directory = '/home/lvuser/deploy' + deleteOldFiles = true } } }