Package org.apache.flex.utilities.converter.exceptions

Examples of org.apache.flex.utilities.converter.exceptions.ConverterException


                    zipOutputStream.write(buf, 0, len);
                }
                zipOutputStream.closeEntry();
                in.close();
            } catch(IOException e) {
                throw new ConverterException("Error adding files to zip.", e);
            }
        }
    }
View Full Code Here


     * @throws ConverterException
     */
    @Override
    protected void processDirectory() throws ConverterException {
        if(!rootSourceDirectory.exists() || !rootSourceDirectory.isDirectory()) {
            throw new ConverterException("Flex SDK directory '" + rootSourceDirectory.getPath() + "' is invalid.");
        }

        generateCompilerArtifacts();
        generateFrameworkArtifacts();
    }
View Full Code Here

        compiler.setPackaging("pom");

        // Create a list of all libs that should belong to the Flex SDK compiler.
        final File directory = new File(rootSourceDirectory, "lib");
        if(!directory.exists() || !directory.isDirectory()) {
            throw new ConverterException("Compiler directory does not exist.");
        }
        final List<File> files = new ArrayList<File>();
        files.addAll(Arrays.asList(directory.listFiles(new FlexCompilerFilter())));

        // Add all jars in the "external" directory.
View Full Code Here

        final String artifactGroupId = framework.getGroupId() + "." + framework.getArtifactId();

        // Create a list of all libs that should belong to the Flex SDK framework.
        if(!directory.exists() || !directory.isDirectory()) {
            throw new ConverterException("Framework directory does not exist.");
        }
        final List<File> files = new ArrayList<File>();
        files.addAll(Arrays.asList(directory.listFiles(new FlexFrameworkFilter())));

        // Generate artifacts for every jar in the input directories.
View Full Code Here

                    }
                    jar.close();

                    return targetFile;
                } catch(IOException e) {
                    throw new ConverterException("Error creating source archive.", e);
                }
            }
        }
        return null;
    }
View Full Code Here

                    }
                    jar.close();

                    return targetFile;
                } catch(IOException e) {
                    throw new ConverterException("Error creating asdoc-templates archive.", e);
                }
            }
        }
        return null;
    }
View Full Code Here

            for (final File file : zipInputFiles) {
                addFileToZip(zipOutputStream, file, frameworksDirectory);
            }
            zipOutputStream.close();
        } catch(IOException e) {
            throw new ConverterException("Error generating configuration zip.", e);
        }
    }
View Full Code Here

                }

                // Return a reference on the theme swc.
                return targetFile;
            } catch(IOException e) {
                throw new ConverterException("Error generating theme swc.", e);
            }
        }
        return null;
    }
View Full Code Here

                    zipOutputStream.write(buf, 0, len);
                }
                zipOutputStream.closeEntry();
                in.close();
            } catch(IOException e) {
                throw new ConverterException("Error adding files to zip.", e);
            }
        }
    }
View Full Code Here

     * @throws ConverterException
     */
    @Override
    protected void processDirectory() throws ConverterException {
        if(!rootSourceDirectory.exists() || !rootSourceDirectory.isDirectory()) {
            throw new ConverterException("Air SDK directory '" + rootSourceDirectory.getPath() + "' is invalid.");
        }

        generateCompilerArtifacts();
        generateRuntimeArtifacts();
        generateFrameworkArtifacts();
View Full Code Here

TOP

Related Classes of org.apache.flex.utilities.converter.exceptions.ConverterException

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.