From: Thomas Walker Lynch Date: Tue, 10 Sep 2024 11:11:32 +0000 (+0000) Subject: moving files to 'primary' or 'synthesized' X-Git-Url: https://git.reasoningtechnology.com/style/static/%5B%5E?a=commitdiff_plain;h=cc0df2d401d09eb0ea833ebe8e1b7125c4b25d62;p=GQL-to-Cypher moving files to 'primary' or 'synthesized' --- diff --git a/developer/deprecated/Hibou_build.gradle b/developer/deprecated/Hibou_build.gradle new file mode 100644 index 0000000..ca38ddd --- /dev/null +++ b/developer/deprecated/Hibou_build.gradle @@ -0,0 +1,106 @@ +task setup { + doLast { + def dirs = [ + "$(ANTLR_IN_PRIMARY_DIR)", + "$(JAVA_COMP_IN_DIR)", + "$(JAVA_COMP_IN_PRIMARY_DIR)", + "$(JAVA_COMP_IN_ANTLR_DIR)", + "$(JAVA_COMP_IN_SYN_DIR)", + "$(JVM_IN_DIR)", + "$(EXECUTOR_IN_DIR)", + "test", + "deprecated", + "experiment", + "ologist", + "temporary" + ] + dirs.each { dir -> + if (!file(dir).exists()) { + mkdir dir + } + } + } +} + +def compileJava(source, target) { + tasks.create(name: "compile${source}", type: Exec) { + commandLine '$(JAVA_COMP)', '-d', '$(JAVA_COMP_OUT_DIR)', '-sourcepath', '$(JAVA_COMP_IN_DL)', source + doLast { + println "Compiled ${source} to ${target}" + } + } +} + +def createJar(source, target) { + tasks.create(name: "jar${source}", type: Exec) { + commandLine '$(JAVA_ARCHIVE)', 'cf', target, '-C', '$(JAVA_COMP_OUT_DIR)', source + doLast { + println "Created ${target}" + } + } +} + +def createWrapper(source, target) { + tasks.create(name: "wrapper${source}", type: Exec) { + doLast { + def script = new File(target) + script.text = "#!/usr/bin/env bash\n$(JAVA_INTERP) -cp ${CLASSPATH}:${JVM_IN_DP}:${JVM_IN_DP}/${source}.jar ${source} \$@" + script.setExecutable(true) + println "Created program ${target}" + } + } +} + +task ANTLR_OUT_FL { + dependsOn setup + doLast { + println "Building ANTLR_OUT_FL..." + // Add specific build steps for ANTLR_OUT_FL here + } +} + +task all { + dependsOn ANTLR_OUT_FL + doLast { + println "Building all targets..." + } +} + +task clean { + doLast { + println "Use the command `clean