Skip to content

Commit

Permalink
[WFCORE-7015] Fix ProvisioningConsistencyTestCase failure when -Drele…
Browse files Browse the repository at this point in the history
  • Loading branch information
yersan committed Oct 4, 2024
1 parent 5bb70c4 commit 3e97a95
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</dependencies>

<build>
<finalName>${server.output.dir.prefix}-${project.version}</finalName>
<finalName>${server.output.dir.prefix}-${wildfly.core.release.version}</finalName>
<plugins>
<plugin>
<groupId>org.jboss.galleon</groupId>
Expand Down
4 changes: 2 additions & 2 deletions dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</dependency>
</dependencies>
<build>
<finalName>${server.output.dir.prefix}-${wildfly.core.release.version}</finalName>
<plugins>
<plugin>
<groupId>org.jboss.galleon</groupId>
Expand All @@ -44,7 +45,7 @@
<goal>provision</goal>
</goals>
<configuration>
<install-dir>${basedir}/target/${project.build.finalName}</install-dir>
<install-dir>${project.build.directory}/${project.build.finalName}</install-dir>
<record-state>false</record-state>
<log-time>${galleon.log.time}</log-time>
<offline>true</offline>
Expand Down Expand Up @@ -73,7 +74,6 @@
</property>
</activation>
<build>
<finalName>${server.output.dir.prefix}-${wildfly.core.release.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@
<version.org.wildfly.licenses.plugin>2.4.1.Final</version.org.wildfly.licenses.plugin>
<version.versions.plugin>2.5</version.versions.plugin>
<version.xml.plugin>1.1.0</version.xml.plugin>
<wildfly.build.output.dir>dist/target/${server.output.dir.prefix}-${wildfly.core.release.version}</wildfly.build.output.dir>
<wildfly.build.output.dir>build/target/${server.output.dir.prefix}-${wildfly.core.release.version}</wildfly.build.output.dir>
<wildfly.dist.output.dir>dist/target/${server.output.dir.prefix}-${wildfly.core.release.version}</wildfly.dist.output.dir>
<!-- Release Info -->
<wildfly.core.release.version>${project.version}</wildfly.core.release.version>
<wildfly.core.scm.connection>[email protected]:wildfly/wildfly-core.git</wildfly.core.scm.connection>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/manualmode/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
<javax.net.ssl.keyStore>${basedir}/target/test-classes/ssl/jbossClient.keystore</javax.net.ssl.keyStore>
<javax.net.ssl.trustStorePassword>clientPassword</javax.net.ssl.trustStorePassword>
<javax.net.ssl.keyStorePassword>clientPassword</javax.net.ssl.keyStorePassword>
<standard.dist.version>${project.version}</standard.dist.version>
<dist.output.dir>${wildfly.dist.output.dir}</dist.output.dir>
</systemPropertyVariables>
<environmentVariables>
<JBOSS_HOME>${wildfly.home}</JBOSS_HOME>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class ProvisioningConsistencyTestCase {
private static final Path INSTALLATION_METADATA = CHANNEL_INSTALLATION.resolve(INSTALLATION);
private static final Path PROVISIONING_XML = CHANNEL_INSTALLATION.resolve(PROVISIONING);
private static final Path SOURCE_HOME = JBOSS_HOME.getParent().getParent().getParent().getParent();
private static final Path DIST_INSTALLATION = SOURCE_HOME.resolve("dist").resolve("target").resolve(getDistDir());
private static final Path DIST_INSTALLATION = SOURCE_HOME.resolve(System.getProperty("dist.output.dir"));

private static Path resolveJBossHome() {
try {
Expand All @@ -57,10 +57,6 @@ private static Path resolveJBossHome() {
}
}

private static String getDistDir() {
return "wildfly-core-dist-" + System.getProperty("standard.dist.version");
}

private static File getDistFile(Path channelPath, boolean exists, boolean directory, List<String> errors) {
Path relative = CHANNEL_INSTALLATION.relativize(channelPath);
System.out.println("Getting dist file for relative path " + relative);
Expand Down

0 comments on commit 3e97a95

Please sign in to comment.