Skip to content

Commit

Permalink
Create zip with script and wildfly-glow.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir committed Oct 20, 2023
1 parent a3688e7 commit e24e68b
Show file tree
Hide file tree
Showing 12 changed files with 234 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/wildfly-glow.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions cli/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-2.0
-->

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.1.1 http://maven.apache.org/xsd/assembly-2.1.1.xsd">
<id>distro</id>
<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>
<fileSets>
<fileSet>
<directory>target</directory>
<outputDirectory/>
<includes>
<include>wildfly-glow.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>src/main/resources</directory>
<outputDirectory/>
<includes>
<include>wildfly-glow</include>
</includes>
</fileSet>
</fileSets>
</assembly>
25 changes: 25 additions & 0 deletions cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<recompressZippedFiles>true</recompressZippedFiles>
<finalName>wildfly-glow-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>${project.build.directory}</outputDirectory>
<workDirectory>${project.build.directory}/assembly/work</workDirectory>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</execution>

</executions>
</plugin>
</plugins>
</build>
</project>
24 changes: 24 additions & 0 deletions cli/src/main/resources/wildfly-glow
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
if [ -n "${DEBUG}" ];
then
JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8787"
else
JAVA_OPTS="$JAVA_OPTS"
fi

if [ -z "${WILDFLY_GLOW_HOME}" ];
then
full_path=$(realpath $0)
WILDFLY_GLOW_HOME=$(dirname $full_path)
fi

CLI_EXECUTABLE=${WILDFLY_GLOW_HOME}/wildfly-glow.jar
if [ ! -f "${CLI_EXECUTABLE}" ]; then
echo "Could not find ${CLI_EXECUTABLE}. Please make sure that this script is in the same directory as wildfly-glow.jar, or set the WILDFLY_GLOW_HOME environment variable to point to the directory containing wildfly-glow.jar."
exit 1
fi

CLASSPATH=( "${CLI_EXECUTABLE}" )

java ${JAVA_OPTS} -jar "${CLASSPATH}" "$@"

5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@
<artifactId>wildfly-glow-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>wildfly-glow</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>wildfly-glow-test-galleon-pack</artifactId>
Expand Down

0 comments on commit e24e68b

Please sign in to comment.