Commit Graph

14449 Commits

Author SHA1 Message Date
Michael Peter Christen
ede9efe50c write git revision number to yacyBuild.properties 2022-10-04 01:50:56 +02:00
Michael Peter Christen
90db21b909 for some reason the compilation fails on linux with "Unicode true" 2022-10-04 00:43:07 +02:00
Michael Peter Christen
79fc19e67e removed ci script for nsis build 2022-10-04 00:01:53 +02:00
Michael Christen
55c181e5a0 add windows build to ci 2022-10-03 18:23:03 +02:00
Michael Christen
56aa23a3ca create release file path in ant process and explicitly make build dir 2022-10-03 12:01:23 +02:00
Michael Christen
8b37a5dc6f removed log4j properties because we don't have a log4j any more 2022-10-03 10:44:03 +02:00
Michael Christen
347b676b76 changed system to load build properties 2022-10-03 10:12:47 +02:00
Michael Christen
c36bdbf78d refactoring 2022-10-03 09:37:16 +02:00
Michael Peter Christen
96bdbe4afe added ivy class path to gitignore 2022-10-02 23:44:14 +02:00
Michael Peter Christen
d9e847a6b0 fixed html error 2022-10-02 23:42:54 +02:00
Michael Peter Christen
1e1107c97c clean-up and new servlet method caching 2022-10-02 23:39:00 +02:00
Michael Peter Christen
adbda4c71b moved all remaining servlet classes to new location 2022-10-02 23:22:12 +02:00
Michael Peter Christen
33889b4501 moved more servlets to new location 2022-10-02 22:57:58 +02:00
Michael Peter Christen
6d388bb7bf refactoring - moved htroot/yacy classes 2022-10-02 22:26:53 +02:00
Michael Peter Christen
48fcf3b3b5 alternative servlet method, tested with wiki
may become the future method to store servlets
2022-09-30 18:29:01 +02:00
Michael Peter Christen
d23dea2642 refactoring 2022-09-30 17:42:21 +02:00
Michael Peter Christen
23f1dc3741 addressing/fixing some concurrency issues from
https://github.com/yacy/yacy_search_server/issues/505
2022-09-30 08:01:13 +02:00
Michael Peter Christen
a2a40a3096 new link to crawlstart api documentation 2022-09-29 00:25:51 +02:00
Michael Peter Christen
9228fcd481 updated seedlist 2022-09-28 23:52:58 +02:00
Michael Peter Christen
9c1bc533fa removed hazelcast because it is phoning home, see also:
https://github.com/yacy/yacy_search_server/issues/504
2022-09-28 17:30:37 +02:00
Michael Peter Christen
fc98ca7a9c removed ContentControl servlet and functinality
This was not used at all (as I know) and was blocking a smooth
integration of ivy in the context of an existing JSON parser.
2022-09-28 17:25:04 +02:00
Roman Riabenko
b54f4ad35f README: fix typos 2022-08-24 15:30:29 +03:00
Michael Christen
2a2f0fa44a
Merge pull request #488 from thkoch2001/fix_windows_installer
Fix windows installer
2022-07-10 21:17:37 +02:00
Thomas Koch
04ca24d7dc rm dead stuff from build.xml 2022-07-10 12:33:32 +00:00
Thomas Koch
e611305787 rm nsis ant task, call makesis command with exec
This allows to remove another jar file from the git repo and the
whole libbuild folder.
The ant task is just a wrapper to call the makensis command. So
there should not be any drawback to remove it.
2022-07-10 12:33:32 +00:00
Thomas Koch
a2cd95d5fe Use Unicode in Win-Installer and umlauts in German 2022-07-10 12:33:32 +00:00
Thomas Koch
778ea6bc07 Add call for Win-devs to Win-installer welcome screen 2022-07-10 12:33:32 +00:00
Thomas Koch
aa23167e87 Just open Java download URL in Win-Installer
Previously, the installer downloaded Java and installed a Desktop
shortcut to the downloaded installer. However the old download
URL is dead now and NSIS does not support the new https URLs
without a plugin.

Anyways it is not much of a difference in convenience whether the
installer downloads an installer or opens a browser with the
download location.

It has been considered to switch from NSIS to msitools[1]. However
both technologies are strange to all current YaCy devs and NSIS
still seems to be less complex and more widely adopted.

[1] https://wiki.gnome.org/msitools

I could only test this change in WINE because the developer virtual
machine from microsoft[2] freezed always soon after boot under QEMU.

[2] https://developer.microsoft.com/de-de/windows/downloads/virtual-machines/

The browser did not open under WINE.
2022-07-10 12:33:32 +00:00
Thomas Koch
c98d09b664 rm GitRevTask
The releaseNr is now set to a static value in build.properties. We
can increment it there manually and eventually switch to another
version number scheme if we like.
2022-07-10 12:33:28 +00:00
Thomas Koch
3116713672 rm buildDate from build.xml and its usages
The https://reproducible-builds.org project invests a lot of work
to make builds reproducible. This is a security property. It allows
to compare the build of binaries from different builder machines.
If they are identical, it means that either the builds have not
been manipulated or an attacker managed to attack all builder
machines in exactly the same way.

One problem that the reproducible-builds project often sees is
that projects include the build time in their binaries. This
makes builds unreproducible for apparently no reason. The build
date should not be of interest since binaries built on different
dates but from the same source code should not be different.

Thus I decided to remove the build date instead of re-implementing
the functionality without the GitRev task. Anyways the reported
date was not the build date but the date of the last git commit
which is even less informative. The git commit ID would have
information value but should only be relevant for "nightly builds".
2022-07-10 11:32:38 +00:00
Thomas Koch
572558244a rm unused build properties PKGMANAGER, RESTARTCMD, DESTDIR
PKGMANAGER is always false, thus the java code wrapped in
if statements for this property is dead code and can also
be removed.

The Debian packaging removed in c4659f0fb0
did set the PKGMANAGER property to true. When we do distro
packages again, we can revisit this commit and redo it with
property files instead.

RESTARTCMD is only used inside those dead code.

DESTDIR is never used even in the build.xml
2022-07-10 10:14:51 +00:00
Thomas Koch
4503b9e292 remove gradle build system
I'm about to make changes to the ant build that require to also be
done to the gradle build. However there is no active developer for
gradle in the YaCy project right now.

The motivation to introduce gradle was primarily to manage dependencies
and not commit them to git anymore. This has been solved by using
ivy.

Additionally, there were (to my understanding) still open tasks to
be completed for the gradle migration, e.g. the Windows build.

I came to YaCy with the intention of packaging it for Debian. It
is currently not feasible use gradle in Debian:

"If you have a choice, we recommend to use a different build system
like Ant or Maven which are better supported in Debian and are more
stable when it comes to Debian Java packaging."
-- https://wiki.debian.org/Java/Packaging/Gradle

It seems Fedora has completely given up on packaging gradle. The
last activity seems to be from 2017:
https://bugzilla.redhat.com/show_bug.cgi?id=1191535

This commit also shows how many files are necessary for gradle while
ant just needs build.xml and ivy.xml. It is also ironic that gradle
was introduced here to get rid of binary files in Git (jars) but
apparently gradle itself needs jar files in the repo to work.
2022-07-10 10:14:51 +00:00
Thomas Koch
b661cc56d8 remove unused branch property in build.xml
First commit of a series to get rid of the git based versioning
implemented in libbuild/ folder as Ant task. It counts commits
since the last tagged version and uses this number added with
9000 as the last part of the version number.

This is a legacy from Subversion times.
2022-07-10 10:14:46 +00:00
Michael Peter Christen
3d138d3fdd catch error when initializing hazelcast
should fix https://github.com/yacy/yacy_search_server/issues/468
2022-06-20 17:27:56 +02:00
Michael Christen
c049c8d4a4
added missing runs-on: ubuntu-latest 2022-06-13 18:54:12 +02:00
Michael Christen
df8503d57b
Merge pull request #485 from yacy/fix-docker-pull
docker has no latest-alpine
2022-06-13 18:44:06 +02:00
Michael Christen
be8ab9771f
CI Script to build after pull request 2022-06-13 15:36:00 +02:00
Thomas Koch
1c3c59de85 fix ant build failure on multiple call to resolve target
Failed build:
https://github.com/yacy/yacy_search_server/runs/6859314856

Relevant build log:

resolve:
[ivy:retrieve] ivy.instance reference an ivy:settings defined in an other classloader.  An new default one will be used in this project.
[ivy:retrieve] :: Apache Ivy non official version -  :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url = jar:file:/usr/share/java/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
BUILD FAILED
/home/yacy/actions-runner/_work/yacy_search_server/yacy_search_server/build.xml:111:
 java.lang.ClassCastException: org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor
 cannot be cast to org.apache.ivy.core.module.descriptor.ModuleDescriptor

Finding:

The second call to the resolve target in ant failed apparently due to
two instances of Ivy in the java runtime.
Without full investigation, the problem could be fixed by ensuring that
the resolve target is only called once within one ant build.
2022-06-13 14:27:53 +03:00
Michael Peter Christen
c3307231d4 added ci script 2022-06-13 12:14:42 +02:00
Michael Christen
04b0e32bc7
Merge pull request #463 from tangdou1/patch-3
Update Chinese Translations
2022-04-10 00:16:12 +02:00
Michael Christen
dc88676bf2
Merge pull request #478 from thkoch2001/use_ivy
Use ivy
2022-04-09 19:57:48 +02:00
Thomas Koch
9eb4570df6 download ivy on non-Debian platforms 2022-04-09 14:50:34 +00:00
Thomas Koch
8de08e2736 rm License files from lib/ folder 2022-04-08 18:33:20 +00:00
Thomas Koch
8fbd6386fd use ivy to manage jars 2022-04-08 18:33:20 +00:00
Thomas Koch
4c0ae2ca36 rename langdetect.jar to name in maven repo
The maven jar contains the language profiles that yacy also ships
in the langdetect/ folder.
2022-04-08 18:33:00 +00:00
Thomas Koch
474898da26 rename chardet.jar to name from maven
The class files in the yacy jar differs from the one downloaded
from maven. But the file tree is equal.
2022-04-08 18:32:47 +00:00
Thomas Koch
5309ca3a5a rename jars to correspond to maven repos 2022-04-08 18:32:23 +00:00
thkoch2001
336100514d
Settings_HttpClient.inc spelling correction
certificats > certificates

Thanks to @CloudyProton
2022-04-07 17:33:16 +03:00
thkoch2001
2037c0aa00 fix incorrect jar names in .classpath
Eclipse complains about missing files in the build path otherwise when importing the project.
2022-04-07 17:26:57 +03:00
tangdou1
c9d97bb355
Update zh.lng 2022-03-05 11:32:32 +08:00