Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Przybyl committed Nov 28, 2024
1 parent 496213f commit 973f4bf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions scripts/tools-install-idea.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ TASKS_YML_CONTENT=$(cat <<'EOF'
EOF
)

# Define IDEA's 'tools/AEMC.xml' content
AEMC_XML_CONTENT=$(cat <<'EOF'
<toolSet name="AEMC">
# Define IDEA's 'tools/AEM.xml' content
AEM_XML_CONTENT=$(cat <<'EOF'
<toolSet name="AEM">
<tool name="Content Clean" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$ProjectFileDir$/aemw" />
Expand Down Expand Up @@ -150,23 +150,23 @@ AEMC_XML_CONTENT=$(cat <<'EOF'
EOF
)

# Function to create 'tools/AEMC.xml' in IntelliJ installations
create_aemc_xml() {
# Function to create 'tools/AEM.xml' in IntelliJ installations
create_aem_xml() {
local intellij_dirs=(
"$HOME/Library/Application Support/JetBrains/IntelliJIdea"*/tools
)

for dir in "${intellij_dirs[@]}"; do
if [ -d "$dir" ]; then
local aem_file="$dir/AEMC.xml"
echo "Creating AEMC.xml in $aem_file"
echo "$AEMC_XML_CONTENT" > "$aem_file"
local aem_file="$dir/AEM.xml"
echo "Creating AEM.xml in $aem_file"
echo "$AEM_XML_CONTENT" > "$aem_file"
fi
done
}

# Create AEMC.xml in IntelliJ installations
create_aemc_xml
# Create AEM.xml in IntelliJ installations
create_aem_xml

# Append tasks.yml content to Taskfile.yml
echo "Appending tasks.yml content to Taskfile.yml"
Expand Down

0 comments on commit 973f4bf

Please sign in to comment.