Revision 32411 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.api/src/main/java/org/gvsig/installer/lib/api/creation/InstallerCreationService.java

View differences:

InstallerCreationService.java
89 89
public interface InstallerCreationService extends Service{
90 90
	
91 91
	/**
92
	 * It returns an instance of an {@link InstallerInfo} class, that is a 
93
	 * class that contains all the installer information (plugin name, plugin
94
	 * version...).
95
	 * @return
96
	 * The installer information.
97
	 */
98
	public InstallerInfo getInstallerInfo();
99
	
100
	/**
101 92
	 * It sets the directory where the plugin is located, that it has to
102 93
	 * be a valid gvSIG plugin directory. 	
103 94
	 * @param pluginDirectory
......
106 97
	 * This exception is thrown when the directory doesn't exist or the directory is
107 98
	 * not a valid gvSIG plugin directory.
108 99
	 */
109
	public void setPluginDirectory(File pluginDirectory) throws InstallerCreationServiceException;
100
	public void setApplicationDirectory(File applicationDirectory) throws InstallerCreationServiceException;
110 101
	
111 102
	/**
112
	 * This method reads the install.info file and loads the installation information
113
	 * into the current installer creation process. It also reads the information to 
114
	 * copy some external files and add them to the current installer creation execution.
115
	 * @throws InstallerCreationServiceException
116
	 * This exception is thrown when the directory is not valid gvSIG plugin directory.
117
	 */
118
	public void loadInstallInfoFromDirectory() throws InstallerCreationServiceException;
119
	
120
	/**
121 103
	 * It creates the installer file and copy it in the stream received like
122 104
	 * an argument.
123 105
	 * @param installerStream
......
126 108
	 * It is thrown when there is an exception creating the installer.
127 109
	 */
128 110
	public void createInstaller(OutputStream installerStream) throws InstallerCreationServiceException;	
111
	
112
	
113
	public void setSelectedPlugin(int index) throws InstallerCreationServiceException;
114
	
115
	public void setSelectedPlugin(String code);
116
	
117
	public int getPluginsSize();
118
	
119
	/**
120
	 * It returns an instance of an {@link InstallerInfo} class, that is a 
121
	 * class that contains all the installer information (plugin name, plugin
122
	 * version...).
123
	 * @return
124
	 * The installer information.
125
	 */
126
	public InstallerInfo getPluginInfoAt(int index);
127
	
128
	public InstallerInfo getSelectedPlugin() throws InstallerCreationServiceException;
129
	
130
	public String getDefaultAntScript() throws InstallerCreationServiceException;
129 131

  
130 132
}
131 133

  

Also available in: Unified diff