Yep!  The primary line that enables that is this line <https://github.com/NetLogo/Sound-Extension/blob/hexy/build.sbt#L14> (which tells SBT where to find Java source files).  SBT has good support for both Scala and Java (and possibly even other JVM languages).  For the most part, SBT is just a build tool.  But it just so happens that it's the only build tool that the NetLogo Extension Plugin works with.

Jason

On 7/29/19 3:54 PM, Steve Scott wrote:
I noticed that the sound extension uses sbt to build, but uses  java source code?

On Mon, Jul 8, 2019 at 3:46 PM Jason Bertsche <jason.berts...@northwestern.edu <mailto:jason.berts...@northwestern.edu>> wrote:

    Hi Steve,

    If your goal is to make a new extension, you shouldn't need to
    compile that plugin at all.  We've already compiled it and hosted
    it somewhere where everyone can access it.  If you want to use the
    plugin, just go to the 'project/plugins.sbt' file /in your
    extension's directory/ and add this code to it:

    resolvers += Resolver.url( "NetLogo-JVM",
    url("http://dl.bintray.com/content/netlogo/NetLogo-JVM
    
<https://urldefense.proofpoint.com/v2/url?u=http-3A__dl.bintray.com_content_netlogo_NetLogo-2DJVM&d=DwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=sxGjFFyk2A6rYHwAdDtnqeTKj3cEcXDGDo_G9va2ruI&m=yNsUyBBYoqZUndVuw_Ooy7FW1vqkXHXr1pI4WAA6dK8&s=0lXsuN5-OeJz3_mvq3ZBuXERk-X7QV9q2joqmZ300T0&e=>"))(
    Resolver.ivyStylePatterns) addSbtPlugin("org.nlogo" %
    "netlogo-extension-plugin" % "3.2")


    In general, when in doubt about the boilerplate that goes into
    making your run-of-the-mill NetLogo extension, I recommend using
    the Sample Scala Extension
    
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_NetLogo_Sample-2DScala-2DExtension&d=DwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=sxGjFFyk2A6rYHwAdDtnqeTKj3cEcXDGDo_G9va2ruI&m=yNsUyBBYoqZUndVuw_Ooy7FW1vqkXHXr1pI4WAA6dK8&s=SQQxRfM-OYaOl3dPd0o8AG6lY8nMdqP8xDlDE6TNM6M&e=>
    as a point of reference, or even just cloning it and then
    modifying it to add your primitives and preferred extension name,
    etc..

    On Saturday, July 6, 2019 at 8:46:50 PM UTC-5, Steve Scott wrote:

        Hello. Just joined this group. Name is Steve. Pleased to meet you.

        I am finally able to compile netlogo-extension-plugin master
        using
        |
        sbt package
        |
        Entercode here...
        |


        |

        This generated the file
        |
        netlogo-extension-plugin-3.2.jar
        |
        I renamed it
        |
        netlogo-extension-plugin
        |
        I am getting the error:
        |
        Bad extension 'netlogo-extension-plugin': Can't find extension
        name in Manifest.
        |

        Where is the manifest set in netlogo-extension-plugin? Inside
        src\sbt-test.netlogo-extension-plugin\basic\ there is
        something called build.sbt with the name "Hello-Extension" and
        netLogoExtName := "helloscala" but those aren't found in netlogo.

        Am I compiling in the wrong directory? I was not able to
        create a package from the basic directory.

        Thanks for your insight.

-- You received this message because you are subscribed to the Google
    Groups "netlogo-devel" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to netlogo-devel+unsubscr...@googlegroups.com
    <mailto:netlogo-devel+unsubscr...@googlegroups.com>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/netlogo-devel/b30a6c8e-e7d3-4b0e-af2d-2649495fbebe%40googlegroups.com
    
<https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_netlogo-2Ddevel_b30a6c8e-2De7d3-2D4b0e-2Daf2d-2D2649495fbebe-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=sxGjFFyk2A6rYHwAdDtnqeTKj3cEcXDGDo_G9va2ruI&m=yNsUyBBYoqZUndVuw_Ooy7FW1vqkXHXr1pI4WAA6dK8&s=2pWlMXuZO5kRazHqRcvQG4rnEGNKGxc1BTrHE90wLUE&e=>.



--
From the personal email account of Steve Scott.
--
You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com <mailto:netlogo-devel+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/CA%2BM9PAMmdJEPAa%2BhQqnrFbs5NWJa%2BYhYE6qmnisNDMZjJ7QQcA%40mail.gmail.com <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_netlogo-2Ddevel_CA-252BM9PAMmdJEPAa-252BhQqnrFbs5NWJa-252BYhYE6qmnisNDMZjJ7QQcA-2540mail.gmail.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=sxGjFFyk2A6rYHwAdDtnqeTKj3cEcXDGDo_G9va2ruI&m=yNsUyBBYoqZUndVuw_Ooy7FW1vqkXHXr1pI4WAA6dK8&s=dkzLmAREa0caIjJhdfC6OTUCj6mNpUBBDFbaKLoOddY&e=>.

--
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netlogo-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netlogo-devel/cd9604d3-9543-251d-6e5c-bba5fecf01a2%40northwestern.edu.

Reply via email to