1 Reply Latest reply on May 29, 2014 6:52 AM by danielcunha

    Re: [forge-dev] Forge doesn't work.

    gastaldi

      That would be a nice feature to have.

      Fancy a pull-request?

       

      Em 28/05/2014, às 22:39, Daniel Cunha <danielsoro@gmail.com> escreveu:

       

      George,

       

      Where the user see options of the bootstrap class with forge cli?

       

       

      if (args.length > 0)

            {

               for (int i = 0; i < args.length; i++)

               {

                  if ("--install".equals(args[i]) || "-i".equals(args[i]))

                  {

                     installAddon = args[++i];

                  }

                  else if ("--remove".equals(args[i]) || "-r".equals(args[i]))

                  {

                     removeAddon = args[++i];

                  }

                  else if ("--list".equals(args[i]) || "-l".equals(args[i]))

                  {

                     listInstalled = true;

                  }

                  else if ("--addonDir".equals(args[i]) || "-a".equals(args[i]))

                  {

                     furnace.addRepository(AddonRepositoryMode.MUTABLE, new File(args[++i]));

                  }

                  else if ("--immutableAddonDir".equals(args[i]) || "-m".equals(args[i]))

                  {

                     furnace.addRepository(AddonRepositoryMode.IMMUTABLE, new File(args[++i]));

                  }

                  else if ("--batchMode".equals(args[i]) || "-b".equals(args[i]))

                  {

                     batchMode = true;

                     furnace.setServerMode(false);

                  }

                  else if ("--debug".equals(args[i]) || "-d".equals(args[i]))

                  {

                     // This is just to avoid the Unknown option: --debug message below

                  }

                  else if ("--version".equals(args[i]) || "-v".equals(args[i]))

                  {

                     System.out.println("Forge version " + AddonRepositoryImpl.getRuntimeAPIVersion());

                     exitAfter = true;

                  }

                  else

                     System.out.println("Unknown option: " + args[i]);

               }

            }

      Exist a ‘forge —help’ that show all commands or I need read the manual ?

       

       

       

      >> On Wed, May 28, 2014 at 10:14 PM, George Gastaldi <ggastald@redhat.com> wrote:

      >> This is correct. It uses the latest released version, not snapshot when downloading the core. Use forge -i org.jboss.forge.addon:core,2.6.1-SNAPSHOT if you want the latest snapshot

      >>

      >>> Em 28/05/2014, às 22:12, Daniel Cunha <danielsoro@gmail.com> escreveu:

      >>>

      >>

      >>> forge

      >>> Using Forge at /home/soro/.m2/repository/org/jboss/forge/forge-distribution/2.6.1-SNAPSHOT/forge-distribution-2.6.1-SNAPSHOT

      >>> There are no addons installed; install core addons now? Y

      >>>

      >>> Download maven dependency...

      >>>

      >>> Installation request for will:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Deploy:

      >>> Confirm installation ? y

      >>>

      >>> Download maven dependecy...

      >>>

      >>> Installation completed successfully.

      >>>

      >>>

      >>>     _____                   

      >>>    |  ___|__  _ __ __ _  ___

      >>>    | |_ / _ \| `__/ _` |/ _ \ 

      >>>    |  | () | | | (_| |  __/  //

      >>>    |_|  \___/|_|  \__, |\___|

      >>>                    |___/     

      >>>

      >>> JBoss Forge, version - JBoss, by Red Hat, Inc. http://forge.jboss.org

      >>>

      >>>

      >>>

      >>>

      >>>> On Wed, May 28, 2014 at 10:05 PM, Daniel Cunha <danielsoro@gmail.com> wrote:

      >>>> George,

      >>>>

      >>>> Now my forge run ok, but i have a observation.

      >>>>

      >>>> My observation:

      >>>> I'm using Forge 2.6.1-SNAPSHOT. I have all components in my .m2 to 2.6.1-SNAPSHOT version, but when start forge 2.6.1-SNAPSHOT, It install components to 2.6.0. That's stranger?

      >>>>

      >>>>

      >>>>

      >>>>

      >>>>

      >>>>> On Wed, May 28, 2014 at 9:55 PM, George Gastaldi <ggastald@redhat.com> wrote:

      >>>>> Remove your ~/.forge dir and try again. Any stacktrace?

      >>>>>

      >>>>>> Em 28/05/2014, às 21:46, Daniel Cunha <danielsoro@gmail.com> escreveu:

      >>>>>>

      >>>>>

      >>>>>> Hi folks,

      >>>>>>

      >>>>>> I started to work with JBoss Forge 2.6.1-SNAPSHOT.

      >>>>>> When I run Bootstrap, forge started run, but the shell doesn't work.

      >>>>>> I have this problem with a bin mode. I compiled Forge but the problem is persistent.

      >>>>>>

      >>>>>> --

      >>>>>> Att;

      >>>>>> Daniel Cunha (soro)

      >>>>>> _______________________________________________

      >>>>>> forge-dev mailing list

      >>>>>> forge-dev@lists.jboss.org

      >>>>>> https://lists.jboss.org/mailman/listinfo/forge-dev

      >>>>>

      >>>>> _______________________________________________

      >>>>> forge-dev mailing list

      >>>>> forge-dev@lists.jboss.org

      >>>>> https://lists.jboss.org/mailman/listinfo/forge-dev

      >>>>

      >>>>

      >>>>

      >>>> --

      >>>> Att;

      >>>> Daniel Cunha (soro)

      >>>

      >>>

      >>>

      >>> --

      >>> Att;

      >>> Daniel Cunha (soro)

      >>> _______________________________________________

      >>> forge-dev mailing list

      >>> forge-dev@lists.jboss.org

      >>> https://lists.jboss.org/mailman/listinfo/forge-dev

      >>

      >> _______________________________________________

      >> forge-dev mailing list

      >> forge-dev@lists.jboss.org

      >> https://lists.jboss.org/mailman/listinfo/forge-dev

       

       

      --

      Att;

      Daniel Cunha (soro)

      _______________________________________________

      forge-dev mailing list

      forge-dev@lists.jboss.org

      https://lists.jboss.org/mailman/listinfo/forge-dev

       

        • 1. Re: [forge-dev] Forge doesn't work.
          danielcunha

          sure.

           

           

          On Thu, May 29, 2014 at 1:00 AM, George Gastaldi <ggastald@redhat.com>

          wrote:

           

          That would be a nice feature to have.

          Fancy a pull-request?

           

          Em 28/05/2014, às 22:39, Daniel Cunha <danielsoro@gmail.com> escreveu:

           

          George,

           

          Where the user see options of the bootstrap class with forge cli?

           

          >

          if (args.length > 0)

                {

                   for (int i = 0; i < args.length; i++)

                   {

                      if ("--install".equals(args[i]) || "-i".equals(args[i]))

                      {

                         installAddon = args[++i];

                      }

                      else if ("--remove".equals(args[i]) || "-r".equals(args[i]))

                      {

                         removeAddon = args[++i];

                      }

                      else if ("--list".equals(args[i]) || "-l".equals(args[i]))

                      {

                         listInstalled = true;

                      }

                      else if ("--addonDir".equals(args[i]) || "-a".equals(args[i]))

                      {

                         furnace.addRepository(AddonRepositoryMode.MUTABLE, new File(args[++i]));

                      }

                      else if ("--immutableAddonDir".equals(args[i]) || "-m".equals(args[i]))

                      {

                         furnace.addRepository(AddonRepositoryMode.IMMUTABLE, new File(args[++i]));

                      }

                      else if ("--batchMode".equals(args[i]) || "-b".equals(args[i]))

                      {

                         batchMode = true;

                         furnace.setServerMode(false);

                      }

                      else if ("--debug".equals(args[i]) || "-d".equals(args[i]))

                      {

                         // This is just to avoid the Unknown option: --debug message below

                      }

                      else if ("--version".equals(args[i]) || "-v".equals(args[i]))

                      {

                         System.out.println("Forge version " + AddonRepositoryImpl.getRuntimeAPIVersion());

                         exitAfter = true;

                      }

                      else

                         System.out.println("Unknown option: " + args[i]);

                   }

                }

           

          Exist a ‘forge —help’ that show all commands or I need read the manual

          ?

           

          >

          On Wed, May 28, 2014 at 10:14 PM, George Gastaldi <ggastald@redhat.com>

          wrote:

           

          >> This is correct. It uses the latest released version, not snapshot when

          >> downloading the core. Use forge -i

          >> org.jboss.forge.addon:core,2.6.1-SNAPSHOT if you want the latest snapshot

          >>

          >> Em 28/05/2014, às 22:12, Daniel Cunha <danielsoro@gmail.com> escreveu:

          >>

          >> forge

          >> Using Forge at

          >> /home/soro/.m2/repository/org/jboss/forge/forge-distribution/2.6.1-SNAPSHOT/forge-distribution-2.6.1-SNAPSHOT

          >> There are no addons installed; install core addons now? Y

          >>

          >> Download maven dependency...

          >>

          >> Installation request for will:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Deploy:

          >> Confirm installation ? y

          >>

          >> Download maven dependecy...

          >>

          >> Installation completed successfully.

          >>

          >>

          >>     _____

          >>    |  ___|__  _ __ __ _  ___

          >>    | |_ / _ \| `__/ _` |/ _ \ 

          >>    |  | () | | | (_| |  __/  //

          >>    |_|  \___/|_|  \__, |\___|

          >>                    |___/

          >>

          >> JBoss Forge, version - JBoss, by Red Hat, Inc. [

          >> http://forge.jboss.org ]

          >>

          >>

          >>

          >>

          >> On Wed, May 28, 2014 at 10:05 PM, Daniel Cunha <danielsoro@gmail.com>

          >> wrote:

          >>

          >>> George,

          >>>

          >>> Now my forge run ok, but i have a observation.

          >>>

          >>> My observation:

          >>> I'm using Forge 2.6.1-SNAPSHOT. I have all components in my .m2 to

          >>> 2.6.1-SNAPSHOT version, but when start forge 2.6.1-SNAPSHOT, It install

          >>> components to 2.6.0. That's stranger?

          >>>

          >>>

          >>>

          >>>

          >>>

          >>> On Wed, May 28, 2014 at 9:55 PM, George Gastaldi <ggastald@redhat.com>

          >>> wrote:

          >>>

          >>>> Remove your ~/.forge dir and try again. Any stacktrace?

          >>>>

          >>>> Em 28/05/2014, às 21:46, Daniel Cunha <danielsoro@gmail.com> escreveu:

          >>>>

          >>>> Hi folks,

          >>>>

          >>>> I started to work with JBoss Forge 2.6.1-SNAPSHOT.

          >>>> When I run Bootstrap, forge started run, but the shell doesn't work.

          >>>> I have this problem with a bin mode. I compiled Forge but the problem

          >>>> is persistent.

          >>>>

          >>>> --

          >>>> Att;

          >>>> Daniel Cunha (soro)

          >>>>

          >>>> _______________________________________________

          >>>> forge-dev mailing list

          >>>> forge-dev@lists.jboss.org

          >>>> https://lists.jboss.org/mailman/listinfo/forge-dev

          >>>>

          >>>>

          >>>> _______________________________________________

          >>>> forge-dev mailing list

          >>>> forge-dev@lists.jboss.org

          >>>> https://lists.jboss.org/mailman/listinfo/forge-dev

          >>>>

          >>>

          >>>

          >>>

          >>> --

          >>> Att;

          >>> Daniel Cunha (soro)

          >>>

          >>

          >>

          >>

          >> --

          >> Att;

          >> Daniel Cunha (soro)

          >>

          >> _______________________________________________

          >> forge-dev mailing list

          >> forge-dev@lists.jboss.org

          >> https://lists.jboss.org/mailman/listinfo/forge-dev

          >>

          >>

          >> _______________________________________________

          >> forge-dev mailing list

          >> forge-dev@lists.jboss.org

          >> https://lists.jboss.org/mailman/listinfo/forge-dev

          >>

          >

          >

          --

          Att;

          Daniel Cunha (soro)

           

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-dev

           

          >

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-dev

           

           

           

           

          --

          Att;

          Daniel Cunha (soro)