Author: rob.stryker(a)jboss.com
Date: 2007-10-30 18:09:19 -0400 (Tue, 30 Oct 2007)
New Revision: 4586
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java
Log:
JBIDE-1047
default temporary directory is now server/configuration/tmp/rhdsTemp which, with 95%
certainty, should be on the same drive as server/configuration/deploy.
This will solve the RHDS case.
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java 2007-10-30
20:06:56 UTC (rev 4585)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossServerWizardFragment.java 2007-10-30
22:09:19 UTC (rev 4586)
@@ -57,6 +57,7 @@
import org.eclipse.wst.server.core.internal.ServerWorkingCopy;
import org.eclipse.wst.server.ui.wizard.IWizardHandle;
import org.eclipse.wst.server.ui.wizard.WizardFragment;
+import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.server.internal.AbstractJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
@@ -70,7 +71,7 @@
*/
public class JBossServerWizardFragment extends WizardFragment {
private IWizardHandle handle;
- private String name, authUser, authPass, deployVal;
+ private String name, authUser, authPass, deployVal, deployTmpFolderVal;
private Label nameLabel, serverExplanationLabel,
runtimeExplanationLabel, authenticationExplanationLabel;
private Label homeDirLabel, installedJRELabel, configLabel;
@@ -360,6 +361,7 @@
jreValLabel.setText(install.getInstallLocation().getAbsolutePath() + " (" +
install.getName() + ")");
runtimeGroup.layout();
String p = rwc.getLocation().append(
"server").append(configValLabel.getText()).append("deploy").toOSString();
+ deployTmpFolderVal = rwc.getLocation().append(
"server").append(configValLabel.getText()).append("tmp").append("rhdsTemp").toOSString();
deployText.setText(p);
deployVal = p;
deployGroup.layout();
@@ -378,6 +380,8 @@
((ServerWorkingCopy)serverWC).setAttribute(JBossServer.SERVER_USERNAME, authUser);
((ServerWorkingCopy)serverWC).setAttribute(JBossServer.SERVER_PASSWORD, authPass);
((ServerWorkingCopy)serverWC).setAttribute(JBossServer.DEPLOY_DIRECTORY, deployVal);
+ ((ServerWorkingCopy)serverWC).setAttribute(IDeployableServer.TEMP_DEPLOY_DIRECTORY,
deployTmpFolderVal);
+ new File(deployTmpFolderVal).mkdirs();
}
}
Show replies by date