Package aQute.bnd.build.model.clauses

Examples of aQute.bnd.build.model.clauses.ExportedPackage


public class APITemplate implements IProjectTemplate {

    public void modifyInitialBndModel(BndEditModel model, String projectName, ProjectPaths projectPaths) {
        model.setExportedPackages(Arrays.asList(new ExportedPackage[] {
            new ExportedPackage(projectName, new Attrs())
        }));

        // Bundle-Version: 1.0.0
        model.setBundleVersion("1.0.0.${tstamp}");
View Full Code Here


            added = new LinkedList<ExportedPackage>();

            // Select the results
            for (Object result : results) {
                String newPackageName = (String) result;
                ExportedPackage newPackage = new ExportedPackage(newPackageName, new Attrs());
                added.add(newPackage);
            }
        }
        return added;
    }
View Full Code Here

        }
    }

    @Override
    protected ExportedPackage newHeaderClause(String text) {
        return new ExportedPackage(text, new Attrs());
    }
View Full Code Here

                                    addDirtyProperty(aQute.bnd.osgi.Constants.PRIVATE_PACKAGE);
                                }
                            }, new Action(MessageFormat.format("Add \"{0}\" to Exported Packages.", packageName)) {
                                @Override
                                public void run() {
                                    model.addExportedPackage(new ExportedPackage(packageName, null));
                                    addDirtyProperty(aQute.bnd.osgi.Constants.PRIVATE_PACKAGE);
                                }
                            }
                    };
                }
View Full Code Here

            added = new LinkedList<ExportedPackage>();

            // Select the results
            for (Object result : results) {
                String newPackageName = (String) result;
                ExportedPackage newPackage = new ExportedPackage(newPackageName, new Attrs());
                added.add(newPackage);
            }
        }
        return added;
    }
View Full Code Here

        }
    }

    @Override
    protected ExportedPackage newHeaderClause(String text) {
        return new ExportedPackage(text, new Attrs());
    }
View Full Code Here

        // Add package exports
        List<IPath> selectedPackages = packageListPage.getSelectedPackages();
        for (IPath pkg : selectedPackages) {
            Attrs props = new Attrs();
            props.put(Constants.VERSION_ATTRIBUTE, BndEditModel.BUNDLE_VERSION_MACRO);
            ExportedPackage export = new ExportedPackage(pkg.toString().replace('/', '.'), props);

            exports.add(export);
        }

        model.setBuildPath(buildPath);
View Full Code Here

        model.setBuildPath(buildPath);

        model.setBundleActivator(projectName + ".mongo.Activator");

        model.setPrivatePackages(Arrays.asList(new String[] { projectName + ".mongo" }));
        model.setExportedPackages(Arrays.asList(new ExportedPackage(projectName + ".api", new Attrs())));
       
    }
View Full Code Here

public class APITemplate implements IProjectTemplate {

    @Override
    public void modifyInitialBndModel(BndEditModel model, String projectName, ProjectPaths projectPaths) {
        model.setExportedPackages(Arrays.asList(new ExportedPackage[] {
            new ExportedPackage(projectName, new Attrs())
        }));

        // Bundle-Version: 1.0.0
        model.setBundleVersion("1.0.0.${tstamp}");
View Full Code Here

        model.setRunBundles(Arrays.asList(new VersionedClause[] {
            createBundleRef("org.mockito.mockito-all", null)
        }));

        model.setSystemPackages(Arrays.asList(new ExportedPackage[] {
            new ExportedPackage("sun.reflect", new Attrs())
        }));
        model.setRunVMArgs("-ea");
    }
View Full Code Here

TOP

Related Classes of aQute.bnd.build.model.clauses.ExportedPackage

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.