[JBoss JIRA] (JBIDE-26066) Spring Boot Project configurator: "Adding child module {0} to project {1}." reported as error in log where's no error
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-26066?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-26066 at 5/30/18 2:32 PM:
-------------------------------------------------------------------
[~jeffmaury] CC: jira for what we discovered today.
was (Author: adietish):
[~jeffmaury] FYI: jira for what we discovered today.
> Spring Boot Project configurator: "Adding child module {0} to project {1}." reported as error in log where's no error
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-26066
> URL: https://issues.jboss.org/browse/JBIDE-26066
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central
> Affects Versions: 4.6.0.AM2
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 4.6.0.AM3
>
>
> steps:
> # EXEC: import the 2 projects that are in the zip that's attached to JBIDE-25504
> # EXEC: look into the Eclipse log
> Result:
> You'll find the following error
> {code}
> "Adding child module penguins to project camel-ose-springboot-xml."
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 3 months
[JBoss JIRA] (JBIDE-26066) Spring Boot Project configurator: "Adding child module {0} to project {1}." reported as error in log where's no error
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-26066?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-26066:
------------------------------------------
This is caused by the following code:
{code:title=org.jboss.tools.maven.springboot.configurators.ModuleUtils}
private static void addChildModule(IProject dependency, IVirtualComponent project, IProgressMonitor monitor)
throws CoreException {
MavenCoreActivator.log(NLS.bind("Adding child module {0} to project {1}.",
dependency.getName(), project.getName()));
{code}
Turns out that *MavenCoreActivator.log()* logs messages as errors, which is quite unexpected.
{code:title=org.jboss.tools.maven.core.MavenCoreActivator}
public static void log(String message) {
IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, message);
getDefault().getLog().log(status);
}
{code}
> Spring Boot Project configurator: "Adding child module {0} to project {1}." reported as error in log where's no error
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-26066
> URL: https://issues.jboss.org/browse/JBIDE-26066
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: central
> Affects Versions: 4.6.0.AM2
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 4.6.0.AM3
>
>
> steps:
> # EXEC: import the 2 projects that are in the zip that's attached to JBIDE-25504
> # EXEC: look into the Eclipse log
> Result:
> You'll find the following error
> {code}
> "Adding child module penguins to project camel-ose-springboot-xml."
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 3 months
[JBoss JIRA] (JBIDE-26066) Spring Boot Project configurator: "Adding child module {0} to project {1}." reported as error in log where's no error
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-26066?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-26066:
-------------------------------------
Description:
steps:
# EXEC: import the 2 projects that are in the zip that's attached to JBIDE-25504
# EXEC: look into the Eclipse log
Result:
You'll find the following error
{code}
"Adding child module penguins to project camel-ose-springboot-xml."
{code}
was:
steps:
# EXEC: import the 2 projects that are in the zip that's attached to JBIDE-25504
# EXEC: look into the Eclipse log
Result:
You'll find the following error
{code}
"Adding child module {0} to project {1}."
{code}
> Spring Boot Project configurator: "Adding child module {0} to project {1}." reported as error in log where's no error
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-26066
> URL: https://issues.jboss.org/browse/JBIDE-26066
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: central
> Affects Versions: 4.6.0.AM2
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 4.6.0.AM3
>
>
> steps:
> # EXEC: import the 2 projects that are in the zip that's attached to JBIDE-25504
> # EXEC: look into the Eclipse log
> Result:
> You'll find the following error
> {code}
> "Adding child module penguins to project camel-ose-springboot-xml."
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 3 months