Examples of Plugin

  • org.syncany.plugins.Plugin
    A plugin can be used to store Syncany's repository files on any remote location. Implementations of the Plugin class identify a storage/transfer plugin.

    Using the 'id' attribute, plugins can be loaded by the {@link Plugins} class. Once a plugin is loaded, a corresponding {@link TransferSettings} object must be created and initialized. From the connection object, a {@link TransferManager} can then be used toupload/download files to the repository.

    Per naming convention, plugins must end by the name Plugin and extend this class. Furthermore, all plugin classes must reside in a package org.syncany.plugins.plugin-id, where plugin-id is the identifier specified by {@link #getId()}. @author Philipp C. Heckel

  • plugin.common.Plugin
  • plugins.PluginManager.tools.command.Plugin
    Plugin command used to list/load/unload/reload plugins at runtime. @author Witlospock @version 1.0
  • resources.digesters.Plugin
    Un plug-in es una extensi�n que se puede agregar a EasyBot. Por ejemplo, un robot y todos los componentes que lo conforman, son definidos como plug-ins.
    Un plug-in se crea a partir de un documento XML, y de un conjunto de reglas (tambi�n en formato XML) que permiten establecer los datos del estado del plug-in creado.
  • runjettyrun.Plugin
    The activator class controls the plug-in life cycle. @author hillenius

  • Examples of org.apache.maven.bootstrap.model.Plugin

            // ----------------------------------------------------------------------

            File generatedSourcesDirectory = null;
            if ( model.getPlugins().containsKey( MODELLO_PLUGIN_ID ) )
            {
                Plugin plugin = (Plugin) model.getPlugins().get( MODELLO_PLUGIN_ID );

                File modelFile = new File( basedir, (String) plugin.getConfiguration().get( "model" ) );

                System.out.println( "Model exists!" );

                String modelVersion = (String) plugin.getConfiguration().get( "version" );
                if ( modelVersion == null || modelVersion.trim().length() < 1 )
                {
                    System.out.println( "No model version configured. Using \'1.0.0\'..." );
                    modelVersion = "1.0.0";
                }

                generatedSourcesDirectory = new File( basedir, "target/generated-sources/modello" );

                if ( !generatedSourcesDirectory.exists() )
                {
                    generatedSourcesDirectory.mkdirs();
                }

                Dependency dependency = plugin.asDependencyPom();
                resolver.downloadDependencies( Collections.singletonList( dependency ) );
                File artifactFile = resolver.getArtifactFile( dependency );
                Model pluginReader = readModel( artifactFile, true );

                List dependencies = new ArrayList();
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

        {
            if (this.plugins != null && !this.plugins.isEmpty())
            {
                for (final Iterator iterator = this.plugins.iterator(); iterator.hasNext();)
                {
                    final Plugin plugin = (Plugin)iterator.next();
                    if (Constants.ARTIFACT_ID.equals(plugin.getArtifactId()))
                    {
                        final List dependencies = plugin.getDependencies();
                        if (dependencies != null)
                        {
                            for (final Iterator dependencyIterator = plugin.getDependencies().iterator();
                                dependencyIterator.hasNext();)
                            {
                                final Dependency dependency = (Dependency)dependencyIterator.next();
                                dependency.setScope(Artifact.SCOPE_RUNTIME);
                                this.addDependency(dependency);
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

            if (build != null)
            {
                final PluginManagement pluginManagement = build.getPluginManagement();
                if (pluginManagement != null && !pluginManagement.getPlugins().isEmpty())
                {
                    Plugin multiSourcePlugin = null;
                    for (final Iterator iterator = pluginManagement.getPlugins().iterator(); iterator.hasNext();)
                    {
                        final Plugin plugin = (Plugin)iterator.next();
                        if (MULTI_SOURCE_PLUGIN_ARTIFACT_ID.equals(plugin.getArtifactId()))
                        {
                            multiSourcePlugin = plugin;
                            break;
                        }
                    }
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

                final List plugins = this.getPlugins();
                if (plugins != null && !plugins.isEmpty())
                {
                    for (final Iterator iterator = plugins.iterator(); iterator.hasNext();)
                    {
                        final Plugin plugin = (Plugin)iterator.next();
                        if (pluginArtifactId.equals(plugin.getArtifactId()))
                        {
                            final List dependencies = plugin.getDependencies();
                            if (dependencies != null)
                            {
                                for (final Iterator dependencyIterator = plugin.getDependencies().iterator();
                                    dependencyIterator.hasNext();)
                                {
                                    this.addDependency(
                                        (Dependency)dependencyIterator.next(),
                                        scope);
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

        /**
         * We need the bundle plugin with a version higher than 2.5.0!
         */
        private Plugin getBundlePlugin() {
            Plugin bundlePlugin  = null;
            final List<Plugin> plugins = this.project.getBuildPlugins();
            for(final Plugin p : plugins) {
                if ( p.getArtifactId().equals(BUNDLE_PLUGIN_ARTIFACT_ID)
                     && p.getGroupId().equals(BUNDLE_PLUGIN_GROUP_ID) ) {
                    final ArtifactVersion pluginVersion = new DefaultArtifactVersion(p.getVersion());
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

        }

        private String getBundlePluginConfiguration(final String key) {
            String value = null;
            Plugin bundlePlugin = this.getBundlePlugin();
            if ( bundlePlugin != null ) {
                final Xpp3Dom config = (Xpp3Dom) bundlePlugin.getConfiguration();
                if ( config != null) {
                    final Xpp3Dom instructionsConfig = config.getChild(BUNDLE_PLUGIN_INSTRUCTIONS);
                    if ( instructionsConfig != null) {
                        final Xpp3Dom keyConfig = instructionsConfig.getChild(key);
                        if ( keyConfig != null ) {
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

                    Map<Object, List<Plugin>> predecessors = new LinkedHashMap<Object, List<Plugin>>();
                    List<Plugin> pending = new ArrayList<Plugin>();
                    for ( Plugin element : src )
                    {
                        Object key = getPluginKey( element );
                        Plugin existing = master.get( key );
                        if ( existing != null )
                        {
                            mergePlugin( existing, element, sourceDominant, context );

                            if ( !pending.isEmpty() )
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

            return createPlugin( project.getGroupId(), project.getArtifactId(), project.getVersion() );
        }

        private Plugin createPlugin( String groupId, String artifactId, String version )
        {
            Plugin plugin = new Plugin();
            plugin.setGroupId( groupId );
            plugin.setArtifactId( artifactId );
            plugin.setVersion( version );
            return plugin;
        }
    View Full Code Here

    Examples of org.apache.maven.model.Plugin

        {
            MavenProject project = createProject( "group", "artifact", "1.0" );

            Build build = project.getModel().getBuild();

            Plugin plugin = createPlugin( "other.group", "other-artifact", "1.0" );

            Dependency dep = createDependency( "group", "artifact", "1.0" );

            plugin.addDependency( dep );

            build.addPlugin( plugin );

            new ProjectSorter( Collections.singletonList( project ) );
        }
    View Full Code Here

    Examples of org.apache.maven.plugin.registry.Plugin

            {
                throw new MojoExecutionException( "Failed to parse plugin registry.", e );
            }

            String pluginKey = ArtifactUtils.versionlessKey( aGroupId, anArtifactId );
            Plugin plugin = (Plugin) pluginRegistry.getPluginsByKey().get( pluginKey );

            // if we can find the plugin, but we've gotten here, the useVersion must be missing; fill it in.
            if ( plugin != null )
            {
                if ( TrackableBase.GLOBAL_LEVEL.equals( plugin.getSourceLevel() ) )
                {
                    // do nothing. We don't rewrite the globals, under any circumstances.
                    getLog().warn( "Cannot update registered version for plugin {" + aGroupId + ":" + anArtifactId
                        + "}; it is specified in the global registry." );
                }
                else
                {
                    plugin.setUseVersion( aVersion );

                    SimpleDateFormat format =
                        new SimpleDateFormat( org.apache.maven.plugin.registry.Plugin.LAST_CHECKED_DATE_FORMAT );

                    plugin.setLastChecked( format.format( new Date() ) );
                }
            }
            else
            {
                plugin = new org.apache.maven.plugin.registry.Plugin();

                plugin.setGroupId( aGroupId );
                plugin.setArtifactId( anArtifactId );
                plugin.setUseVersion( aVersion );

                pluginRegistry.addPlugin( plugin );

                pluginRegistry.flushPluginsByKey();
            }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.