Package it.freedomotic.marketplace.util

Examples of it.freedomotic.marketplace.util.MarketPlaceFile


                jsonResponse = resp.getEntity().getText();
                System.out.println(jsonResponse);
                Gson gson = new Gson();
                Type collectionType = new TypeToken<MarketPlaceFile>() {
                }.getType();
                MarketPlaceFile pluginFile = gson.fromJson(jsonResponse, collectionType);
                pluginFile.setFilename(name);
                return pluginFile;
            } catch (IOException e) {
                System.out.println("IOException: " + e.getMessage());
            }
        } else {
View Full Code Here


                try {
                    File marketDirectory = new File(attachment);
                    File fileToUpload = findFileToUpload(marketDirectory);
                    if (fileToUpload != null) {

                        MarketPlaceFile pluginFile = drupal.postFile(cS, userid, marketDirectory.getAbsolutePath(), fileToUpload.getName());
                        plugin.addFile(pluginFile);
                        drupal.putPlugin(cS, nodeid, plugin);

                    } else {
                        throw new BuildException("No marketplace files in folder " + marketDirectory);
View Full Code Here

TOP

Related Classes of it.freedomotic.marketplace.util.MarketPlaceFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.