-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Showing
6 changed files
with
97 additions
and
18 deletions.
There are no files selected for viewing
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,49 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "Ubuntu", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/base:jammy", | ||
"features": { | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"installGradle": true, | ||
"installMaven": true, | ||
"installAnt": true, | ||
"installGroovy": true, | ||
"version": "17", | ||
"jdkDistro": "ms", | ||
"gradleVersion": "latest", | ||
"mavenVersion": "latest", | ||
"antVersion": "latest", | ||
"groovyVersion": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/python:1": { | ||
"installTools": true, | ||
"version": "latest" | ||
} | ||
}, | ||
|
||
"mounts": [ | ||
{ | ||
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.ssh", | ||
"target": "/home/vscode/.ssh", | ||
"type": "bind" | ||
}] | ||
|
||
|
||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "uname -a", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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,25 @@ | ||
#!/bin/bash | ||
|
||
# Description: This script appends a multi-line string to the end of all the files in the folder that end with _[A-Za-z][A-Za-z].properties | ||
|
||
cd src/main/resources | ||
|
||
# The multi-line string to append to the end of the file with EOF | ||
STRING_TO_APPEND=$(cat <<EOF | ||
#Template strings image to pdf | ||
imageToPDF.templates=Templates | ||
imageToPDF.selectLabel.templates=Templates Options (Enabled only when templates are selected in fitOptions) | ||
imageToPDF.selectText.templates.1=1x2 | ||
imageToPDF.selectText.templates.2=2x2 | ||
imageToPDF.selectText.templates.3=2x3 | ||
EOF | ||
) | ||
|
||
# Loop through all the files in the folder that end with .properties | ||
for file in *_[A-Za-z][A-Za-z].properties | ||
do | ||
# Append the multi-line string with a newline to the end of the file | ||
echo "$STRING_TO_APPEND" >> "$file" | ||
done |
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
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
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
5 changes: 3 additions & 2 deletions
5
src/main/java/stirling/software/SPDF/repository/UserRepository.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