File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
build/resources/src/main/java/org/arquillian/warp/ftest/installation Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments