[JBoss JIRA] (FORGE-2021) Forge UI should not call UICommand.validate() if required inputs are not populated
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2021?page=com.atlassian.jira.plugin... ]
George Gastaldi reassigned FORGE-2021:
--------------------------------------
Assignee: George Gastaldi
> Forge UI should not call UICommand.validate() if required inputs are not populated
> ----------------------------------------------------------------------------------
>
> Key: FORGE-2021
> URL: https://issues.jboss.org/browse/FORGE-2021
> Project: Forge
> Issue Type: Feature Request
> Components: UI - API
> Affects Versions: 2.10.1.Final
> Reporter: Lincoln Baxter III
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> This command:
> {code}public class WindupWizard implements UIWizard, UICommand
> @Inject
> @WithAttributes(label = "Input", required = true, description = "Input File or Directory (a Directory is required for source mode)")
> private UIInput<FileResource<?>> input;
> @Override
> public void validate(UIValidationContext context)
> {
> FileResource<?> inputValue = this.input.getValue();
> File inputFile = inputValue.getUnderlyingResourceObject();
> {code}
> Results in an NPE when the command is called using guided execution:
> {code}
> [Desktop]$ windup-migrate-app
> Exception when parsing/running: windup-migrate-app , null
> [Desktop]$
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGEPLUGINS-171) Create an Asciidoctor Addon
by Maxime Gréau (JIRA)
[ https://issues.jboss.org/browse/FORGEPLUGINS-171?page=com.atlassian.jira.... ]
Maxime Gréau commented on FORGEPLUGINS-171:
-------------------------------------------
I've updated the project :
* update to Forge 2.10.1.Final
* add default asciidoctor plugin version + the option for setting a specific plugin version
* add an attributes option, so you can set any asciidoctor attributes
So here is an example :
* asciidoctor-setup --converter HTML5 --useAsciidoctorDiagram --toc left --sourceHighlighter coderay --attributes icons:font sectanchors:true idprefix
Please, tell me that it works for you :) (I've tested with a .m2 repository without asciidoctor-maven-plugin)
Thanks
> Create an Asciidoctor Addon
> ---------------------------
>
> Key: FORGEPLUGINS-171
> URL: https://issues.jboss.org/browse/FORGEPLUGINS-171
> Project: Forge Plugins/Addons
> Issue Type: Feature Request
> Reporter: Maxime Gréau
>
> Create an addon to handle Asciidoctor configuration.
> The highest value is simply bypassing the copy-and-paste task currently required to setup the pom for Asciidcotor configuration for Maven Project.
> There are two distinct needs here :
> 1) the first is setting up the regular plugin for processing src/main/asciidoc into one or more output formats.
> 2) the second is setting up the site plugin.
> Both plugins are setup in the example you can find here:
> https://github.com/asciidoctor/asciidoctor-maven-example/blob/master/pom.xml
> I've started to develop this addon here (early version) :
> https://github.com/mgreau/asciidoctor-forge-addon
> You can install it and try the feature 1) like this for example :
> asciidoctor-setup --asciiDocFile manual.adoc --converter HTML5 --docWriter Max --toc left --sourceHighlighter coderay
> I'd love to have your feedback about it.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2019) Compilation errors in JDK 1.8.0_20
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-2019?page=com.atlassian.jira.plugin... ]
Vineet Reynolds commented on FORGE-2019:
----------------------------------------
Looks like javac requires the {{Service}} class from {{furnace-simple}} to be present, during compilation of this class - {{CatCommand}} (for whatever reason deemed necessary; I'm not convinced it is definite assignment analysis, but javac now requires every class in the dependency graph). The {{Highlighter}} class used by {{CatCommand}}, is from the text addon, and this is the one that pull in the {{furnace-simple}} dependency, via the provided scope.
Since transitive provided scope is not valid in Maven, we need to find why the classpath needs all the classes, and maybe throw this question upwards to the JDK and Maven devs.
> Compilation errors in JDK 1.8.0_20
> ----------------------------------
>
> Key: FORGE-2019
> URL: https://issues.jboss.org/browse/FORGE-2019
> Project: Forge
> Issue Type: Bug
> Components: Forge Build
> Affects Versions: 2.10.1.Final
> Environment: Fedora 20
> java version "1.8.0_20"
> Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
> Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> {code}
> [ERROR] /usr/local/workspace/forge-core-2.0/shell/impl/src/main/java/org/jboss/forge/addon/shell/command/CatCommand.java:[89,27] cannot access org.jboss.forge.furnace.container.simple.Service
> class file for org.jboss.forge.furnace.container.simple.Service not found
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project javaee-impl: Compilation failure
> [ERROR] /usr/local/workspace/forge-core-2.0/javaee/impl/src/main/java/org/jboss/forge/addon/javaee/rest/generator/ResourceGeneratorUtil.java:[42,65] cannot access org.jboss.forge.furnace.container.simple.Service
> [ERROR] class file for org.jboss.forge.furnace.container.simple.Service not found
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2019) Compilation errors in JDK 1.8.0_20
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-2019?page=com.atlassian.jira.plugin... ]
Vineet Reynolds edited comment on FORGE-2019 at 9/18/14 4:37 PM:
-----------------------------------------------------------------
Looks like javac requires the {{Service}} class from {{furnace-simple}} to be present, during compilation of this class - {{CatCommand}} (for whatever reason deemed necessary; I'm not convinced it is definite assignment analysis, but javac now requires every class in the dependency graph). The {{Highlighter}} class used by {{CatCommand}}, is from the text addon, and this is the one that pull in the {{furnace-simple}} dependency, via the provided scope.
Since transitive provided scope is not valid in Maven, we need to find why the compiler needs all the classes, and maybe throw this question upwards to the JDK and Maven devs.
was (Author: vineet.reynolds):
Looks like javac requires the {{Service}} class from {{furnace-simple}} to be present, during compilation of this class - {{CatCommand}} (for whatever reason deemed necessary; I'm not convinced it is definite assignment analysis, but javac now requires every class in the dependency graph). The {{Highlighter}} class used by {{CatCommand}}, is from the text addon, and this is the one that pull in the {{furnace-simple}} dependency, via the provided scope.
Since transitive provided scope is not valid in Maven, we need to find why the classpath needs all the classes, and maybe throw this question upwards to the JDK and Maven devs.
> Compilation errors in JDK 1.8.0_20
> ----------------------------------
>
> Key: FORGE-2019
> URL: https://issues.jboss.org/browse/FORGE-2019
> Project: Forge
> Issue Type: Bug
> Components: Forge Build
> Affects Versions: 2.10.1.Final
> Environment: Fedora 20
> java version "1.8.0_20"
> Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
> Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> {code}
> [ERROR] /usr/local/workspace/forge-core-2.0/shell/impl/src/main/java/org/jboss/forge/addon/shell/command/CatCommand.java:[89,27] cannot access org.jboss.forge.furnace.container.simple.Service
> class file for org.jboss.forge.furnace.container.simple.Service not found
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project javaee-impl: Compilation failure
> [ERROR] /usr/local/workspace/forge-core-2.0/javaee/impl/src/main/java/org/jboss/forge/addon/javaee/rest/generator/ResourceGeneratorUtil.java:[42,65] cannot access org.jboss.forge.furnace.container.simple.Service
> [ERROR] class file for org.jboss.forge.furnace.container.simple.Service not found
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2021) Forge UI should not call UICommand.validate() if required inputs are not populated
by Lincoln Baxter III (JIRA)
Lincoln Baxter III created FORGE-2021:
-----------------------------------------
Summary: Forge UI should not call UICommand.validate() if required inputs are not populated
Key: FORGE-2021
URL: https://issues.jboss.org/browse/FORGE-2021
Project: Forge
Issue Type: Feature Request
Components: UI - API
Affects Versions: 2.10.1.Final
Reporter: Lincoln Baxter III
Fix For: 2.x Future
This command:
{code}public class WindupWizard implements UIWizard, UICommand
@Inject
@WithAttributes(label = "Input", required = true, description = "Input File or Directory (a Directory is required for source mode)")
private UIInput<FileResource<?>> input;
@Override
public void validate(UIValidationContext context)
{
FileResource<?> inputValue = this.input.getValue();
File inputFile = inputValue.getUnderlyingResourceObject();
{code}
Results in an NPE when the command is called using guided execution:
{code}
[Desktop]$ windup-migrate-app
Exception when parsing/running: windup-migrate-app , null
[Desktop]$
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months