Skip to content

Commit

Permalink
run glassfish stopdomain and delete j2ee/javajoe users for cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alwin-joseph committed Jan 10, 2022
1 parent 90a7a61 commit 9fd7b27
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions jersey-tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,20 @@
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution>
<id>StopDomain1</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${project.build.directory}/glassfish6/glassfish/bin</workingDirectory>
<executable>asadmin</executable>
<arguments>
<argument>stop-domain</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>StartDomain1</id>
<phase>pre-integration-test</phase>
Expand Down Expand Up @@ -313,6 +327,27 @@
</arguments>
</configuration>
</execution>
<execution>
<id>Delete User j2ee</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${project.build.directory}/glassfish6/glassfish/bin</workingDirectory>
<executable>asadmin</executable>
<arguments>
<argument>--passwordfile</argument>
<argument>${project.basedir}/j2ee.pass</argument>
<argument>delete-file-user</argument>
<argument>j2ee</argument>
</arguments>
<successCodes>
<successCode>0</successCode>
<successCode>1</successCode>
</successCodes>
</configuration>
</execution>
<execution>
<id>Add User j2ee</id>
<phase>pre-integration-test</phase>
Expand All @@ -332,6 +367,27 @@
</arguments>
</configuration>
</execution>
<execution>
<id>Delete User javajoe</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${project.build.directory}/glassfish6/glassfish/bin</workingDirectory>
<executable>asadmin</executable>
<arguments>
<argument>--passwordfile</argument>
<argument>${project.basedir}/javajoe.pass</argument>
<argument>delete-file-user</argument>
<argument>javajoe</argument>
</arguments>
<successCodes>
<successCode>0</successCode>
<successCode>1</successCode>
</successCodes>
</configuration>
</execution>
<execution>
<id>Add User javajoe</id>
<phase>pre-integration-test</phase>
Expand Down

0 comments on commit 9fd7b27

Please sign in to comment.