Merge pull request #3046 from pdrozd/KEYCLOAK-3336
KEYCLOAK-3336 Arquillian testuite: Added possibility to install serve…
This commit is contained in:
commit
3ef0527a91
3 changed files with 64 additions and 1 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
set NOPAUSE=true
|
||||||
|
|
||||||
|
call %JBOSS_HOME%\bin\jboss-cli.bat --command="patch apply %PATCH_ZIP%"
|
||||||
|
|
||||||
|
if %ERRORLEVEL% neq 0 set ERROR=%ERRORLEVEL%
|
||||||
|
exit /b %ERROR%
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "JBOSS_HOME=$JBOSS_HOME"
|
||||||
|
|
||||||
|
if [ ! -d "$JBOSS_HOME/bin" ] ; then
|
||||||
|
>&2 echo "JBOSS_HOME/bin doesn't exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $JBOSS_HOME/bin
|
||||||
|
|
||||||
|
RESULT=0
|
||||||
|
./jboss-cli.sh --command="patch apply $PATCH_ZIP"
|
||||||
|
if [ $? -ne 0 ]; then RESULT=1; fi
|
||||||
|
exit $RESULT
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 1
|
|
@ -292,6 +292,10 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -587,7 +591,42 @@
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>auth-server-apply-patch</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>auth.server.patch.zip</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>install-patch</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<executable>${common.resources}/install-patch.${script.suffix}</executable>
|
||||||
|
<workingDirectory>${auth.server.home}/bin</workingDirectory>
|
||||||
|
<environmentVariables>
|
||||||
|
<JAVA_HOME>${auth.server.java.home}</JAVA_HOME>
|
||||||
|
<JBOSS_HOME>${auth.server.home}</JBOSS_HOME>
|
||||||
|
<PATCH_ZIP>${auth.server.patch.zip}</PATCH_ZIP>
|
||||||
|
</environmentVariables>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>auth-server-cluster</id>
|
<id>auth-server-cluster</id>
|
||||||
<properties>
|
<properties>
|
||||||
|
|
Loading…
Reference in a new issue