-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f26851
commit 67f9c1a
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/main/java/edu/wpi/first/gradlerio/deploy/roborio/FRCFileTreeArtifact.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package edu.wpi.first.gradlerio.deploy.roborio; | ||
|
||
import javax.inject.Inject; | ||
|
||
import edu.wpi.first.deployutils.deploy.artifact.FileTreeArtifact; | ||
|
||
public class FRCFileTreeArtifact extends FileTreeArtifact { | ||
@Inject | ||
FRCFileTreeArtifact(String name, RoboRIO target) { | ||
super(name, target); | ||
|
||
getPostdeploy().add(ctx -> { | ||
ctx.execute("chown lvuser \"" + getFiles().get().toString() + "\""); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters