Package de.innovationgate.wgpublisher.design.sync

Examples of de.innovationgate.wgpublisher.design.sync.WGDesignSyncException


                if (!targetFile.exists()) {
                    getLog().info("Adding new overlay folder " + getBaseFolder().getName().getRelativeName(targetFile.getName()));
                    targetFile.createFolder();
                }
                else if (targetFile.getType().equals(FileType.FILE)) {
                    throw new WGDesignSyncException("Unable to apply overlay. Folder '" +  getBaseFolder().getName().getRelativeName(targetFile.getName()) + " already exists as file. Delete it enable overlay management again");
                }
                copyNewResources(sourceFile, targetFile);
            }
            else if (sourceFile.getType().equals(FileType.FILE)) {
                if (!targetFile.exists()) {
View Full Code Here


            return null;
        }
       
        FileObject codeFile = getCodeFile();
        if (!codeFile.exists()) {
            throw new WGDesignSyncException("Code of file '" + getCodeFile().getName().getPath() + "' could not be read because the file does not exist.");
        }
       
   
        LineNumberReader reader = new LineNumberReader(createReader(codeFile));
        StringWriter writer = new StringWriter();
View Full Code Here

    }

    protected List<FileObject> getFileContainerFiles() throws FileSystemException, WGDesignSyncException {
        FileObject[] filesArray = getCodeFile().getChildren();
        if (filesArray == null) {
            throw new WGDesignSyncException("Cannot collect files from directory '" + getCodeFile().getName().getPathDecoded() + "'. Please verify directory existence.");
        }
       
        List<FileObject> files = new ArrayList<FileObject>();
        for (FileObject fileobj : filesArray) {
          if (fileobj.getType().equals(FileType.FILE) && !isExcludedFileContainerFile(fileobj)) {
View Full Code Here


        try {
            baseFolder = _fsManager.resolveFile(_designPath);
            if (!baseFolder.exists() || !baseFolder.getType().equals(FileType.FOLDER)) {
                throw new WGDesignSyncException("Directory location " + _designPath + " either does not exist or is not directory");
            }
        }
        catch (FileSystemException e) {
            throw new WGDesignSyncException("Unparseable VFS URI: " + _designPath, e);
        }

        _fsResources = new FileSystemResources(baseFolder);
    }
View Full Code Here

                _fileEncoding = _core.getWgaConfiguration().getDesignConfiguration().getDefaultEncoding();
                doInitialDeployment(_designKey);
                return true;
            }
            else {
                throw new WGDesignSyncException("Cannot perform initial deploy because the file system is readonly: " + getBaseFolder().getURL().toString());
            }
        }
        else {
            // Determine if syncdata file is present. If so, use this directory
            // as sync directory.
View Full Code Here

                _cipher = new DESEncrypter();
                _cipher.initObfuscation();
            }
        }
        catch (Exception e) {
            throw new WGDesignSyncException("Exception inizializing deobfuscation", e);
        }

    }
View Full Code Here

    private FileObject getSyncInfoFile() throws WGDesignSyncException {
        if (_fsResources != null) {
            return _fsResources.getDesignDefinitionFile();
        }
        else {
            throw new WGDesignSyncException("The base folder was retrieved from an illegal code position");
        }
    }
View Full Code Here

    protected FileObject getFilesFolder() throws WGDesignSyncException {
        if (_fsResources != null) {
            return _fsResources.getFilesFolder();
        }
        else {
            throw new WGDesignSyncException("The files folder was retrieved from an illegal code position");
        }
    }
View Full Code Here

    protected FileObject getScriptFolder() throws WGDesignSyncException {
        if (_fsResources != null) {
            return _fsResources.getScriptFolder();
        }
        else {
            throw new WGDesignSyncException("The base folder was retrieved from an illegal code position");
        }
    }
View Full Code Here

            return moduleFiles;
        }

        FileObject[] files = dir.getChildren();
        if (files == null) {
            throw new WGDesignSyncException("Cannot collect files from directory '" + dir.getName().getPathDecoded() + "'. Please verify directory existence.");
        }

        FileObject file;
        for (int i = 0; i < files.length; i++) {
            file = files[i];
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.design.sync.WGDesignSyncException

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.