Skip to content

Commit

Permalink
Adds gitignore for password resource files
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-richardson committed Mar 2, 2020
1 parent 95eb84b commit 4c61735
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/web3j/console/project/AbstractProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ protected void generateWallet()
projectWallet =
new ProjectWallet(
ProjectUtils.generateWalletPassword(), projectStructure.getWalletPath());

ProjectWriter.writeResourceFile(
projectWallet.getPasswordFileName(),
".gitignore",
projectStructure.getWalletPath());

ProjectWriter.writeResourceFile(
projectWallet.getWalletPassword(),
projectWallet.getPasswordFileName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ protected void generateWallet()
projectWallet =
new ProjectWallet(
ProjectUtils.generateWalletPassword(), projectStructure.getWalletPath());

ProjectWriter.writeResourceFile(
projectWallet.getPasswordFileName(),
".gitignore",
projectStructure.getWalletPath());

ProjectWriter.writeResourceFile(
projectWallet.getWalletPassword(),
projectWallet.getPasswordFileName(),
Expand Down

0 comments on commit 4c61735

Please sign in to comment.