public static void main(String[] args) throws IOException {
        SSWTBuildManager manager = new SSWTBuildManager();
        String buildNumber = manager.getBuildNumberFromWeb();
        LOG.info("Last Successful build: " + buildNumber);
        manager.setBuildNumber(buildNumber);
        manager.quit();

        if (args.length != 2) {
            LOG.info("Usage: java SSPPBuildManager tempFolder formalBuildFolder");
            System.exit(0);
        } else {
            File tempFolder = new File(args[0]);
            if (tempFolder.exists()) {
                FileUtils.deleteDirectory(tempFolder);
                tempFolder.mkdirs();
            }
            manager.setDownloadRootFolderPath(args[0]);

            File formalBuildFolder = new File(args[1]);
            if (!formalBuildFolder.exists() || !formalBuildFolder.isDirectory() || !formalBuildFolder.canWrite()) {
                LOG.info("The path doesn't exist or is not a writable directory: " + args[1]);
                System.exit(0);
            }
            manager.setFormalBuildFolder(args[1]);

            File targetFolder = new File(manager.getFormalBuildFolder() + File.separator + manager.getBuildNumber());
            if (targetFolder.exists()) {
                LOG.info("The build has been created before: " + targetFolder.getAbsolutePath() + ". Do nothing ...");
                System.exit(0);
            }

        }

        LOG.info("Downloading build from " + CI_URL);
        if (manager.downloadBuild()) {
            manager.decompressZip();
            manager.removeUselessFolder();
            LOG.info("Build is ready in " + manager.getFormalBuildFolder() + File.separator + manager.getBuildNumber());
        }
    }