Skip to content

Commit a995dcc

Browse files
committed
Testsuite: arquillian glassfish container 2.1.2: make asadmin executable
1 parent aa1818b commit a995dcc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build/resources/src/main/java/org/arquillian/warp/ftest/installation/ContainerInstaller.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ public void unpackContainerDistribution(@Observes InstallContainer event) {
8080
log.info(String.format("The container distribution '%s' was installed into '%s'", distribution,
8181
unpackDestination.getAbsolutePath()));
8282

83+
//Test: make "asadmin" executable.
84+
File fileAsadmin = new File(unpackDestination.getAbsolutePath() + "/glassfish7/glassfish/bin/asadmin");
85+
if (fileAsadmin.exists()) {
86+
log.info(String.format("making '%s' executable.", fileAsadmin.getAbsoluteFile()));
87+
fileAsadmin.setExecutable(true);
88+
}
89+
else {
90+
log.info("No glassfish installation.");
91+
}
92+
8393
if (!containerHome.exists()) {
8494
throw new IllegalStateException(String.format(
8595
"The container distribution was unpacked but the containerHome (%s) still doesn't exist", containerHome));

0 commit comments

Comments
 (0)