don't build build.xml, maintain it manualy

remove antify.sh and related builx.xml target makefile

Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
This commit is contained in:
2025-11-02 18:10:21 +01:00
parent 36e58808d5
commit bce0e160d8
4 changed files with 6 additions and 117 deletions

View File

@@ -4,7 +4,7 @@ DISTJAR=$(DISTPREFIX)-$(PROJECT_VERSION).jar
JAVAC=javac JAVAC=javac
JAR=jar JAR=jar
all: build.xml dist/lib/$(DISTJAR) all: dist/lib/$(DISTJAR)
getname: getname:
@echo dist/lib/$(DISTJAR) @echo dist/lib/$(DISTJAR)
@@ -18,9 +18,6 @@ dist:
dist/lib/$(DISTJAR): dist dist/lib/$(DISTJAR): dist
ant dist ant dist
build.xml:
./antify.sh >$@
clean: clean:
cd java; make clean cd java; make clean
rm -f dist/lib/$(DISTPREFIX)*.jar rm -f dist/lib/$(DISTPREFIX)*.jar
@@ -41,7 +38,7 @@ deb/%:
./debianize.sh create $@ ./debianize.sh create $@
debian/compat: debian/compat:
echo "7" >$@ echo "10" >$@
debian/%: debian/%:
./debianize.sh create $@ >$@ ./debianize.sh create $@ >$@

View File

@@ -6,7 +6,7 @@ JAVAC=javac
JAR=jar JAR=jar
RHINO_VER=1_7R5 RHINO_VER=1_7R5
all: build.xml dist/lib/$(DISTJAR) all: dist/lib/$(DISTJAR)
getname: getname:
@echo dist/lib/$(DISTJAR) @echo dist/lib/$(DISTJAR)
@@ -17,11 +17,7 @@ dist:
dist/lib/$(DISTJAR): dist dist/lib/$(DISTJAR): dist
ant dist ant dist
build.xml:
./antify.sh >$@
clean: clean:
rm -f build.xml
rm -f dist/lib/$(DISTPREFIX)*.jar rm -f dist/lib/$(DISTPREFIX)*.jar
rm -rf build rm -rf build
cd java; make clean cd java; make clean
@@ -41,13 +37,13 @@ deb/%:
./debianize.sh create $@ ./debianize.sh create $@
debian/compat: debian/compat:
echo "7" >$@ echo "10" >$@
debian/%: debian/%:
./debianize.sh create $@ >$@ ./debianize.sh create $@ >$@
deb: debian debian/rules debian/control debian/compat debian/changelog deb/javadoc deb/jlibs deb: debian debian/rules debian/control debian/compat debian/changelog deb/javadoc deb/jlibs deb/format
dpkg-buildpackage -uc -us ./buildsourcetree.sh
/usr/bin/emacs: /usr/bin/emacs:
sudo apt-get install emacs sudo apt-get install emacs

View File

@@ -1,12 +0,0 @@
java/
java sources
java/org/artisanlogiciel/games
java sources for package org.artisanlogiciel.games respect of java directory naming convention of files
java/org/artisanlogiciel/games/Main.java
Main Java entry point for this program

View File

@@ -1,92 +0,0 @@
#!/bin/bash
#
# Generates to stdout an ant project build.xml content using some parameters from project_params
#
# this is used by 4java.makefile for build.xml target
usage()
{
head -n 4 $0
}
PROJECT_PARAMS=./project_params
if [[ -f $PROJECT_PARAMS ]]
then
source $PROJECT_PARAMS
else
echo "[ERROR] missing $PROJECT_PARAMS " >&2
usage
exit 1
fi
# TODO reuse internal tsamp ${DSTAMP} ( after review i do't recall what is wanted to do here )
cat <<EOF
<project name="$project_name" default="$project_default" basedir="$project_basedir">
<description>
$project_name build
autogenerated build file by $0 script
</description>
<!-- set global properties for this build -->
<property name="src" location="java"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<!-- Fill me please / todo
<property name="artgraphicslib" value="artgaphics-0.1.0"/>
<property name="distversion" value="1.0"/>
-->
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="\${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from \${src} into \${build} -->
EOF
if [[ -z $java_target ]]
then
echo ' <javac srcdir="${src}" destdir="${build}">'
else
echo " <javac target=\"$java_target\" source=\"$java_target\" srcdir=\"\${src}\" destdir=\"\${build}\"><compilerarg value=\"-Xlint:-options\"/>"
fi
echo "<!-- suggestion "
excludes="org/artisanlogiciel/games/javafx/*"
for exclude in "$excludes"
do
echo " <exclude name=\"$exclude\"/>"
done
echo "-->"
echo " </javac>"
cat <<EOF
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="\${dist}/lib"/>
<!-- Put everything in \${build} into the ${project_name}-${project_version}.jar file ( \${DSTAMP} not used yet )-->
<jar jarfile="\${dist}/lib/${project_name}-${project_version}.jar" basedir="\${build}">
<manifest>
<attribute name="Main-Class" value="$project_mainclass"/>
<!-- suggestion
<attribute name="Class-Path" value="\${artgraphicslib}.jar"/>
-->
</manifest>
</jar>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the \${build} and \${dist} directory trees -->
<delete dir="\${build}"/>
<delete dir="\${dist}"/>
</target>
</project>
EOF