Skip to content

Commit

Permalink
Added a subproject for macrogenesis
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Oct 2, 2019
1 parent 98e769e commit 783ae99
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
path = src/main/web
url = git://github.com/faustedition/faust-web
branch = master
[submodule "macrogen"]
path = macrogen
url = git://github.com/faustedition/faust-macrogen.git
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ ext.architecture = "linux-x86_64" // TODO make adjustable
ext.toolDir = "$buildDir/tools"
ext.xmlDir = file('data/xml', PathValidation.DIRECTORY)

if (!project.hasProperty('dataDir')) {
def dataDirCandidate = rootProject.file('data/xml')
if (dataDirCandidate.isDirectory())
project.ext.dataDir = dataDirCandidate
else {
throw new FileNotFoundException("Data directory not found. Either put data into $dataDirCandidate, or set the dataDir property.")
}
logger.info("Using data from $dataDirCandidate")
}


group = 'net.faustedition'
Expand Down Expand Up @@ -103,9 +112,13 @@ task generateSVGs(type: JavaExec) {
main 'net.faustedition.gen.DiplomaticConversion'
}

build.dependsOn generateSVGs, copyWeb, copySource
assemble.dependsOn generateSVGs, copyWeb, copySource


task showProps { doLast {
project.properties.each { key, value -> println "$key=$value"}
}}

tasks.getByPath("src:main:xproc:generateSearch").dependsOn(tasks.getByPath("macrogen:runMacrogenAnalysis"))
tasks.getByPath("macrogen:runMacrogenReporting").dependsOn(tasks.getByPath("src:main:xproc:paraTable"))
tasks.getByPath("macrogen:runMacrogenReporting").dependsOn(tasks.getByPath("src:main:xproc:bargraphData"))
1 change: 1 addition & 0 deletions macrogen
Submodule macrogen added at 44f2d2
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include 'src:main:xproc'
include 'macrogen'

0 comments on commit 783ae99

Please sign in to comment.