Skip to content

Commit af6d3ed

Browse files
committed
Initial Setup for Jakarta EE 10 Platform/WebProfile
1 parent 188a9c8 commit af6d3ed

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

pom.xml

+9-7
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,6 @@
190190
<scope>system</scope>
191191
<systemPath>${cts.home}/lib/tsharness.jar</systemPath>
192192
</dependency>
193-
<dependency>
194-
<groupId>com.sun.javaee.tck</groupId>
195-
<artifactId>tssv</artifactId>
196-
<version>${tck.version}</version>
197-
<scope>system</scope>
198-
<systemPath>${cts.home}/lib/tssv.jar</systemPath>
199-
</dependency>
200193
<dependency>
201194
<groupId>com.sun.javaee.tck</groupId>
202195
<artifactId>tsprovider</artifactId>
@@ -672,6 +665,15 @@
672665
<tck.version>9.1</tck.version>
673666
</properties>
674667

668+
<dependencies>
669+
<dependency>
670+
<groupId>com.sun.javaee.tck</groupId>
671+
<artifactId>tssv</artifactId>
672+
<version>${tck.version}</version>
673+
<scope>system</scope>
674+
<systemPath>${cts.home}/lib/tssv.jar</systemPath>
675+
</dependency>
676+
</dependencies>
675677
</profile>
676678

677679
</profiles>

setup.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
TCKDIR="${1?Specify the directory where you would like the TCK to be downloaded and setup}"
1111

1212

13-
TCK_URL="https://download.eclipse.org/jakartaee/platform/9.1/jakarta-jakartaeetck-9.1.0.zip"
14-
RI_URL="https://download.eclipse.org/ee4j/glassfish/glassfish-6.2.5.zip"
13+
TCK_URL="https://download.eclipse.org/jakartaee/platform/10/jakarta-jakartaeetck-10.0.1.zip"
14+
RI_URL="https://download.eclipse.org/ee4j/glassfish/glassfish-7.0.0-M8.zip"
1515
ANT_URL="https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.9-bin.zip"
1616

1717
####################################################################
@@ -50,15 +50,15 @@ grep -q "<id>$TCK</id>" $M2 || perl -i -pe "s,(<profiles>),\$1
5050
<activeByDefault>true</activeByDefault>
5151
</activation>
5252
<properties>
53-
<jakartaee9.cts.home></jakartaee9.cts.home>
54-
<jakartaee9.ri.home></jakartaee9.ri.home>
53+
<jakartaee10.cts.home></jakartaee10.cts.home>
54+
<jakartaee10.ri.home></jakartaee10.ri.home>
5555
</properties>
5656
</profile>
5757
," $M2
5858

5959
## Update paths in ~/.m2/settings.xml
60-
perl -i -pe "s,(<jakartaee9.cts.home>)[^<]*,\${1}$TCKDIR/$TCK," $M2
61-
perl -i -pe "s,(<jakartaee9.ri.home>)[^<]*,\${1}$TCKDIR/$RI/glassfish," $M2
60+
perl -i -pe "s,(<jakartaee10.cts.home>)[^<]*,\${1}$TCKDIR/$TCK," $M2
61+
perl -i -pe "s,(<jakartaee10.ri.home>)[^<]*,\${1}$TCKDIR/$RI/glassfish," $M2
6262

6363

6464
################################################
@@ -81,13 +81,13 @@ cat > pom.xml <<EOF
8181
8282
<groupId>jakartaee-tck</groupId>
8383
<artifactId>jakartaee-tck</artifactId>
84-
<version>9.1.0</version>
84+
<version>10.0.1</version>
8585
8686
<dependencies>
8787
<dependency>
8888
<groupId>org.apache.tomee</groupId>
8989
<artifactId>jakartaee-api</artifactId>
90-
<version>9.1.0</version>
90+
<version>10.0.0-SNAPSHOT</version>
9191
</dependency>
9292
$(
9393
for n in lib/*.jar; do

src/test/script/openejb/tck/commands/SetupCommand.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ class SetupCommand
147147
// Create backups first.
148148
def javaeeCtsHome = requireDirectory('cts.home')
149149

150-
// Backup the original sig-test_se8.map, load in the new props, and create
150+
// Backup the original sig-test.map, load in the new props, and create
151151
// the modified file
152-
def originalSe8File = createOriginalFile("${javaeeCtsHome}/bin/sig-test_se8.map.orig", "${javaeeCtsHome}/bin/sig-test_se8.map")
152+
def originalSe8File = createOriginalFile("${javaeeCtsHome}/bin/sig-test.map.orig", "${javaeeCtsHome}/bin/sig-test.map")
153153

154154
// Load original properties
155155
def props = loadProps(originalSe8File)
@@ -161,7 +161,7 @@ class SetupCommand
161161
props.putAll(customProps)
162162

163163
// Save the new properties file
164-
storeProps(props, "${javaeeCtsHome}/bin/sig-test_se8.map")
164+
storeProps(props, "${javaeeCtsHome}/bin/sig-test.map")
165165
}
166166

167167
def createOriginalFile(newFileName, oldFileName) {

0 commit comments

Comments
 (0)