Package org.apache.flex.utilities.converter.model

Examples of org.apache.flex.utilities.converter.model.MavenArtifact


                        targetSwcFile = generateThemeSwc(themeDirectory);
                    }

                    if(targetSwcFile != null) {
                        // Generate the pom file.
                        final MavenArtifact themeArtifact = new MavenArtifact();
                        themeArtifact.setGroupId("org.apache.flex.framework.themes");
                        themeArtifact.setArtifactId(themeName);
                        themeArtifact.setVersion(flexSdkVersion);
                        themeArtifact.setPackaging("swc");
                        themeArtifact.addDefaultBinaryArtifact(targetSwcFile);

                        // In this case we don't want the resources to be copied.
                        super.writeArtifact(themeArtifact);
                    }
                }
View Full Code Here


        // Generate and Copy the SWC.
        final File targetSwcFile = generateThemeSwc(themeCssFile);

        if(targetSwcFile != null) {
            // Generate the pom file.
            final MavenArtifact themeArtifact = new MavenArtifact();
            themeArtifact.setGroupId("org.apache.flex.framework.themes");
            themeArtifact.setArtifactId(themeName);
            themeArtifact.setVersion(flexSdkVersion);
            themeArtifact.setPackaging("swc");
            themeArtifact.addDefaultBinaryArtifact(targetSwcFile);

            // In this case we don't want the resources to be copied.
            super.writeArtifact(themeArtifact);
        }
    }
View Full Code Here

     *
     * @throws ConverterException
     */
    protected void generateCompilerArtifacts() throws ConverterException {
        // Create the root artifact.
        final MavenArtifact compiler = new MavenArtifact();
        compiler.setGroupId("com.adobe.air");
        compiler.setArtifactId("compiler");
        compiler.setVersion(airSdkVersion);
        compiler.setPackaging("pom");

        // Create a list of all libs that should belong to the AIR 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 AirCompilerFilter())));

        // Generate artifacts for every jar in the input directories.
        for(final File sourceFile : files) {
            final MavenArtifact artifact = resolveArtifact(sourceFile, "com.adobe.air.compiler", airSdkVersion);
            compiler.addDependency(artifact);
        }

        // Write this artifact to file.
        writeArtifact(compiler);
View Full Code Here

TOP

Related Classes of org.apache.flex.utilities.converter.model.MavenArtifact

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.