[FOray-commit] SF.net SVN: foray:[12423] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2022-01-18 17:51:08
|
Revision: 12423
http://sourceforge.net/p/foray/code/12423
Author: victormote
Date: 2022-01-18 17:51:05 +0000 (Tue, 18 Jan 2022)
Log Message:
-----------
Move Gradle setup from master up one level to foray.
Added Paths:
-----------
trunk/foray/build.gradle
trunk/foray/gradle/
trunk/foray/gradlew
trunk/foray/gradlew.bat
trunk/foray/settings.gradle
Removed Paths:
-------------
trunk/foray/master/build.gradle
trunk/foray/master/gradle/
trunk/foray/master/gradlew
trunk/foray/master/gradlew.bat
trunk/foray/master/settings.gradle
Copied: trunk/foray/build.gradle (from rev 12422, trunk/foray/master/build.gradle)
===================================================================
--- trunk/foray/build.gradle (rev 0)
+++ trunk/foray/build.gradle 2022-01-18 17:51:05 UTC (rev 12423)
@@ -0,0 +1,321 @@
+/*
+This build file was designed to run with Gradle version 7.3.3.
+
+Important targets to run from the master directory:
+ 1. gradle build
+ Normal build checking for compile errors and test failures.
+ 2. gradle publishToMavenLocal
+ Builds and publishes the artifacts to the local maven repository.
+ 3. gradle zipAllJavadoc
+ Builds the aggregate javadocs for all Java code in foray and puts them in a zip file.
+ 4. gradle zipAllBin
+ Builds a zip file containing FOray executables and all runtime dependencies.
+ 5. gradle zipAllSources
+ Builds a zip file containing all source code.
+ 6. gradle validateWeb
+ Validates the html pages for the web.
+ 7. gradle compileJava compileTestJava test
+ Runs all tests from all projects.
+*/
+
+
+plugins {
+ id 'io.freefair.lombok' version '5.3.0' apply false
+}
+
+def buildDate = new Date().format("yyyy-MM-dd 'at' HH:mm 'GMT'", TimeZone.getTimeZone("GMT"))
+
+allprojects {
+ apply plugin: 'java'
+
+ group = 'org.foray'
+ version = '0.4-SNAPSHOT'
+
+ /******************** See Note 1 below for information about dependency releases. ********************/
+ ext.javaSourceCompatibility = JavaVersion.VERSION_1_7
+ ext.javaTargetCompatibility = JavaVersion.VERSION_1_7
+
+ /* Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */
+ ext.axslVersion = '0.3-SNAPSHOT' // Latest is 0.3-SNAPSHOT as of 2021-01-12. See Note 2.
+ ext.svgDomVersion = '1.1' // See aXSL master/build.gradle
+ ext.mathMlDomVersion = '2.0' // See aXSL master/build.gradle
+ /* End of aXSL-related dependencies. */
+
+ ext.slf4jVersion = '1.7.30' // Latest is 1.7.30 as of 2021-01-12.
+ ext.commonsIoVersion = '2.6' // Latest is 2.8.0 as of 2021-01-12. See Note 3.
+ ext.commonsDiscoveryVersion = '0.5' // Latest is 0.5 as of 2021-01-12.
+ ext.commonsCliVersion = '1.4' // Latest is 1.4 as of 2021-01-12.
+ ext.xmlResolverVersion = '1.2' // Latest is 1.2 as of 2021-01-12. See Note 4.
+ ext.antVersion = '1.9.15' // Latest is 1.10.9 as of 2021-01-12. See Note 5.
+ ext.servletApiVersion = '3.1.0' // Latest is 4.0.1 as of 2021-01-12. See Note 6.
+ ext.xmlgraphicsCommonsVersion = '2.6' // Latest is 2.6 as of 2022-01-17.
+ ext.batikVersion = '1.14' // Latest is 1.14 as of 2022-01-17.
+ ext.jeuclidVersion = '3.1.14' // Latest is 3.1.14 as of 2021-01-12. See Note 7.
+ ext.icu4jVersion = '68.2' // Latest is 68.2 as of 2021-01-12.
+
+ ext.junitVersion = '4.13.2' // Latest is 5.8.2 as of 2022-01-17. See Note 8.
+ ext.mockitoVersion = '2.28.2' // Latest is 3.7.0 as of 2021-01-12. See Note 9.
+ ext.logbackClassicVersion = '1.2.3' // Latest is 1.2.3 as of 2021-01-12.
+
+ ext.checkstyleVersion = '8.39' // Latest is 8.39 as of 2021-01-12.
+
+
+/*
+ * Notes on Dependency Releases (See above for references)
+ * ========================================================
+ * 1. Latest release information above is per www.mvnrepository.com, and ignores non-released artifacts (no alpha or
+ * beta releases, except for aXSL).
+ *
+ * 2. At the moment, and for the foreseeable future, aXSL is controlled by FOray, as we attempt to get the module APIs
+ * cleaned up and robust.
+ *
+ * 3. Apache Commons IO releases, starting at 2.7, are compiled with Java 1.8 (major version 52), which produces
+ * compile-time warnings when we try to build with Java 1.7.
+ * We have therefore stayed with the highest version that supports the Java 1.7 compiler, which is 2.6.
+ *
+ * 4. It looks like the catalog resolver code is part of Java 1.9.
+ *
+ * 5. Ant 1.10.9 is compiled with Java 1.8 (major version 52), which produces compile-time warnings when we try to
+ * build with Java 1.7.
+ * We have therefore stayed with the highest version of 1.9, which is 1.9.15.
+ *
+ * 6. Servlet-api 4.0.1 is compiled with Java 1.8 (major version 52), which produces compile-time warnings when we try
+ * to build with Java 1.7.
+ * We have therefore stayed with the highest version of 3.x, which is 3.1.0.
+ *
+ * 7. JEuclid has moved from group net.sourceforge.jeuclid to de.rototor.jeuclid, but continues to use the name
+ * "jeuclid-core" and the same general release numbering sequence.
+ * The latest version for group net.sourceforge.jeuclid as of 2021-01-12 is 3.1.9 per www.mvnrepository.com.
+ *
+ * 8. JUnit is compiled with Java 8 (major version 52) starting with release 5.0.0, and the artifact appears to be
+ * named org.junit.jupiter:junit-jupiter-api also starting with that release.
+ * We have therefore stayed with the highest version supporting Java 7, which is 4.13.2 as of Jan. 17, 2022.
+ *
+ * 9. Mockito is compiled with Java 8 (major version 52) starting with release 3.0.0.
+ * We have therefore stayed with the highest version supporting Java 7, which 2.28.2.
+ *
+ */
+
+}
+
+subprojects {
+
+ apply plugin: 'java-library'
+ apply plugin: 'checkstyle'
+ apply plugin: 'maven-publish'
+ apply plugin: 'io.freefair.lombok'
+
+ java {
+ sourceCompatibility = javaSourceCompatibility
+ targetCompatibility = javaTargetCompatibility
+ }
+
+ tasks.withType(JavaCompile) {
+ options.encoding = 'UTF-8'
+
+ /*
+ * We wish to continue building FOray in Java 1.7, primarily to maximize the potential audience.
+ * Some modern compilers will no longer compile to that target, or will log warnings due to its end-of-life or
+ * near-end-of-life status.
+ * Therefore, we need to compile with an older compiler. In your personal gradle.properties file, set
+ * property forayJdkHome to the home directory of the JDK you wish to use for the compile process.
+ * For example:
+ * forayJdkHome = c:/Program Files/Java/jdk1.8.0_162
+ *
+ * If a more recent compiler than 1.7 is used, you will be cross-compiling.
+ * In the example above, we are using a 1.8 compiler to cross-compile to 1.7.
+ * The Java 1.8 compiler will want a boot classpath containing the 1.7 runtime classes, to avoid compiling
+ * against classes and methods that are actually missing in the 1.7 runtime.
+ * You can provide the path to the jar containing those runtime classes by setting, in your personal
+ * gradle.properties file, the property forayTargetRuntimeJar.
+ * For example:
+ * forayTargetRuntimeJar = c:/Program Files/Java/jdk1.7.0_80/jre/lib/rt.jar
+ *
+ * See the following for more information about cross-compiling:
+ * https://stackoverflow.com/questions/15882586/bootstrap-class-path-not-set
+ */
+ compileJava.options.fork = true
+ compileJava.options.forkOptions.javaHome = file(project.property('forayJdkHome'))
+// options.bootstrapClasspath = files(file(project.property('forayTargetRuntimeJar')))
+
+ /* Set test options also. */
+ compileTestJava.options.fork = true
+ compileTestJava.options.forkOptions.javaHome = file(project.property('forayJdkHome'))
+ }
+
+ checkstyle {
+ configFile = new File(rootProject.projectDir.absolutePath + '/config/checkstyle/checkstyle-config.xml')
+ configProperties.put('foray.root', rootProject.projectDir)
+ toolVersion = checkstyleVersion
+ }
+
+ task packageSources(type: Jar, dependsOn:classes) {
+ classifier = 'sources'
+ from sourceSets.main.allSource
+ }
+
+ task packageJavadocs(type: Jar, dependsOn:javadoc) {
+ classifier = 'javadoc'
+ from javadoc.destinationDir
+ }
+
+
+ /* Configure the common parts of the project javadocs. */
+ javadoc {
+ failOnError = true
+ options.encoding = 'UTF-8'
+ options.author = false
+ options.version = true
+ options.use = true
+ options.memberLevel = JavadocMemberLevel.PROTECTED
+ options.bottom = "<p>This documentation was created ${buildDate} by <a href=\"http://www.foray.org\"" +
+ "target=\"_new\">The FOray Group</a> and may be freely copied. See license for details.</p>"
+ }
+
+
+ jar {
+ manifest {
+ attributes("Implementation-Title": "${project.name}")
+ attributes("Implementation-Version": "${project.version}")
+ attributes("Implementation-Vendor": "The FOray project http://www.foray.org")
+ }
+ }
+
+
+ artifacts {
+ archives packageSources
+ archives packageJavadocs
+ }
+
+ repositories {
+ mavenLocal()
+ maven { url "https://repo.maven.apache.org/maven2" }
+ }
+
+ publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ artifact packageSources
+ artifact packageJavadocs
+ }
+ }
+ }
+
+}
+
+
+/* Run all of the tests. */
+task testReport(type: TestReport) {
+ destinationDir = file("$buildDir/reports/allTests")
+ // Include the results from the `test` task in all subprojects
+ reportOn subprojects*.test
+}
+
+
+/* Configure the aggregate javadocs. */
+task allJavadoc(type: Javadoc) {
+ source subprojects.collect {project -> project.sourceSets.main.allJava}
+ classpath = files(subprojects.collect {project -> project.sourceSets.main.compileClasspath})
+ destinationDir = file("${buildDir}/docs/javadoc")
+
+ failOnError = true
+ options.docTitle = 'FOray API'
+ options.windowTitle = 'FOray API'
+ options.author = false
+ options.overview = './doc/javadoc/overview.html'
+ options.memberLevel = JavadocMemberLevel.PROTECTED
+ options.use = true
+ options.header = "FOray API ${version}"
+ options.bottom = "<p>This documentation was created ${buildDate} by <a href=\"http://www.foray.org\"" +
+ "target=\"_new\">The FOray Group</a> and may be freely copied. See license for details.</p>"
+ options.groups.put('The FOray Application', ['org.foray.app', 'org.foray.app.*',
+ 'org.foray.demo', 'org.foray.demo.*' ])
+ options.groups.put('The FOray Core Module', ['org.foray.core', 'org.foray.core.*' ])
+ options.groups.put('The FOray Common Module', ['org.foray.common', 'org.foray.common.*' ])
+ options.groups.put('The FOray FO Tree Module', ['org.foray.fotree', 'org.foray.fotree.*' ])
+ options.groups.put('The FOray PostScript Module', ['org.foray.ps', 'org.foray.ps.*' ])
+ options.groups.put('The FOray Graphic Module', ['org.foray.graphic', 'org.foray.graphic.*' ])
+ options.groups.put('The FOray Font Module', ['org.foray.font', 'org.foray.font.*' ])
+ options.groups.put('The FOray Speech Module', ['org.foray.speech', 'org.foray.speech.*' ])
+ options.groups.put('The FOray Orthography Module', ['org.foray.orthography', 'org.foray.orthography.*' ])
+ options.groups.put('The FOray LineBreak Module', ['org.foray.text', 'org.foray.text.*',
+ 'org.foray.linebreak'])
+ options.groups.put('The FOray Area Tree Module', ['org.foray.area', 'org.foray.area.*' ])
+ options.groups.put('The FOray Layout Module', ['org.foray.layout', 'org.foray.layout.*' ])
+ options.groups.put('The FOray Pioneer Module', ['org.foray.pioneer', 'org.foray.pioneer.*' ])
+ options.groups.put('The FOray Galley Module', ['org.foray.galley', 'org.foray.galley.*' ])
+ options.groups.put('The FOray Output Module', ['org.foray.output', 'org.foray.output.*' ])
+ options.groups.put('The FOray Render Module', ['org.foray.render', 'org.foray.render.*' ])
+ options.groups.put('The FOray PDF Writer Module', ['org.foray.pdf', 'org.foray.pdf.*' ])
+ options.groups.put('The FOray MIF Writer Module', ['org.foray.mif', 'org.foray.mif.*' ])
+ options.groups.put('The FOray Unicode Module', ['org.foray.unicode', 'org.foray.xml.*' ])
+ options.groups.put('The FOray XML Module', ['org.foray.xml', 'org.foray.xml.*' ])
+}
+
+
+task zipAllJavadoc(type: Zip, dependsOn: allJavadoc) {
+ from ("${buildDir}/docs/javadoc")
+ appendix = "all"
+ classifier = "javadoc"
+ destinationDirectory = file("${buildDir}")
+}
+
+
+task validateWeb () {
+ ant.property(name: "docDir", location: "./doc")
+ ant.property(name: "webRoot", location: "${ant.docDir}/web")
+ ant.property(name: "webDtd", location: "${ant.docDir}/dtd/xhtml1-strict.dtd")
+
+ doLast {
+ ant.xmlvalidate(/*warn: false*/) {
+ attribute(name: "http://xml.org/sax/features/namespaces", value: true)
+ dtd(publicid: "-//W3C//DTD XHTML 1.0 Strict//EN", location: "${ant.webDtd}")
+ fileset(dir: "${ant.webRoot}") {
+ include(name: "**/**.htm*")
+ exclude(name: "**/include/**")
+ }
+ }
+ }
+}
+
+
+task zipAllBin(type: Zip, dependsOn: build) {
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+ archiveBaseName = 'foray-all'
+ archiveClassifier = 'bin'
+ def internalDir = "${archiveBaseName.get()}-${archiveVersion.get()}-${archiveClassifier.get()}"
+
+ from(subprojects.collect {project -> "${project.buildDir}/libs"}) {
+ include '*.jar'
+ exclude '*-javadoc.jar'
+ exclude '*-sources.jar'
+ into "${internalDir}/lib"
+ }
+ from(subprojects.collect {project -> project.sourceSets.main.compileClasspath}) {
+ include '*.jar'
+ into "${internalDir}/lib"
+ }
+ from(project.projectDir.absolutePath + "/dist") {
+ include '**/**'
+ into "${internalDir}"
+ }
+
+ destinationDirectory = file("${buildDir}")
+}
+
+
+task zipAllSources(type: Zip) {
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+ archiveBaseName = 'foray-all'
+ archiveClassifier = 'sources'
+ def internalDir = "${archiveBaseName.get()}-${archiveVersion.get()}-${archiveClassifier.get()}"
+
+ from(subprojects.collect {project -> project.projectDir.absolutePath + "/src"}) {
+ into "${internalDir}/src"
+ }
+
+ destinationDirectory = file("${buildDir}")
+}
+
+/* Last line of script. */
Copied: trunk/foray/gradlew (from rev 12422, trunk/foray/master/gradlew)
===================================================================
--- trunk/foray/gradlew (rev 0)
+++ trunk/foray/gradlew 2022-01-18 17:51:05 UTC (rev 12423)
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright \xA9 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions \xAB$var\xBB, \xAB${var}\xBB, \xAB${var:-default}\xBB, \xAB${var+SET}\xBB,
+# \xAB${var#prefix}\xBB, \xAB${var%suffix}\xBB, and \xAB$( cmd )\xBB;
+# * compound commands having a testable exit status, especially \xABcase\xBB;
+# * various built-in commands including \xABcommand\xBB, \xABset\xBB, and \xABulimit\xBB.
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
Copied: trunk/foray/gradlew.bat (from rev 12422, trunk/foray/master/gradlew.bat)
===================================================================
--- trunk/foray/gradlew.bat (rev 0)
+++ trunk/foray/gradlew.bat 2022-01-18 17:51:05 UTC (rev 12423)
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
Deleted: trunk/foray/master/build.gradle
===================================================================
--- trunk/foray/master/build.gradle 2022-01-17 20:14:27 UTC (rev 12422)
+++ trunk/foray/master/build.gradle 2022-01-18 17:51:05 UTC (rev 12423)
@@ -1,321 +0,0 @@
-/*
-This build file was designed to run with Gradle version 7.3.3.
-
-Important targets to run from the master directory:
- 1. gradle build
- Normal build checking for compile errors and test failures.
- 2. gradle publishToMavenLocal
- Builds and publishes the artifacts to the local maven repository.
- 3. gradle zipAllJavadoc
- Builds the aggregate javadocs for all Java code in foray and puts them in a zip file.
- 4. gradle zipAllBin
- Builds a zip file containing FOray executables and all runtime dependencies.
- 5. gradle zipAllSources
- Builds a zip file containing all source code.
- 6. gradle validateWeb
- Validates the html pages for the web.
- 7. gradle compileJava compileTestJava test
- Runs all tests from all projects.
-*/
-
-
-plugins {
- id 'io.freefair.lombok' version '5.3.0' apply false
-}
-
-def buildDate = new Date().format("yyyy-MM-dd 'at' HH:mm 'GMT'", TimeZone.getTimeZone("GMT"))
-
-allprojects {
- apply plugin: 'java'
-
- group = 'org.foray'
- version = '0.4-SNAPSHOT'
-
- /******************** See Note 1 below for information about dependency releases. ********************/
- ext.javaSourceCompatibility = JavaVersion.VERSION_1_7
- ext.javaTargetCompatibility = JavaVersion.VERSION_1_7
-
- /* Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */
- ext.axslVersion = '0.3-SNAPSHOT' // Latest is 0.3-SNAPSHOT as of 2021-01-12. See Note 2.
- ext.svgDomVersion = '1.1' // See aXSL master/build.gradle
- ext.mathMlDomVersion = '2.0' // See aXSL master/build.gradle
- /* End of aXSL-related dependencies. */
-
- ext.slf4jVersion = '1.7.30' // Latest is 1.7.30 as of 2021-01-12.
- ext.commonsIoVersion = '2.6' // Latest is 2.8.0 as of 2021-01-12. See Note 3.
- ext.commonsDiscoveryVersion = '0.5' // Latest is 0.5 as of 2021-01-12.
- ext.commonsCliVersion = '1.4' // Latest is 1.4 as of 2021-01-12.
- ext.xmlResolverVersion = '1.2' // Latest is 1.2 as of 2021-01-12. See Note 4.
- ext.antVersion = '1.9.15' // Latest is 1.10.9 as of 2021-01-12. See Note 5.
- ext.servletApiVersion = '3.1.0' // Latest is 4.0.1 as of 2021-01-12. See Note 6.
- ext.xmlgraphicsCommonsVersion = '2.6' // Latest is 2.6 as of 2022-01-17.
- ext.batikVersion = '1.14' // Latest is 1.14 as of 2022-01-17.
- ext.jeuclidVersion = '3.1.14' // Latest is 3.1.14 as of 2021-01-12. See Note 7.
- ext.icu4jVersion = '68.2' // Latest is 68.2 as of 2021-01-12.
-
- ext.junitVersion = '4.13.2' // Latest is 5.8.2 as of 2022-01-17. See Note 8.
- ext.mockitoVersion = '2.28.2' // Latest is 3.7.0 as of 2021-01-12. See Note 9.
- ext.logbackClassicVersion = '1.2.3' // Latest is 1.2.3 as of 2021-01-12.
-
- ext.checkstyleVersion = '8.39' // Latest is 8.39 as of 2021-01-12.
-
-
-/*
- * Notes on Dependency Releases (See above for references)
- * ========================================================
- * 1. Latest release information above is per www.mvnrepository.com, and ignores non-released artifacts (no alpha or
- * beta releases, except for aXSL).
- *
- * 2. At the moment, and for the foreseeable future, aXSL is controlled by FOray, as we attempt to get the module APIs
- * cleaned up and robust.
- *
- * 3. Apache Commons IO releases, starting at 2.7, are compiled with Java 1.8 (major version 52), which produces
- * compile-time warnings when we try to build with Java 1.7.
- * We have therefore stayed with the highest version that supports the Java 1.7 compiler, which is 2.6.
- *
- * 4. It looks like the catalog resolver code is part of Java 1.9.
- *
- * 5. Ant 1.10.9 is compiled with Java 1.8 (major version 52), which produces compile-time warnings when we try to
- * build with Java 1.7.
- * We have therefore stayed with the highest version of 1.9, which is 1.9.15.
- *
- * 6. Servlet-api 4.0.1 is compiled with Java 1.8 (major version 52), which produces compile-time warnings when we try
- * to build with Java 1.7.
- * We have therefore stayed with the highest version of 3.x, which is 3.1.0.
- *
- * 7. JEuclid has moved from group net.sourceforge.jeuclid to de.rototor.jeuclid, but continues to use the name
- * "jeuclid-core" and the same general release numbering sequence.
- * The latest version for group net.sourceforge.jeuclid as of 2021-01-12 is 3.1.9 per www.mvnrepository.com.
- *
- * 8. JUnit is compiled with Java 8 (major version 52) starting with release 5.0.0, and the artifact appears to be
- * named org.junit.jupiter:junit-jupiter-api also starting with that release.
- * We have therefore stayed with the highest version supporting Java 7, which is 4.13.2 as of Jan. 17, 2022.
- *
- * 9. Mockito is compiled with Java 8 (major version 52) starting with release 3.0.0.
- * We have therefore stayed with the highest version supporting Java 7, which 2.28.2.
- *
- */
-
-}
-
-subprojects {
-
- apply plugin: 'java-library'
- apply plugin: 'checkstyle'
- apply plugin: 'maven-publish'
- apply plugin: 'io.freefair.lombok'
-
- java {
- sourceCompatibility = javaSourceCompatibility
- targetCompatibility = javaTargetCompatibility
- }
-
- tasks.withType(JavaCompile) {
- options.encoding = 'UTF-8'
-
- /*
- * We wish to continue building FOray in Java 1.7, primarily to maximize the potential audience.
- * Some modern compilers will no longer compile to that target, or will log warnings due to its end-of-life or
- * near-end-of-life status.
- * Therefore, we need to compile with an older compiler. In your personal gradle.properties file, set
- * property forayJdkHome to the home directory of the JDK you wish to use for the compile process.
- * For example:
- * forayJdkHome = c:/Program Files/Java/jdk1.8.0_162
- *
- * If a more recent compiler than 1.7 is used, you will be cross-compiling.
- * In the example above, we are using a 1.8 compiler to cross-compile to 1.7.
- * The Java 1.8 compiler will want a boot classpath containing the 1.7 runtime classes, to avoid compiling
- * against classes and methods that are actually missing in the 1.7 runtime.
- * You can provide the path to the jar containing those runtime classes by setting, in your personal
- * gradle.properties file, the property forayTargetRuntimeJar.
- * For example:
- * forayTargetRuntimeJar = c:/Program Files/Java/jdk1.7.0_80/jre/lib/rt.jar
- *
- * See the following for more information about cross-compiling:
- * https://stackoverflow.com/questions/15882586/bootstrap-class-path-not-set
- */
- compileJava.options.fork = true
- compileJava.options.forkOptions.javaHome = file(project.property('forayJdkHome'))
-// options.bootstrapClasspath = files(file(project.property('forayTargetRuntimeJar')))
-
- /* Set test options also. */
- compileTestJava.options.fork = true
- compileTestJava.options.forkOptions.javaHome = file(project.property('forayJdkHome'))
- }
-
- checkstyle {
- configFile = new File(rootProject.projectDir.absolutePath + '/config/checkstyle/checkstyle-config.xml')
- configProperties.put('foray.root', rootProject.projectDir)
- toolVersion = checkstyleVersion
- }
-
- task packageSources(type: Jar, dependsOn:classes) {
- classifier = 'sources'
- from sourceSets.main.allSource
- }
-
- task packageJavadocs(type: Jar, dependsOn:javadoc) {
- classifier = 'javadoc'
- from javadoc.destinationDir
- }
-
-
- /* Configure the common parts of the project javadocs. */
- javadoc {
- failOnError = true
- options.encoding = 'UTF-8'
- options.author = false
- options.version = true
- options.use = true
- options.memberLevel = JavadocMemberLevel.PROTECTED
- options.bottom = "<p>This documentation was created ${buildDate} by <a href=\"http://www.foray.org\"" +
- "target=\"_new\">The FOray Group</a> and may be freely copied. See license for details.</p>"
- }
-
-
- jar {
- manifest {
- attributes("Implementation-Title": "${project.name}")
- attributes("Implementation-Version": "${project.version}")
- attributes("Implementation-Vendor": "The FOray project http://www.foray.org")
- }
- }
-
-
- artifacts {
- archives packageSources
- archives packageJavadocs
- }
-
- repositories {
- mavenLocal()
- maven { url "https://repo.maven.apache.org/maven2" }
- }
-
- publishing {
- publications {
- mavenJava(MavenPublication) {
- from components.java
- artifact packageSources
- artifact packageJavadocs
- }
- }
- }
-
-}
-
-
-/* Run all of the tests. */
-task testReport(type: TestReport) {
- destinationDir = file("$buildDir/reports/allTests")
- // Include the results from the `test` task in all subprojects
- reportOn subprojects*.test
-}
-
-
-/* Configure the aggregate javadocs. */
-task allJavadoc(type: Javadoc) {
- source subprojects.collect {project -> project.sourceSets.main.allJava}
- classpath = files(subprojects.collect {project -> project.sourceSets.main.compileClasspath})
- destinationDir = file("${buildDir}/docs/javadoc")
-
- failOnError = true
- options.docTitle = 'FOray API'
- options.windowTitle = 'FOray API'
- options.author = false
- options.overview = './doc/javadoc/overview.html'
- options.memberLevel = JavadocMemberLevel.PROTECTED
- options.use = true
- options.header = "FOray API ${version}"
- options.bottom = "<p>This documentation was created ${buildDate} by <a href=\"http://www.foray.org\"" +
- "target=\"_new\">The FOray Group</a> and may be freely copied. See license for details.</p>"
- options.groups.put('The FOray Application', ['org.foray.app', 'org.foray.app.*',
- 'org.foray.demo', 'org.foray.demo.*' ])
- options.groups.put('The FOray Core Module', ['org.foray.core', 'org.foray.core.*' ])
- options.groups.put('The FOray Common Module', ['org.foray.common', 'org.foray.common.*' ])
- options.groups.put('The FOray FO Tree Module', ['org.foray.fotree', 'org.foray.fotree.*' ])
- options.groups.put('The FOray PostScript Module', ['org.foray.ps', 'org.foray.ps.*' ])
- options.groups.put('The FOray Graphic Module', ['org.foray.graphic', 'org.foray.graphic.*' ])
- options.groups.put('The FOray Font Module', ['org.foray.font', 'org.foray.font.*' ])
- options.groups.put('The FOray Speech Module', ['org.foray.speech', 'org.foray.speech.*' ])
- options.groups.put('The FOray Orthography Module', ['org.foray.orthography', 'org.foray.orthography.*' ])
- options.groups.put('The FOray LineBreak Module', ['org.foray.text', 'org.foray.text.*',
- 'org.foray.linebreak'])
- options.groups.put('The FOray Area Tree Module', ['org.foray.area', 'org.foray.area.*' ])
- options.groups.put('The FOray Layout Module', ['org.foray.layout', 'org.foray.layout.*' ])
- options.groups.put('The FOray Pioneer Module', ['org.foray.pioneer', 'org.foray.pioneer.*' ])
- options.groups.put('The FOray Galley Module', ['org.foray.galley', 'org.foray.galley.*' ])
- options.groups.put('The FOray Output Module', ['org.foray.output', 'org.foray.output.*' ])
- options.groups.put('The FOray Render Module', ['org.foray.render', 'org.foray.render.*' ])
- options.groups.put('The FOray PDF Writer Module', ['org.foray.pdf', 'org.foray.pdf.*' ])
- options.groups.put('The FOray MIF Writer Module', ['org.foray.mif', 'org.foray.mif.*' ])
- options.groups.put('The FOray Unicode Module', ['org.foray.unicode', 'org.foray.xml.*' ])
- options.groups.put('The FOray XML Module', ['org.foray.xml', 'org.foray.xml.*' ])
-}
-
-
-task zipAllJavadoc(type: Zip, dependsOn: allJavadoc) {
- from ("${buildDir}/docs/javadoc")
- appendix = "all"
- classifier = "javadoc"
- destinationDirectory = file("${buildDir}")
-}
-
-
-task validateWeb () {
- ant.property(name: "docDir", location: "./doc")
- ant.property(name: "webRoot", location: "${ant.docDir}/web")
- ant.property(name: "webDtd", location: "${ant.docDir}/dtd/xhtml1-strict.dtd")
-
- doLast {
- ant.xmlvalidate(/*warn: false*/) {
- attribute(name: "http://xml.org/sax/features/namespaces", value: true)
- dtd(publicid: "-//W3C//DTD XHTML 1.0 Strict//EN", location: "${ant.webDtd}")
- fileset(dir: "${ant.webRoot}") {
- include(name: "**/**.htm*")
- exclude(name: "**/include/**")
- }
- }
- }
-}
-
-
-task zipAllBin(type: Zip, dependsOn: build) {
- duplicatesStrategy = DuplicatesStrategy.EXCLUDE
- archiveBaseName = 'foray-all'
- archiveClassifier = 'bin'
- def internalDir = "${archiveBaseName.get()}-${archiveVersion.get()}-${archiveClassifier.get()}"
-
- from(subprojects.collect {project -> "${project.buildDir}/libs"}) {
- include '*.jar'
- exclude '*-javadoc.jar'
- exclude '*-sources.jar'
- into "${internalDir}/lib"
- }
- from(subprojects.collect {project -> project.sourceSets.main.compileClasspath}) {
- include '*.jar'
- into "${internalDir}/lib"
- }
- from(project.projectDir.absolutePath + "/dist") {
- include '**/**'
- into "${internalDir}"
- }
-
- destinationDirectory = file("${buildDir}")
-}
-
-
-task zipAllSources(type: Zip) {
- duplicatesStrategy = DuplicatesStrategy.EXCLUDE
- archiveBaseName = 'foray-all'
- archiveClassifier = 'sources'
- def internalDir = "${archiveBaseName.get()}-${archiveVersion.get()}-${archiveClassifier.get()}"
-
- from(subprojects.collect {project -> project.projectDir.absolutePath + "/src"}) {
- into "${internalDir}/src"
- }
-
- destinationDirectory = file("${buildDir}")
-}
-
-/* Last line of script. */
Deleted: trunk/foray/master/gradlew
===================================================================
--- trunk/foray/master/gradlew 2022-01-17 20:14:27 UTC (rev 12422)
+++ trunk/foray/master/gradlew 2022-01-18 17:51:05 UTC (rev 12423)
@@ -1,234 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright \xA9 2015-2021 the original authors.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-##############################################################################
-#
-# Gradle start up script for POSIX generated by Gradle.
-#
-# Important for running:
-#
-# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
-# noncompliant, but you have some other compliant shell such as ksh or
-# bash, then to run this script, type that shell name before the whole
-# command line, like:
-#
-# ksh Gradle
-#
-# Busybox and similar reduced shells will NOT work, because this script
-# requires all of these POSIX shell features:
-# * functions;
-# * expansions \xAB$var\xBB, \xAB${var}\xBB, \xAB${var:-default}\xBB, \xAB${var+SET}\xBB,
-# \xAB${var#prefix}\xBB, \xAB${var%suffix}\xBB, and \xAB$( cmd )\xBB;
-# * compound commands having a testable exit status, especially \xABcase\xBB;
-# * various built-in commands including \xABcommand\xBB, \xABset\xBB, and \xABulimit\xBB.
-#
-# Important for patching:
-#
-# (2) This script targets any POSIX shell, so it avoids extensions provided
-# by Bash, Ksh, etc; in particular arrays are avoided.
-#
-# The "traditional" practice of packing multiple parameters into a
-# space-separated string is a well documented source of bugs and security
-# problems, so this is (mostly) avoided, by progressively accumulating
-# options in "$@", and eventually passing that to Java.
-#
-# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
-# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
-# see the in-line comments for details.
-#
-# There are tweaks for specific operating systems such as AIX, CygWin,
-# Darwin, MinGW, and NonStop.
-#
-# (3) This script is generated from the Groovy template
-# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
-# within the Gradle project.
-#
-# You can find Gradle at https://github.com/gradle/gradle/.
-#
-##############################################################################
-
-# Attempt to set APP_HOME
-
-# Resolve links: $0 may be a link
-app_path=$0
-
-# Need this for daisy-chained symlinks.
-while
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
- [ -h "$app_path" ]
-do
- ls=$( ls -ld "$app_path" )
- link=${ls#*' -> '}
- case $link in #(
- /*) app_path=$link ;; #(
- *) app_path=$APP_HOME$link ;;
- esac
-done
-
-APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
-
-APP_NAME="Gradle"
-APP_BASE_NAME=${0##*/}
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD=maximum
-
-warn () {
- echo "$*"
-} >&2
-
-die () {
- echo
- echo "$*"
- echo
- exit 1
-} >&2
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-nonstop=false
-case "$( uname )" in #(
- CYGWIN* ) cygwin=true ;; #(
- Darwin* ) darwin=true ;; #(
- MSYS* | MINGW* ) msys=true ;; #(
- NONSTOP* ) nonstop=true ;;
-esac
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD=$JAVA_HOME/jre/sh/java
- else
- JAVACMD=$JAVA_HOME/bin/java
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD=java
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
- case $MAX_FD in #(
- max*)
- MAX_FD=$( ulimit -H -n ) ||
- warn "Could not query maximum file descriptor limit"
- esac
- case $MAX_FD in #(
- '' | soft) :;; #(
- *)
- ulimit -n "$MAX_FD" ||
- warn "Could not set maximum file descriptor limit to $MAX_FD"
- esac
-fi
-
-# Collect all arguments for the java command, stacking in reverse order:
-# * args from the command line
-# * the main class name
-# * -classpath
-# * -D...appname settings
-# * --module-path (only if needed)
-# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
-
-# For Cygwin or MSYS, switch paths to Windows format before running java
-if "$cygwin" || "$msys" ; then
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
-
- JAVACMD=$( cygpath --unix "$JAVACMD" )
-
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- for arg do
- if
- case $arg in #(
- -*) false ;; # don't mess with options #(
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
- [ -e "$t" ] ;; #(
- *) false ;;
- esac
- then
- arg=$( cygpath --path --ignore --mixed "$arg" )
- fi
- # Roll the args list around exactly as many times as the number of
- # args, so each arg winds up back in the position where it started, but
- # possibly modified.
- #
- # NB: a `for` loop captures its iteration list before it begins, so
- # changing the positional parameters here affects neither the number of
- # iterations, nor the values presented in `arg`.
- shift # remove old arg
- set -- "$@" "$arg" # push replacement arg
- done
-fi
-
-# Collect all arguments for the java command;
-# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
-# shell script including quotes and variable substitutions, so put them in
-# double quotes to make sure that they get re-expanded; and
-# * put everything else in single quotes, so that it's not re-expanded.
-
-set -- \
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
- -classpath "$CLASSPATH" \
- org.gradle.wrapper.GradleWrapperMain \
- "$@"
-
-# Use "xargs" to parse quoted args.
-#
-# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
-#
-# In Bash we could simply go:
-#
-# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
-# set -- "${ARGS[@]}" "$@"
-#
-# but POSIX shell has neither arrays nor command substitution, so instead we
-# post-process each arg (as a line of input to sed) to backslash-escape any
-# character that might be a shell metacharacter, then use eval to reverse
-# that process (while maintaining the separation between arguments), and wrap
-# the whole thing up as a single "set" statement.
-#
-# This will of course break if any of these variables contains a newline or
-# an unmatched quote.
-#
-
-eval "set -- $(
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
- xargs -n1 |
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
- tr '\n' ' '
- )" '"$@"'
-
-exec "$JAVACMD" "$@"
Deleted: trunk/foray/master/gradlew.bat
===================================================================
--- trunk/foray/master/gradlew.bat 2022-01-17 20:14:27 UTC (rev 12422)
+++ trunk/foray/master/gradlew.bat 2022-01-18 17:51:05 UTC (rev 12423)
@@ -1,89 +0,0 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem https://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing, software
-@rem distributed under the License is distributed on an "AS IS" BASIS,
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-@rem See the License for the specific language governing permissions and
-@rem limitations under the License.
-@rem
-
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Resolve any "." and ".." in APP_HOME to make it shorter.
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
Deleted: trunk/foray/master/settings.gradle
===================================================================
--- trunk/foray/master/settings.gradle 2022-01-17 20:14:27 UTC (rev 12422)
+++ trunk/foray/master/settings.gradle 2022-01-18 17:51:05 UTC (rev 12423)
@@ -1,24 +0,0 @@
-rootProject.name = 'foray-01-master'
-
-includeFlat 'foray-app'
-includeFlat 'foray-areatree'
-includeFlat 'foray-common'
-includeFlat 'foray-core'
-includeFlat 'foray-font'
-includeFlat 'foray-fotree'
-includeFlat 'foray-graphic'
-includeFlat 'foray-layout'
-includeFlat 'foray-linebreak'
-includeFlat 'foray-mif'
-includeFlat 'foray-orthography'
-includeFlat 'foray-output'
-includeFlat 'foray-pdf'
-includeFlat 'foray-pioneer'
-includeFlat 'foray-ps'
-includeFlat 'foray-render'
-includeFlat 'foray-speech'
-includeFlat 'foray-unicode'
-includeFlat 'foray-xml'
-includeFlat 'foray-zz-attic'
-
-/* Last line of script. */
Copied: trunk/foray/settings.gradle (from rev 12422, trunk/foray/master/settings.gradle)
===================================================================
--- trunk/foray/settings.gradle (rev 0)
+++ trunk/foray/settings.gradle 2022-01-18 17:51:05 UTC (rev 12423)
@@ -0,0 +1,24 @@
+rootProject.name = 'foray-01-master'
+
+include 'foray-app'
+include 'foray-areatree'
+include 'foray-common'
+include 'foray-core'
+include 'foray-font'
+include 'foray-fotree'
+include 'foray-graphic'
+include 'foray-layout'
+include 'foray-linebreak'
+include 'foray-mif'
+include 'foray-orthography'
+include 'foray-output'
+include 'foray-pdf'
+include 'foray-pioneer'
+include 'foray-ps'
+include 'foray-render'
+include 'foray-speech'
+include 'foray-unicode'
+include 'foray-xml'
+include 'foray-zz-attic'
+
+/* Last line of script. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|