|
20 | 20 | --> |
21 | 21 | <project name="NitroWebExpress" default="compile" basedir="."> |
22 | 22 |
|
23 | | - <!-- Properties --> |
24 | 23 | <property name="src.dir" value="source"/> |
25 | 24 | <property name="out.dir" value="out"/> |
26 | 25 | <property name="jar.file" value="nwe.jar"/> |
|
29 | 28 | <property name="mysql.jar" value="${jars.dir}/mysql/mysql-connector-j-9.7.0.jar"/> |
30 | 29 | <property name="lanterna.jar" value="${jars.dir}/lanterna-3.1.5.jar"/> |
31 | 30 | <property name="jpcap.dir" value="${jars.dir}/jpcap"/> |
32 | | - <property name="java.release" value="25"/> |
| 31 | + <property name="java.release" value="21"/> |
33 | 32 | <property name="repo.url" value="https://github.com/mearvk/Java.Web.Server.Telnet.Front.Java.21"/> |
34 | 33 |
|
35 | | - <!-- Classpath --> |
36 | 34 | <path id="compile.classpath"> |
37 | 35 | <fileset dir="${djl.dir}" includes="*.jar" erroronmissingdir="false"/> |
38 | 36 | <fileset dir="${jpcap.dir}" includes="*.jar" erroronmissingdir="false"/> |
|
41 | 39 | <pathelement location="${out.dir}"/> |
42 | 40 | </path> |
43 | 41 |
|
44 | | - <!-- ═══ CLEAN ═══════════════════════════════════════════════════════════ --> |
45 | 42 | <target name="clean" description="Remove compiled output and JAR"> |
46 | 43 | <delete dir="${out.dir}" quiet="true"/> |
47 | 44 | <delete file="${jar.file}" quiet="true"/> |
48 | 45 | <echo message="Cleaned."/> |
49 | 46 | </target> |
50 | 47 |
|
51 | | - <!-- ═══ COMPILE ═════════════════════════════════════════════════════════ --> |
52 | 48 | <target name="compile" depends="structure" description="Compile all Java sources"> |
53 | 49 | <mkdir dir="${out.dir}"/> |
54 | 50 | <javac srcdir="${src.dir}" |
55 | | - destdir="${out.dir}" |
56 | | - release="${java.release}" |
57 | | - includeantruntime="false" |
58 | | - fork="true" |
59 | | - failonerror="true"> |
| 51 | + destdir="${out.dir}" |
| 52 | + release="${java.release}" |
| 53 | + includeantruntime="false" |
| 54 | + fork="true" |
| 55 | + failonerror="true"> |
60 | 56 | <classpath refid="compile.classpath"/> |
61 | 57 | </javac> |
62 | 58 | <echo message="Compilation successful."/> |
63 | 59 | </target> |
64 | 60 |
|
65 | | - <!-- ═══ JAR ═════════════════════════════════════════════════════════════ --> |
66 | 61 | <target name="jar" depends="compile" description="Build fat JAR"> |
67 | 62 | <jar destfile="${jar.file}" basedir="${out.dir}"> |
68 | 63 | <manifest> |
69 | 64 | <attribute name="Main-Class" value="Main"/> |
70 | | - <attribute name="Class-Path" value="jars/djl/pytorch-native-cpu-2.5.1-linux-x86_64.jar"/> |
71 | 65 | </manifest> |
72 | 66 | <zipgroupfileset dir="${jars.dir}/mysql" includes="mysql-connector-j-9.7.0.jar"/> |
73 | 67 | <zipgroupfileset file="${lanterna.jar}"/> |
|
77 | 71 | <echo message="Built ${jar.file} (${jar.file})"/> |
78 | 72 | </target> |
79 | 73 |
|
80 | | - <!-- ═══ RUN ═════════════════════════════════════════════════════════════ --> |
81 | 74 | <target name="run" depends="compile" description="Run from compiled classes"> |
82 | 75 | <java classname="Main" fork="true" failonerror="true"> |
83 | 76 | <classpath refid="compile.classpath"/> |
|
87 | 80 | </java> |
88 | 81 | </target> |
89 | 82 |
|
90 | | - <!-- ═══ RUN-JAR ═════════════════════════════════════════════════════════ --> |
91 | 83 | <target name="run-jar" description="Run from nwe.jar"> |
92 | 84 | <java jar="${jar.file}" fork="true" failonerror="true"> |
93 | 85 | <jvmarg value="-Dnwe.root=${basedir}"/> |
|
98 | 90 | </java> |
99 | 91 | </target> |
100 | 92 |
|
101 | | - <!-- ═══ UPDATE ══════════════════════════════════════════════════════════ --> |
102 | 93 | <target name="update" description="Pull latest, recompile, rebuild JAR"> |
103 | 94 | <echo message="Pulling latest from GitHub..."/> |
104 | 95 | <exec executable="git" failonerror="true"> |
|
112 | 103 | <echo message="Update complete. Scripts, sources, and JAR rebuilt."/> |
113 | 104 | </target> |
114 | 105 |
|
115 | | - <!-- ═══ TEST ════════════════════════════════════════════════════════════ --> |
116 | 106 | <target name="test" description="Run port connectivity tests"> |
117 | 107 | <exec executable="bash" failonerror="false"> |
118 | 108 | <arg value="scripts/bash/49111/test.49111.check.sh"/> |
|
123 | 113 | <echo message="Tests complete."/> |
124 | 114 | </target> |
125 | 115 |
|
126 | | - <!-- ═══ STRUCTURE ═══════════════════════════════════════════════════════ --> |
127 | 116 | <target name="structure" description="Regenerate STRUCTURE.txt from codebase scan"> |
128 | 117 | <exec executable="bash" failonerror="false"> |
129 | 118 | <arg value="scripts/generate-structure.sh"/> |
130 | 119 | </exec> |
131 | 120 | </target> |
132 | 121 |
|
133 | | - <!-- ═══ STRIPS ══════════════════════════════════════════════════════════ --> |
134 | 122 | <target name="strips" description="Validate AI learning strips exist"> |
135 | 123 |
|
136 | 124 | <available file="source/strernary/strips/base-learning-strip.tsv" property="strip.strernary"/> |
|
0 commit comments