This is an automated email from the ASF dual-hosted git repository.

mingchun-zhao pushed a commit to branch 
fix/ant-test-failure-due-to-preview-flag-on-CONNECTORS-1784
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git

commit 3f93c7f4c79ee4e02abd779f7a8e74c449c0c1c9
Author: Mingchun Zhao <[email protected]>
AuthorDate: Sun Jul 5 15:40:47 2026 +0900

    Fixed ant test failure due to missing Java 25 --enable-preview flag
---
 framework/build.xml                      |  9 +++++++++
 framework/buildfiles/connector-build.xml | 17 +++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/framework/build.xml b/framework/build.xml
index 6fe069d61..fdd5b82a0 100644
--- a/framework/build.xml
+++ b/framework/build.xml
@@ -2220,6 +2220,7 @@
     <target name="run-core-tests" depends="compile-core,compile-core-tests">
         <mkdir dir="test-output"/>
         <junit fork="true" maxmemory="128m" dir="test-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2238,6 +2239,7 @@
     <target name="run-connector-common-tests" 
depends="compile-connector-common,compile-connector-common-tests,compile-core,compile-core-tests">
         <mkdir dir="test-output"/>
         <junit fork="true" maxmemory="128m" dir="test-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2258,6 +2260,7 @@
     <target name="run-pull-agent-tests" 
depends="compile-pull-agent,compile-connector-common,compile-pull-agent-tests">
         <mkdir dir="test-output"/>
         <junit fork="true" maxmemory="128m" dir="test-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2282,6 +2285,7 @@
     <target name="run-script-engine-tests" 
depends="compile-core,compile-script-engine,compile-script-engine-tests">
         <mkdir dir="test-output"/>
         <junit fork="true" maxmemory="128m" dir="test-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2300,6 +2304,7 @@
     <target name="run-UI-tests" depends="jar-core-tests">
         <mkdir dir="test-output"/>
         <junit fork="true" maxmemory="128m" dir="test-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2319,6 +2324,7 @@
     <target name="run-tests-postgresql" depends="compile-tests">
         <mkdir dir="test-postgresql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-postgresql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2344,6 +2350,7 @@
     <target name="run-tests-mysql" depends="compile-tests">
         <mkdir dir="test-mysql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-mysql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2369,6 +2376,7 @@
     <target name="run-tests-HSQLDB" depends="compile-tests">
         <mkdir dir="test-HSQLDB-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDB-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
@@ -2395,6 +2403,7 @@
     <target name="run-tests-HSQLDBext" depends="compile-tests">
         <mkdir dir="test-HSQLDBext-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDBext-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
     <jvmarg value="-Djava.io.tmpdir=build/tmp"/>
             <classpath>
                 <path refid="framework-classpath"/>
diff --git a/framework/buildfiles/connector-build.xml 
b/framework/buildfiles/connector-build.xml
index 1dd2f9106..e0fe5b58c 100644
--- a/framework/buildfiles/connector-build.xml
+++ b/framework/buildfiles/connector-build.xml
@@ -1102,6 +1102,7 @@
     <target name="run-IT-postgresql" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-postgresql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-postgresql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web/war/mcf-api-service.war"/>
@@ -1126,6 +1127,7 @@
     <target name="run-IT-HSQLDB" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-HSQLDB-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDB-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web/war/mcf-api-service.war"/>
@@ -1150,6 +1152,7 @@
     <target name="run-IT-HSQLDBext" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-HSQLDBext-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDBext-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web/war/mcf-api-service.war"/>
@@ -1174,6 +1177,7 @@
     <target name="run-IT-mysql" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-mysql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-mysql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web-proprietary/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web-proprietary/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web-proprietary/war/mcf-api-service.war"/>
@@ -1198,6 +1202,7 @@
     <target name="run-LT-postgresql" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-postgresql-output"/>
         <junit fork="true" maxmemory="384m" dir="test-postgresql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web/war/mcf-api-service.war"/>
@@ -1222,6 +1227,7 @@
     <target name="run-LT-HSQLDB" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-HSQLDB-output"/>
         <junit fork="true" maxmemory="1024m" dir="test-HSQLDB-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web/war/mcf-api-service.war"/>
@@ -1246,6 +1252,7 @@
     <target name="run-LT-HSQLDBext" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-HSQLDBext-output"/>
         <junit fork="true" maxmemory="384m" dir="test-HSQLDBext-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web/war/mcf-api-service.war"/>
@@ -1270,6 +1277,7 @@
     <target name="run-LT-mysql" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-mysql-output"/>
         <junit fork="true" maxmemory="384m" dir="test-mysql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg 
value="-DcrawlerWarPath=${mcf-dist}/web-proprietary/war/mcf-crawler-ui.war"/>
             <jvmarg 
value="-DauthorityserviceWarPath=${mcf-dist}/web-proprietary/war/mcf-authority-service.war"/>
             <jvmarg 
value="-DapiWarPath=${mcf-dist}/web-proprietary/war/mcf-api-service.war"/>
@@ -1294,6 +1302,7 @@
     <target name="run-UI-postgresql" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-postgresql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-postgresql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg value="-Dwebdriver.chrome.driver=${env.SL_CHROME_DRIVER}"/>
             <jvmarg value="-Dwebdriver.safari.driver=${env.SL_SAFARI_DRIVER}"/>
             <jvmarg value="-Dwebdriver.gecko.driver=${env.SL_FIREFOX_DRIVER}"/>
@@ -1322,6 +1331,7 @@
     <target name="run-UI-HSQLDB" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-HSQLDB-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDB-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg value="-Dwebdriver.chrome.driver=${env.SL_CHROME_DRIVER}"/>
             <jvmarg value="-Dwebdriver.safari.driver=${env.SL_SAFARI_DRIVER}"/>
             <jvmarg value="-Dwebdriver.gecko.driver=${env.SL_FIREFOX_DRIVER}"/>
@@ -1350,6 +1360,7 @@
     <target name="run-UI-HSQLDBext" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-HSQLDBext-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDBext-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg value="-Dwebdriver.chrome.driver=${env.SL_CHROME_DRIVER}"/>
             <jvmarg value="-Dwebdriver.safari.driver=${env.SL_SAFARI_DRIVER}"/>
             <jvmarg value="-Dwebdriver.gecko.driver=${env.SL_FIREFOX_DRIVER}"/>
@@ -1378,6 +1389,7 @@
     <target name="run-UI-mysql" depends="compile-tests,pretest-check" 
if="canTest">
         <mkdir dir="test-mysql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-mysql-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <jvmarg value="-Dwebdriver.chrome.driver=${env.SL_CHROME_DRIVER}"/>
             <jvmarg value="-Dwebdriver.safari.driver=${env.SL_SAFARI_DRIVER}"/>
             <jvmarg value="-Dwebdriver.gecko.driver=${env.SL_FIREFOX_DRIVER}"/>
@@ -1406,6 +1418,7 @@
     <target name="run-tests" depends="compile-tests,has-tests-check" 
if="hasTests">
         <mkdir dir="test-output"/>
         <junit fork="true" maxmemory="128m" dir="test-output" 
outputtoformatters="true" showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <classpath>
                 <path refid="connector-test-classpath"/>
                 <pathelement location="build/connector-tests/classes"/>
@@ -1426,6 +1439,7 @@
     <target name="run-tests-postgresql" 
depends="compile-tests,has-tests-check" if="hasTests">
         <mkdir dir="test-postgresql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-postgresql-output" 
showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <classpath>
                 <path refid="connector-test-classpath"/>
                 <pathelement location="build/connector-tests/classes"/>
@@ -1441,6 +1455,7 @@
     <target name="run-tests-mysql" depends="compile-tests,has-tests-check" 
if="hasTests">
         <mkdir dir="test-mysql-output"/>
         <junit fork="true" maxmemory="128m" dir="test-mysql-output" 
showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <classpath>
                 <path refid="connector-test-classpath"/>
                 <pathelement location="build/connector-tests/classes"/>
@@ -1456,6 +1471,7 @@
     <target name="run-tests-HSQLDB" depends="compile-tests,has-tests-check" 
if="hasTests">
         <mkdir dir="test-HSQLDB-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDB-output" 
showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <classpath>
                 <path refid="connector-test-classpath"/>
                 <pathelement location="build/connector-tests/classes"/>
@@ -1471,6 +1487,7 @@
     <target name="run-tests-HSQLDBext" depends="compile-tests,has-tests-check" 
if="hasTests">
         <mkdir dir="test-HSQLDBext-output"/>
         <junit fork="true" maxmemory="128m" dir="test-HSQLDBext-output" 
showoutput="true" haltonfailure="true">
+            <jvmarg value="--enable-preview"/>
             <classpath>
                 <path refid="connector-test-classpath"/>
                 <pathelement location="build/connector-tests/classes"/>

Reply via email to