Skip to content
Snippets Groups Projects
Commit a1759a66 authored by jez04's avatar jez04
Browse files

Try fix plugin install, try change log level to info

parent 528a4ea0
Branches
No related merge requests found
......@@ -113,7 +113,31 @@ function installPlugins(){
#install plugins
echo $repos
echo $plugins
sudo /opt/eclipse-$suffix/$altRunName -nosplash -application org.eclipse.equinox.p2.director -repository $repos -installIU $plugins
cat <<EOF | sudo tee /opt/eclipse-$suffix/logback.xml > /dev/null
<configuration debug="true">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are by default assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
</configuration>
EOF
local eclipseConfigFile="/opt/eclipse-$suffix/$altRunName.ini"
local logLevelLine="-Dlogback.configurationFile=logback.xml"
sed -i "/$logLevelLine/d" $eclipseConfigFile
sed -i "/-Dsun.java.command/a $logLevelLine" $eclipseConfigFile
sudo /opt/eclipse-$suffix/$altRunName -nosplash -application org.eclipse.equinox.p2.director -repository $repos -installIU $plugins -vmargs -Dlogback.configurationFile=logback.xml -Declipse.log.level=INFO
# sed -i "/$logLevelLine/d" $eclipseConfigFile
}
#config workspace and config area
......@@ -528,10 +552,14 @@ function uninstallIdea(){
function installLombok(){
local eclipseSuffix=${1:-java}
local eclipseName=${2:-eclipse}
local eclipseConfigFile="/opt/eclipse-$eclipseSuffix/$eclipseName-orig.ini"
local lombokLine="-javaagent:/opt/eclipse-$eclipseSuffix/lombok.jar"
local lombokLineSed="-javaagent:\/opt\/eclipse-$eclipseSuffix\/lombok.jar"
sed -i "/$lombokLineSed/d" $eclipseConfigFile
wget https://projectlombok.org/downloads/lombok.jar
sudo mv lombok.jar /opt/eclipse-$eclipseSuffix/
cat <<EOF | sudo cat >>/opt/eclipse-$eclipseSuffix/$eclipseName-orig.ini
-javaagent:/opt/eclipse-$eclipseSuffix/lombok.jar
cat <<EOF | sudo cat >>$eclipseConfigFile
$lombokLine
EOF
}
......@@ -849,7 +877,7 @@ function fix2023(){
cat <<EOF | sudo tee /opt/wildfly-29/bin/standalone-student.sh > /dev/null
#!/bin/bash
WILDFLY_DIR=\$HOME/.wildfly
if [ ! -d \"\$WILDFLY_DIR\" ]; then
if [ ! -d \"\$WILDFLY_DIR \" ]; then
mkdir -p \$WILDFLY_DIR/configuration
mkdir -p \$WILDFLY_DIR/content
mkdir -p \$WILDFLY_DIR/data
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment