Revision 37822 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/creation/wizard/AdvancedModeSelectionWizard.java
AdvancedModeSelectionWizard.java | ||
---|---|---|
34 | 34 |
|
35 | 35 |
import org.gvsig.gui.beans.wizard.panel.OptionPanel; |
36 | 36 |
import org.gvsig.i18n.Messages; |
37 |
import org.gvsig.installer.lib.api.InstallerLocator; |
|
38 |
import org.gvsig.installer.lib.api.InstallerManager; |
|
37 | 39 |
import org.gvsig.installer.lib.api.PackageInfo; |
38 | 40 |
import org.gvsig.installer.swing.impl.creation.DefaultMakePluginPackageWizard; |
39 | 41 |
import org.gvsig.installer.swing.impl.creation.panel.AdvancedModeSelectionPanel; |
... | ... | |
69 | 71 |
|
70 | 72 |
if (!isAdvancedModeSelected()) { |
71 | 73 |
|
72 |
String path = installerCreationWizard.getPluginsFolder()
|
|
73 |
+ File.separator
|
|
74 |
+ installerCreationWizard.getSelectedPackageInfo()
|
|
75 |
.getCode() + File.separator + "install";
|
|
76 |
File folder = new File(path);
|
|
74 |
InstallerManager manager = InstallerLocator.getInstallerManager();
|
|
75 |
String pluginName = installerCreationWizard
|
|
76 |
.getSelectedPackageInfo().getCode();
|
|
77 |
File pluginLocation = manager.getAddonFolder(pluginName);
|
|
78 |
File folder = null;
|
|
77 | 79 |
|
78 |
if (folder.exists()) { |
|
80 |
if (pluginLocation != null) { |
|
81 |
String path = pluginLocation.getAbsolutePath() + File.separator |
|
82 |
+ "install"; |
|
83 |
folder = new File(path); |
|
84 |
} |
|
85 |
|
|
86 |
if (folder != null && folder.exists()) { |
|
79 | 87 |
String msg = Messages |
80 | 88 |
.getText("_the_folder_install_already_exists._do_you_want_to_delete_it_before_proceeding?"); |
81 | 89 |
|
Also available in: Unified diff