Revision 32562 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.impl/src/main/java/org/gvsig/installer/lib/impl/utils/Compress.java

View differences:

Compress.java
38 38
import java.util.zip.ZipEntry;
39 39
import java.util.zip.ZipOutputStream;
40 40

  
41
import org.gvsig.installer.lib.api.creation.InstallerCreationServiceException;
41
import org.gvsig.installer.lib.api.creation.MakePluginPackageServiceException;
42 42
import org.slf4j.Logger;
43 43
import org.slf4j.LoggerFactory;
44 44

  
......
53 53
		super();		
54 54
	}
55 55

  
56
	public void compressPlugin(File file, String fileName, OutputStream os) throws InstallerCreationServiceException {
56
	public void compressPlugin(File file, String fileName, OutputStream os) throws MakePluginPackageServiceException {
57 57
		ArrayList<File> files = new ArrayList<File>();
58 58
		ArrayList<String> fileNames = new ArrayList<String>();
59 59
		files.add(file);
......
61 61
		compressPlugins(files, fileNames, os);
62 62
	}
63 63

  
64
	public void compressPlugins(List<File> files, List<String> fileNames, OutputStream os) throws InstallerCreationServiceException {
64
	public void compressPlugins(List<File> files, List<String> fileNames, OutputStream os) throws MakePluginPackageServiceException {
65 65
		try{
66 66
			ZipOutputStream zos = new ZipOutputStream(new BufferedOutputStream(os));
67 67
					
......
84 84
			zos.close();
85 85
		} catch (Exception e) {
86 86
			logger.error("Error compressing the plugin");
87
			throw new InstallerCreationServiceException("Error writing the plugin", e);
87
			throw new MakePluginPackageServiceException("Error writing the plugin", e);
88 88
		}
89 89
	}
90 90

  

Also available in: Unified diff