Skip to content

Commit

Permalink
Add new network extension submodule!
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Duncan committed May 14, 2014
1 parent 7605ffb commit c6a5902
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Expand Up @@ -48,6 +48,3 @@ tmp/
/resources/GUI_Strings_??.properties
/resources/system/dict.txt
/resources/system/dict3d.txt

# ignore nw extension until bundled
/extensions/nw
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -40,3 +40,6 @@
[submodule "Mathematica-Link"]
path = Mathematica-Link
url = https://github.com/NetLogo/Mathematica-Link.git
[submodule "extensions/nw"]
path = extensions/nw
url = https://github.com/NetLogo/NW-Extension
1 change: 1 addition & 0 deletions extensions/nw
Submodule nw added at af744c
5 changes: 4 additions & 1 deletion project/Extensions.scala
Expand Up @@ -28,9 +28,12 @@ object Extensions {
log.info("building extension: " + dir.getName)
val jar = dir / (dir.getName + ".jar")
val exitCode =
if((dir / "build.sbt").exists)
if((dir / "build.sbt").exists && (dir / "bin" / "sbt").exists)
Process(Seq("bin/sbt", "package"), dir,
"SCALA_JAR" -> scalaLibrary.getPath) ! log
else if((dir / "build.sbt").exists)
Process(Seq("sbt", "package"), dir,
"SCALA_JAR" -> scalaLibrary.getPath) ! log
else
Process(Seq("make", "-s", jar.getName), dir,
"SCALA_JAR" -> scalaLibrary.getPath) ! log
Expand Down

0 comments on commit c6a5902

Please sign in to comment.