Package com.alibaba.citrus.maven.eclipse.base.ide

Examples of com.alibaba.citrus.maven.eclipse.base.ide.IdeDependency


    protected IdeDependency[] doDependencyResolution() throws MojoExecutionException {
        IdeDependency[] deps = super.doDependencyResolution();

        if (ignoreOsgiBundle) {
            for (int i = 0; i < deps.length; i++) {
                IdeDependency dep = deps[i];

                if (dep.isOsgiBundle()) {
                    deps[i] = new IdeDependency(dep.getGroupId(),
                                                dep.getArtifactId(),
                                                dep.getVersion(),
                                                dep.getClassifier(),
                                                dep.isReferencedProject(),
                                                dep.isTestDependency(),
                                                dep.isSystemScoped(),
                                                dep.isProvided(),
                                                dep.isAddedToClasspath(),
                                                dep.getFile(),
                                                dep.getType(),
                                                false, // force to be false
                                                null,
                                                -1,
                                                dep.getEclipseProjectName());
                }
            }
        }

        if (isPdeProject() && libdir != null) {
            for (int j = 0; j < deps.length; j++) {
                IdeDependency dep = deps[j];

                if (!dep.isProvided() && !dep.isReferencedProject() && !dep.isTestDependency() && !dep.isOsgiBundle() && dep.getFile() != null) {
                    File lib = new File(getProject().getBasedir(), libdir);
                    File srcfile = dep.getFile();

                    getLog().info("Copying " + srcfile.getName() + " to " + lib.getAbsolutePath());

                    try {
                        FileUtils.copyFileToDirectory(srcfile, lib);
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.maven.eclipse.base.ide.IdeDependency

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.