summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorreger24 <reger24@users.noreply.github.com>2022-01-20 09:59:34 +0100
committerreger24 <reger24@users.noreply.github.com>2022-01-20 09:59:34 +0100
commite39bb5fbab1a7b856443d022ce09438d560c410e (patch)
tree1d674f23eb3942e1717680ed7eef24391765f7f1 /build.xml
parent3e34f7c596462c00bee503703d0856d4a3d46a5c (diff)
Modified GitRevNr Ant-Plugin to work in Gradle
- new support library GitComInf to generate a property file for use in Gradle - adjusted build.gradle to make use of it to create the yacyBuildProperties.java - including additon of properties ext.filterTokens as store for Gradle - added gradle-compile-htroot (w/o depends) to old build.xml as target until complete migration as it is imho important imho: much to complicated to get a running number - should be supplied by repo or simplified
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 560bbb828..84d4bf8b2 100644
--- a/build.xml
+++ b/build.xml
@@ -330,6 +330,20 @@
</javac>
</target>
+ <!-- this is a copy of compile-htroot without dependency on init (likely not needed)
+ and intended to support / to by used by gradle -->
+ <target name="gradle-compile-htroot" description="compile YaCy servlets">
+ <!-- compile htroot, htroot/yacy and htroot/htdocsdefault -->
+ <loadproperties srcFile="build.properties" />
+ <javac srcdir="${htroot}/"
+ excludes="processing/**"
+ source="${javacSource}" target="${javacTarget}"
+ debug="true" debuglevel="lines,vars,source" includeantruntime="false" encoding="UTF-8">
+ <classpath refid="project.class.path" />
+ <compilerarg value="-Xlint"/>
+ </javac>
+ </target>
+
<target name="compile" depends="compile-core, compile-htroot" description="compile YaCy core and YaCy servlets" />
<target name="all" depends="compile">