Skip to content

Commit 606f1ae

Browse files
committed
CARGO-1654: Add support for WildFly 39.x
1 parent 2fbba2c commit 606f1ae

14 files changed

+378
-4
lines changed

.semaphore/semaphore.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,17 @@ blocks:
15481548
- mvn -version
15491549
- cd $ORIGINAL_PWD/core/samples
15501550
- mvn clean install -e -Pwildfly38x -Dsurefire.rerunFailingTestsCount=2
1551+
- name: WildFly 39.x
1552+
dependencies:
1553+
- Build on Java 17
1554+
task:
1555+
jobs:
1556+
- name: WildFly 39.x
1557+
commands:
1558+
- sem-version java 17
1559+
- mvn -version
1560+
- cd $ORIGINAL_PWD/core/samples
1561+
- mvn clean install -e -Pwildfly39x -Dsurefire.rerunFailingTestsCount=2
15511562
- name: GlassFish 8.x
15521563
dependencies:
15531564
- Build on Java 21
@@ -1694,6 +1705,7 @@ blocks:
16941705
- WildFly 36.x
16951706
- WildFly 37.x
16961707
- WildFly 38.x
1708+
- WildFly 39.x
16971709
- WildFly Swarm
16981710
task:
16991711
jobs:
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* ========================================================================
3+
*
4+
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2026 Ali Tokmen.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* ========================================================================
19+
*/
20+
package org.codehaus.cargo.container.wildfly;
21+
22+
/**
23+
* WildFly 39.x existing {@link org.codehaus.cargo.container.configuration.Configuration}
24+
* implementation.
25+
*/
26+
public class WildFly39xExistingLocalConfiguration extends WildFly38xExistingLocalConfiguration
27+
{
28+
/**
29+
* {@inheritDoc}
30+
* @see WildFly38xExistingLocalConfiguration#WildFly38xExistingLocalConfiguration(String)
31+
*/
32+
public WildFly39xExistingLocalConfiguration(String dir)
33+
{
34+
super(dir);
35+
}
36+
37+
/**
38+
* {@inheritDoc}
39+
*/
40+
@Override
41+
public String toString()
42+
{
43+
return "WildFly 39.x Existing Configuration";
44+
}
45+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
* ========================================================================
3+
*
4+
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2026 Ali Tokmen.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* ========================================================================
19+
*/
20+
package org.codehaus.cargo.container.wildfly;
21+
22+
23+
import org.codehaus.cargo.container.configuration.LocalConfiguration;
24+
25+
/**
26+
* WildFly 39.x series container implementation.
27+
*/
28+
public class WildFly39xInstalledLocalContainer extends WildFly38xInstalledLocalContainer
29+
{
30+
/**
31+
* WildFly 39.x series unique id.
32+
*/
33+
public static final String ID = "wildfly39x";
34+
35+
/**
36+
* {@inheritDoc}
37+
* @see WildFly38xInstalledLocalContainer#WildFly38xInstalledLocalContainer(LocalConfiguration)
38+
*/
39+
public WildFly39xInstalledLocalContainer(LocalConfiguration configuration)
40+
{
41+
super(configuration);
42+
}
43+
44+
/**
45+
* {@inheritDoc}
46+
*/
47+
@Override
48+
public String getId()
49+
{
50+
return ID;
51+
}
52+
53+
/**
54+
* {@inheritDoc}
55+
*/
56+
@Override
57+
protected String getDefaultName()
58+
{
59+
return "WildFly 39.x";
60+
}
61+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* ========================================================================
3+
*
4+
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2026 Ali Tokmen.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* ========================================================================
19+
*/
20+
package org.codehaus.cargo.container.wildfly;
21+
22+
import org.codehaus.cargo.container.InstalledLocalContainer;
23+
24+
/**
25+
* Static deployer that deploys WARs and EARs to the WildFly <code>deployments</code> directory.
26+
*/
27+
public class WildFly39xInstalledLocalDeployer extends WildFly38xInstalledLocalDeployer
28+
{
29+
/**
30+
* {@inheritDoc}
31+
* @see WildFly38xInstalledLocalDeployer#WildFly38xInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer)
32+
*/
33+
public WildFly39xInstalledLocalDeployer(InstalledLocalContainer container)
34+
{
35+
super(container);
36+
}
37+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* ========================================================================
3+
*
4+
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2026 Ali Tokmen.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* ========================================================================
19+
*/
20+
package org.codehaus.cargo.container.wildfly;
21+
22+
import org.codehaus.cargo.container.configuration.RuntimeConfiguration;
23+
24+
/**
25+
* Special container support for wrapping a running instance of WildFly 39.x.
26+
*/
27+
public class WildFly39xRemoteContainer extends WildFly38xRemoteContainer
28+
{
29+
/**
30+
* Unique container id.
31+
*/
32+
public static final String ID = "wildfly39x";
33+
34+
/**
35+
* {@inheritDoc}
36+
* @see WildFly38xRemoteContainer#WildFly38xRemoteContainer(org.codehaus.cargo.container.configuration.RuntimeConfiguration)
37+
*/
38+
public WildFly39xRemoteContainer(RuntimeConfiguration configuration)
39+
{
40+
super(configuration);
41+
}
42+
43+
/**
44+
* {@inheritDoc}
45+
*/
46+
@Override
47+
public String getName()
48+
{
49+
return "WildFly 39.x Remote";
50+
}
51+
52+
/**
53+
* {@inheritDoc}
54+
*/
55+
@Override
56+
public String getId()
57+
{
58+
return ID;
59+
}
60+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* ========================================================================
3+
*
4+
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2026 Ali Tokmen.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* ========================================================================
19+
*/
20+
package org.codehaus.cargo.container.wildfly;
21+
22+
import org.codehaus.cargo.container.RemoteContainer;
23+
import org.codehaus.cargo.container.wildfly.internal.AbstractWildFlyRemoteDeployer;
24+
25+
/**
26+
* Remote deployer that uses the remote API to deploy to WildFly 39.x.
27+
*/
28+
public class WildFly39xRemoteDeployer extends AbstractWildFlyRemoteDeployer
29+
{
30+
/**
31+
* @param container the container containing the configuration to use to find the deployer
32+
* properties such as url, user name and password to use to connect to the deployer
33+
*/
34+
public WildFly39xRemoteDeployer(RemoteContainer container)
35+
{
36+
super(container);
37+
}
38+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* ========================================================================
3+
*
4+
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2026 Ali Tokmen.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* ========================================================================
19+
*/
20+
package org.codehaus.cargo.container.wildfly;
21+
22+
/**
23+
* Configuration to use when using a WildFly 39.x remote container.
24+
*/
25+
public class WildFly39xRuntimeConfiguration extends WildFly38xRuntimeConfiguration
26+
{
27+
/**
28+
* {@inheritDoc}
29+
*/
30+
@Override
31+
public String toString()
32+
{
33+
return "WildFly 39.x Runtime Configuration";
34+
}
35+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* ========================================================================
3+
*
4+
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2026 Ali Tokmen.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* ========================================================================
19+
*/
20+
package org.codehaus.cargo.container.wildfly;
21+
22+
/**
23+
* WildFly 39.x standalone local configuration.
24+
*/
25+
public class WildFly39xStandaloneLocalConfiguration extends WildFly38xStandaloneLocalConfiguration
26+
{
27+
/**
28+
* {@inheritDoc}
29+
* @see WildFly38xStandaloneLocalConfiguration#WildFly38xStandaloneLocalConfiguration(String)
30+
*/
31+
public WildFly39xStandaloneLocalConfiguration(String dir)
32+
{
33+
super(dir);
34+
}
35+
36+
/**
37+
* {@inheritDoc}
38+
*/
39+
@Override
40+
public String toString()
41+
{
42+
return "WildFly 39.x Standalone Configuration";
43+
}
44+
}

0 commit comments

Comments
 (0)