@@ -1246,11 +1246,11 @@ class DevTask extends AbstractFeatureTask {
12461246 initializeConfigDirectory();
12471247 File configDirectory = server. configDirectory;
12481248 // getOutputDir returns a string
1249- File serverOutputDir = new File (getOutputDir(project));
1249+ File outputDir = new File (getOutputDir(project));
12501250
12511251 if (! container) {
12521252 if (serverDirectory. exists()) {
1253- if (ServerStatusUtil . isServerRunning(serverInstallDir, serverOutputDir , serverName)) {
1253+ if (ServerStatusUtil . isServerRunning(serverInstallDir, outputDir , serverName)) {
12541254 throw new Exception (" The server " + serverName
12551255 + " is already running. Terminate all instances of the server before starting dev mode."
12561256 + " You can stop a server instance with the command 'gradle libertyStop'." );
@@ -1292,7 +1292,7 @@ class DevTask extends AbstractFeatureTask {
12921292 verifyAppStartTimeout. intValue(), verifyAppStartTimeout. intValue(), compileWait. doubleValue(),
12931293 libertyDebug. booleanValue(), pollingTest. booleanValue(), container. booleanValue(), containerfile, containerBuildContext, containerRunOpts,
12941294 containerBuildTimeout, skipDefaultPorts. booleanValue(), keepTempContainerfile. booleanValue(), localMavenRepoForFeatureUtility,
1295- DevTaskHelper . getPackagingType(project), buildFile, generateFeatures. booleanValue(), webResourceDirs, projectModules, parentBuildGradle, new File (serverOutputDir , serverName)
1295+ DevTaskHelper . getPackagingType(project), buildFile, generateFeatures. booleanValue(), webResourceDirs, projectModules, parentBuildGradle, new File (outputDir , serverName)
12961296 );
12971297 } catch (IOException | PluginExecutionException e) {
12981298 throw new GradleException (" Error initializing dev mode." , e)
0 commit comments