[jbosstools-issues] [JBoss JIRA] (JBIDE-10743) Knowledge Base and CDI Builder not compatible with Scala project
Hendy Irawan (JIRA)
jira-events at lists.jboss.org
Thu Feb 23 05:12:37 EST 2012
[ https://issues.jboss.org/browse/JBIDE-10743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670201#comment-12670201 ]
Hendy Irawan commented on JBIDE-10743:
--------------------------------------
Note to self, the check happens here around line 141:
{code}
./jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java: getDefault().logError("Can't enable " + builderId + " support on the project " + project.getName() + " without Java builder."); //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$
{code}
supposedly, it should be possible to simply replace this line:
{code}
if(JAVA_BUILDER_ID.equals(existing[i].getBuilderName())) {
{code}
with: (Scala's builder is "org.scala-ide.sdt.core.scalabuilder")
{code}
if(JAVA_BUILDER_ID.equals(existing[i].getBuilderName()) || "org.scala-ide.sdt.core.scalabuilder".equals(existing[i].getBuilderName())) {
{code}
> Knowledge Base and CDI Builder not compatible with Scala project
> ----------------------------------------------------------------
>
> Key: JBIDE-10743
> URL: https://issues.jboss.org/browse/JBIDE-10743
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: CDI
> Affects Versions: 3.3.0.M5
> Reporter: Hendy Irawan
> Assignee: Alexey Kazakov
> Fix For: LATER
>
>
> Create a Scala web project using Scala IDE.
> A Scala project removes the Java builder because it also compiles the Java sources. However, a project without Java builder is not supported by JBoss Tools:
> {code}
> ./.bak_1.log:!MESSAGE Can't enable org.jboss.tools.jst.web.kb.kbbuilder support on the project satukancinta-data without Java builder.
> ./.bak_1.log:!MESSAGE Can't enable org.jboss.tools.cdi.core.cdibuilder support on the project satukancinta-data without Java builder.
> {code}
> Alternative builders should be supported by JBoss Tools, as long as it is compatible with Java builder.
> Similar issue might also apply to Groovy projects.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list