-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 10220-thumbnail-size-bug
- Loading branch information
Showing
15 changed files
with
169 additions
and
151 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# cpwebapp <project dir> <file in webapp> | ||
# | ||
# Usage: | ||
# | ||
# Add a File watcher by importing watchers.xml into IntelliJ IDEA, and let it do the copying whenever you save a | ||
# file under webapp. | ||
# | ||
# https://www.jetbrains.com/help/idea/settings-tools-file-watchers.html | ||
# | ||
# Alternatively, you can add an External tool and trigger via menu or shortcut to do the copying manually: | ||
# | ||
# https://www.jetbrains.com/help/idea/configuring-third-party-tools.html | ||
# | ||
|
||
PROJECT_DIR=$1 | ||
FILE_TO_COPY=$2 | ||
RELATIVE_PATH="${FILE_TO_COPY#$PROJECT_DIR/}" | ||
|
||
# Check if RELATIVE_PATH starts with 'src/main/webapp', otherwise ignore | ||
if [[ $RELATIVE_PATH == src/main/webapp* ]]; then | ||
# Get current version. Any other way to do this? A simple VERSION file would help. | ||
VERSION=`perl -ne 'print $1 if /<revision>(.*?)<\/revision>/' ./modules/dataverse-parent/pom.xml` | ||
RELATIVE_PATH_WITHOUT_WEBAPP="${RELATIVE_PATH#src/main/webapp/}" | ||
TARGET_DIR=./docker-dev-volumes/glassfish/applications/dataverse-$VERSION | ||
TARGET_PATH="${TARGET_DIR}/${RELATIVE_PATH_WITHOUT_WEBAPP}" | ||
|
||
mkdir -p "$(dirname "$TARGET_PATH")" | ||
cp "$FILE_TO_COPY" "$TARGET_PATH" | ||
|
||
echo "File $FILE_TO_COPY copied to $TARGET_PATH" | ||
fi |
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,22 @@ | ||
<TaskOptions> | ||
<TaskOptions> | ||
<option name="arguments" value="$ProjectFileDir$ $FilePath$" /> | ||
<option name="checkSyntaxErrors" value="false" /> | ||
<option name="description" /> | ||
<option name="exitCodeBehavior" value="ERROR" /> | ||
<option name="fileExtension" value="*" /> | ||
<option name="immediateSync" value="false" /> | ||
<option name="name" value="Dataverse webapp file copy on save" /> | ||
<option name="output" value="" /> | ||
<option name="outputFilters"> | ||
<array /> | ||
</option> | ||
<option name="outputFromStdout" value="false" /> | ||
<option name="program" value="$ProjectFileDir$/scripts/intellij/cpwebapp.sh" /> | ||
<option name="runOnExternalChanges" value="true" /> | ||
<option name="scopeName" value="Current File" /> | ||
<option name="trackOnlyRoot" value="false" /> | ||
<option name="workingDir" value="$ProjectFileDir$" /> | ||
<envs /> | ||
</TaskOptions> | ||
</TaskOptions> |
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
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
Oops, something went wrong.