KEYCLOAK-4123: keycloak-install.cli fails if not run from bin dir

This commit is contained in:
Stan Silvert 2017-01-05 21:25:41 -05:00
parent 56160ef12b
commit eb1b011989
4 changed files with 38 additions and 8 deletions

View file

@ -84,7 +84,7 @@
<outputDirectory></outputDirectory>
</fileSet>
<fileSet>
<directory>src/main/cli</directory>
<directory>${project.build.directory}/cli</directory>
<includes>
<include>*.cli</include>
</includes>
@ -107,11 +107,6 @@
<outputDirectory>bin</outputDirectory>
<destName>add-user-keycloak.bat</destName>
</file>
<file>
<source>${project.build.directory}/cli/default-keycloak-subsys-config.cli</source>
<outputDirectory>bin</outputDirectory>
<destName>default-keycloak-subsys-config.cli</destName>
</file>
</files>
</assembly>

View file

@ -129,6 +129,43 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>merge-cli</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<concat destfile="${project.build.directory}/cli/keycloak-install.cli" force="yes">
<fileset dir="${project.build.directory}/cli">
<include name="keycloak-install-base.cli"/>
</fileset>
<fileset dir="${project.build.directory}/cli">
<include name="default-keycloak-subsys-config.cli"/>
</fileset>
</concat>
<concat destfile="${project.build.directory}/cli/keycloak-install-ha.cli" force="yes">
<fileset dir="${project.build.directory}/cli">
<include name="keycloak-install-ha-base.cli"/>
</fileset>
<fileset dir="${project.build.directory}/cli">
<include name="default-keycloak-subsys-config.cli"/>
</fileset>
</concat>
<delete file="${project.build.directory}/cli/default-keycloak-subsys-config.cli"/>
<delete file="${project.build.directory}/cli/keycloak-install-base.cli"/>
<delete file="${project.build.directory}/cli/keycloak-install-ha-base.cli"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

View file

@ -15,4 +15,3 @@ embed-server --server-config=standalone.xml
/subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:add(max-entries=1000,strategy=LRU)
/subsystem=infinispan/cache-container=keycloak/local-cache=keys/expiration=EXPIRATION:add(max-idle=3600000)
/extension=org.keycloak.keycloak-server-subsystem/:add(module=org.keycloak.keycloak-server-subsystem)
run-batch --file=default-keycloak-subsys-config.cli

View file

@ -15,4 +15,3 @@ embed-server --server-config=standalone-ha.xml
/subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:add(max-entries=1000,strategy=LRU)
/subsystem=infinispan/cache-container=keycloak/local-cache=keys/expiration=EXPIRATION:add(max-idle=3600000)
/extension=org.keycloak.keycloak-server-subsystem/:add(module=org.keycloak.keycloak-server-subsystem)
run-batch --file=default-keycloak-subsys-config.cli