On Sat, Nov 17, 2018 at 11:44 AM Emilian Bold <emilian.b...@gmail.com>
wrote:

> NetBeans seems to be configured already with the sources (see screenshot).
>

There are two ways of dealing with the project setup:

1.  A NetBeans project
2.  A Gradle project

The code on Github is using a NetBeans project and I am able to set the
dual source tree, and it works.  However, it does not honer breakpoint in
Groovy for some reason.

I tried moving to a Gradle-based project to try to remain IDE nutural.
That's where I was unable to specify the source roots to the editor.  When
you have a Gradle-based project, you don't get to specify where the source
roots are through a NetBeans dialog.  Perhaps it is expecting something
from the build.gradle file.  I don't know.

In either case, however, NetBeans does no honor breakpoint in dynamically
loaded Groovy code - but does in dynamically loaded Java code.  (IntelliJ
works in all cases.)


> On my machine the problem seems to be there are some missing JARS in lib/ :
>

You can get the JARS with:

   1. gradle war
   2. gradle clean
   3. gradle copyToLibs
   4. git checkout libs

Thanks!

Blake



>
> > Warning: Could not find file
> /Users/apache/CoolBeansProjects/Kiss/libs/log4j-1.2.17.jar to copy.
>
> --emi
> On Sat, Nov 17, 2018 at 7:11 PM Blake McBride <blake1...@gmail.com> wrote:
> >
> > Hi, and thanks for the response.
> >
> > This is a Gradle / tomcat / Java / Groovy app.  The project is at
> https://github.com/kiss-web/Kiss
> >
> > I developed it with IntelliJ and it works well.  I'm trying to port it
> over to NetBeans to allow free development.  Under NetBeans, breakpoints in
> Groovy don't work, and I am having trouble with the two source roots.
> >
> > The stuff on GitHub uses NetBeans project-based approach.  I'm trying to
> scratch that and depend more on Gradle.  Not having an easy time.
> >
> > Any ideas on how I can tell the NetBeans editor that there are two
> source roots?
> >
> > Thanks!
> >
> > Blake McBride
> >
> >
> >
> > On Fri, Nov 16, 2018 at 11:54 PM Emilian Bold <emilian.b...@gmail.com>
> wrote:
> >>
> >> You didn't mention what kind of project you are using. The Sources
> >> window you have in the screenshot is for the Debugger so it doesn't
> >> configure the editor in any way.
> >>
> >> The Ant-based 'Java Project with Existing Sources' works for me (just
> >> tested). You can probably also configure a Maven project for this
> >> situation.
> >>
> >> --emi
> >> On Sat, Nov 17, 2018 at 5:29 AM Blake McBride <blake1...@gmail.com>
> wrote:
> >> >
> >> > Greetings,
> >> >
> >> > I am using NetBeans 8.2 on a 64 bit Linux box with Java 8.  My app
> has two source roots with no package name collisions.  I combine them as if
> they were under the same tree.  The problem I have is that the IDE tags the
> imports as errors as if it didn't know where the other source root is.
> >> >
> >> > I am attaching a picture of the problem.  I have
> application/services/MyJavaService.java attempting to import
> java/org/kissweb/database/Connection.java - which exists but the IDE flags
> it as unknown.
> >> >
> >> > How can I fix this?
> >> >
> >> > Thanks!
> >> >
> >> > Blake McBride
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> > For additional commands, e-mail: users-h...@netbeans.apache.org
> >> >
> >> > For further information about the NetBeans mailing lists, visit:
> >> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Reply via email to