Em 28/05/2014, às 22:39, Daniel Cunha <danielsoro(a)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 [RTFM]?
> On Wed, May 28, 2014 at 10:14 PM, George Gastaldi <ggastald(a)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(a)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,n] Y
>>
>> Download maven dependency...
>>
>> Installation request for [org.jboss.forge.addon:core,2.6.0.Final] will:
>> Deploy: [org.jboss.forge.addon:scaffold-faces,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:git,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:dev-tools-java,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:addons,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:shell-spi,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:shell,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:maven,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:database-tools,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:parser-json,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:text,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:ui-spi,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:ui,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:parser-xml,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:templates-spi,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:templates,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:javaee,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:convert,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:projects,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:parser-java,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:scaffold-spi,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:scaffold,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:configuration,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:addon-manager-spi,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:addon-manager,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:environment,2.6.0.Final]
>> Deploy: [org.jboss.forge.furnace.container:cdi,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:facets,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:resources,2.6.0.Final]
>> Deploy: [org.jboss.forge.furnace.container:simple,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:dependencies,2.6.0.Final]
>> Deploy: [org.jboss.forge.addon:core,2.6.0.Final]
>> Confirm installation [Y/n]? y
>>
>> Download maven dependecy...
>>
>> Installation completed successfully.
>>
>>
>> _____
>> | ___|__ _ __ __ _ ___
>> | |_ / _ \| `__/ _` |/ _ \ \\
>> | _| (_) | | | (_| | __/ //
>> |_| \___/|_| \__, |\___|
>> |___/
>>
>> JBoss Forge, version [ 2.6.1-SNAPSHOT ] - JBoss, by Red Hat, Inc. [
http://forge.jboss.org ]
>>
>>
>>
>>
>>> On Wed, May 28, 2014 at 10:05 PM, Daniel Cunha <danielsoro(a)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(a)redhat.com> wrote:
>>>> Remove your ~/.forge dir and try again. Any stacktrace?
>>>>
>>>>> Em 28/05/2014, às 21:46, Daniel Cunha <danielsoro(a)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(a)lists.jboss.org
>>>>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>
>>>> _______________________________________________
>>>> forge-dev mailing list
>>>> forge-dev(a)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(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>
> _______________________________________________
> forge-dev mailing list
> forge-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/forge-dev
--
Att;
Daniel Cunha (soro)
_______________________________________________
forge-dev mailing list
forge-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev