Skip to content

Commit

Permalink
Merge pull request wildfly#7074 from maeste/WFLY-3333
Browse files Browse the repository at this point in the history
WFLY-333 Deploying a jdbc driver ignores the --name parameter in the cli
  • Loading branch information
bstansberry committed Feb 25, 2015
2 parents aa311a8 + 98e5453 commit fcdccd8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -76,7 +76,7 @@ public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentU
Integer.valueOf(minorVersion));
}
String driverName = deploymentUnit.getName();
if (! deploymentUnit.getName().endsWith(".jar") || driverNames.size() != 1) {
if ((deploymentUnit.getName().contains(".") && ! deploymentUnit.getName().endsWith(".jar")) || driverNames.size() != 1) {
driverName = deploymentUnit.getName() + "_" + driverClassName + "_" + majorVersion +"_" + minorVersion;
}
InstalledDriver driverMetadata = new InstalledDriver(driverName, driverClass.getName(), null, null, majorVersion,
Expand Down

0 comments on commit fcdccd8

Please sign in to comment.