Examples of PluginRef


Examples of org.jboss.forge.shell.util.PluginRef

   public void installFromIndex(
            @Option(description = "plugin-name", completer = IndexPluginNameCompleter.class) final String pluginName,
            @Option(name = "version", description = "branch, tag, or version to build") final String version,
            final PipeOut out) throws Exception
   {
      PluginRef plugin = PluginUtil.findPluginByName(shell, configuration, pluginName, true);

      if (plugin == null)
      {
         throw new RuntimeException("no plugin found with name [" + pluginName + "]");
      }
      else
      {
         ShellMessages.info(out, "Preparing to install plugin: " + plugin.getName());

         if (plugin.isGit())
         {
            installFromGit(plugin.getGitRepo(), Strings.isNullOrEmpty(version) ? plugin.getGitRef() : version, null,
                     false,
                     out);
         }
         else
         {
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

   public void installFromIndex(
            @Option(description = "plugin-name", completer = IndexPluginNameCompleter.class) final String pluginName,
            @Option(name = "version", description = "branch, tag, or version to build") final String version,
            final PipeOut out) throws Exception
   {
      PluginRef plugin = PluginUtil.findPluginByName(shell, configuration, pluginName, true);

      if (plugin == null)
      {
         throw new RuntimeException("no plugin found with name [" + pluginName + "]");
      }
      else
      {
         ShellMessages.info(out, "Preparing to install plugin: " + plugin.getName());

         if (plugin.isGit())
         {
            installFromGit(plugin.getGitRepo(), Strings.isNullOrEmpty(version) ? plugin.getGitRef() : version, null,
                     out);
         }
         else
         {
            throw new UnsupportedOperationException("Not yet implemented");
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

   public void installFromIndex(
            @Option(description = "plugin-name", completer = IndexPluginNameCompleter.class, required = true) final String pluginName,
            @Option(name = "version", description = "branch, tag, or version to build") final String version,
            final PipeOut out) throws Exception
   {
      PluginRef plugin = PluginUtil.findPluginByName(shell, configuration, pluginName, true);

      if (plugin == null)
      {
         throw new RuntimeException("no plugin found with name [" + pluginName + "]");
      }
      else
      {
         ShellMessages.info(out, "Preparing to install plugin: " + plugin.getName());

         if (plugin.isGit())
         {
            installFromGit(plugin.getGitRepo(), Strings.isNullOrEmpty(version) ? plugin.getGitRef() : version, null,
                     false, plugin.getArtifact(),
                     out);
         }
         else
         {
            throw new UnsupportedOperationException("Not yet implemented");
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

      {
         throw new RuntimeException("ambiguous plugin query: multiple matches for [" + pluginName + "]");
      }
      else
      {
         PluginRef ref = plugins.get(0);
         ShellMessages.info(out, "Preparing to install plugin: " + ref.getName());

         if (!ref.isGit())
         {
            installFromMvnRepos(ref.getArtifact(), out, new DependencyRepositoryImpl("custom", ref.getHomeRepo()));
         }
         else if (ref.isGit())
         {
            installFromGit(ref.getGitRepo(), ref.getGitRef(), null, out);
         }
      }
   }
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

      {
         throw new RuntimeException("ambiguous plugin query: multiple matches for [" + pluginName + "]");
      }
      else
      {
         PluginRef ref = plugins.get(0);
         ShellMessages.info(out, "Preparing to install plugin: " + ref.getName());

         if (!ref.isGit())
         {
            installFromMvnRepos(ref.getArtifact(), out, new DependencyRepositoryImpl("custom", ref.getHomeRepo()));
         }
         else if (ref.isGit())
         {
            installFromGit(ref.getGitRepo(), ref.getGitRef(), null, out);
         }
      }
   }
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

      {
         throw new RuntimeException("ambiguous plugin query: multiple matches for [" + pluginName + "]");
      }
      else
      {
         PluginRef ref = plugins.get(0);
         ShellMessages.info(out, "Preparing to install plugin: " + ref.getName());

         if (!ref.isGit())
         {
            installFromMvnRepos(ref.getArtifact(), out, new DependencyRepositoryImpl("custom", ref.getHomeRepo()));
         }
         else if (ref.isGit())
         {
            installFromGit(ref.getGitRepo(), ref.getGitRef(), null, out);
         }
      }
   }
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

      {
         throw new RuntimeException("ambiguous plugin query: multiple matches for [" + pluginName + "]");
      }
      else
      {
         PluginRef ref = plugins.get(0);
         ShellMessages.info(out, "Preparing to install plugin: " + ref.getName());

         if (!ref.isGit())
         {
            installFromMvnRepos(ref.getArtifact(), out, new DependencyRepositoryImpl("custom", ref.getHomeRepo()));
         }
         else if (ref.isGit())
         {
            installFromGit(ref.getGitRepo(), ref.getGitRef(), null, out);
         }
      }
   }
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

      {
         throw new RuntimeException("ambiguous plugin query: multiple matches for [" + pluginName + "]");
      }
      else
      {
         PluginRef ref = plugins.get(0);
         ShellMessages.info(out, "Preparing to install plugin: " + ref.getName());

         if (!ref.isGit())
         {
            installFromMvnRepos(ref.getArtifact(), out, new DependencyRepositoryImpl("custom", ref.getHomeRepo()));
         }
         else if (ref.isGit())
         {
            installFromGit(ref.getGitRepo(), ref.getGitRef(), null, out);
         }
      }
   }
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

   public void installFromIndex(
            @Option(description = "plugin-name", completer = IndexPluginNameCompleter.class) final String pluginName,
            @Option(name = "version", description = "branch, tag, or version to build") final String version,
            final PipeOut out) throws Exception
   {
      PluginRef plugin = PluginUtil.findPluginByName(shell, configuration, pluginName, true);

      if (plugin == null)
      {
         throw new RuntimeException("no plugin found with name [" + pluginName + "]");
      }
      else
      {
         ShellMessages.info(out, "Preparing to install plugin: " + plugin.getName());

         if (plugin.isGit())
         {
            installFromGit(plugin.getGitRepo(), Strings.isNullOrEmpty(version) ? plugin.getGitRef() : version, null, out);
         }
         else
         {
            throw new UnsupportedOperationException("Not yet implemented");
         }
View Full Code Here

Examples of org.jboss.forge.shell.util.PluginRef

   public void installFromIndex(
            @Option(description = "plugin-name", completer = IndexPluginNameCompleter.class) final String pluginName,
            @Option(name = "version", description = "branch, tag, or version to build") final String version,
            final PipeOut out) throws Exception
   {
      PluginRef plugin = PluginUtil.findPluginByName(shell, configuration, pluginName, true);

      if (plugin == null)
      {
         throw new RuntimeException("no plugin found with name [" + pluginName + "]");
      }
      else
      {
         ShellMessages.info(out, "Preparing to install plugin: " + plugin.getName());

         if (plugin.isGit())
         {
            installFromGit(plugin.getGitRepo(), Strings.isNullOrEmpty(version) ? plugin.getGitRef() : version, null,
                     out);
         }
         else
         {
            throw new UnsupportedOperationException("Not yet implemented");
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.