Revision 33697

View differences:

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/MakePluginPackageService.java
108 108
        OutputStream bundleStream) throws MakePluginPackageServiceException;
109 109

  
110 110
    /**
111
     * Writes a package info file with the information provided.
112
     * 
113
     * @param packageInfo
114
     *            the package that has to be written into the file
115
     * @param folder
116
     *            the folder where the file is to be created
117
     * @throws MakePluginPackageServiceException
118
     *             it is thrown when there is an exception writing the file
119
     */
120
    public void writePackageInfo(PackageInfo packageInfo, File folder)
121
        throws MakePluginPackageServiceException;
122

  
123
    /**
111 124
     * It returns the number of plugin packages that are installed in the folder
112 125
     * that has been added using the constructor. It can be used in an iteration
113 126
     * process combined with the {@link #getPluginPackageInfo(int)} method to
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/creation/DefaultMakePluginPackageService.java
178 178

  
179 179
    private void writePackageInfo(PackageInfo packageInfo)
180 180
        throws MakePluginPackageServiceException {
181
        installerProviderServices.writePackageInfo(
182
            getAbsolutePluginPackageDirectory(packageInfo), packageInfo);
181
        writePackageInfo(packageInfo,
182
            getAbsolutePluginPackageDirectory(packageInfo));
183 183
    }
184 184

  
185
    public void writePackageInfo(PackageInfo packageInfo, File folder)
186
        throws MakePluginPackageServiceException {
187
        installerProviderServices.writePackageInfo(folder, packageInfo);
188
    }
189

  
185 190
    private void writeAntFile(PackageInfo packageInfo)
186 191
        throws MakePluginPackageServiceException {
187 192
        try {

Also available in: Unified diff