Commit Graph

14376 Commits

Author SHA1 Message Date
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
tangdou1
300f337ba7
Update zh.lng 2022-03-05 11:25:14 +08:00
tangdou1
0d80945ffa
Update zh.lng 2022-03-05 11:14:20 +08:00
tangdou1
fff0ebe833
Update zh.lng 2022-03-05 11:04:16 +08:00
tangdou1
3711f2de6c
Update zh.lng 2022-03-03 17:18:51 +08:00
Michael Christen
f7399833c8
Merge pull request #462 from tangdou1/patch-2
Update zh.lng
2022-02-28 17:45:51 +01:00
tangdou1
f79a858997
Update zh.lng 2022-02-28 21:01:19 +08:00
tangdou1
eae3674130
Update ConfigBasic.html 2022-02-28 20:57:58 +08:00
tangdou1
ecb55c958d
Update zh.lng 2022-02-27 21:11:04 +08:00
Michael Christen
a525a45034
Merge pull request #461 from tangdou1/patch-1
Update zh.lng
2022-02-26 20:58:42 +01:00
tangdou1
31a7c9ab0b
Update zh.lng 2022-02-27 00:44:58 +08:00
reger24
535636551a Further improvement of fccdf5a37b
addint properties file as input
2022-02-12 13:40:20 +01:00
reger24
fccdf5a37b Small optimization on gradle task prepYaCyProperties
for better lifecycle detection
2022-02-12 13:15:15 +01:00
Burkhard
a6a9828181
Merge pull request #440 from lfuelling/master
Add setting for public facing port
2022-02-11 08:09:17 +01:00
Burkhard
4219d729c3
Update SettingsAck_p.java
type in SwitchboardConstants.SERVER_PUBLICPORT
2022-02-11 08:04:55 +01:00
Burkhard
e0fd3d4f10
Update Settings_p.java
missing setting to display the value
2022-02-11 08:02:24 +01:00
reger24
84651f2925 Make bookmarks.html accessible
for the time beeing (as possibliy other decision has been made)
make the bookmarks feature accessible, as it is available but w/o link in UI

relates to https://github.com/yacy/yacy_search_server/issues/452#issuecomment-1033054368
2022-02-11 04:25:26 +01:00
reger24
2d53147d7f Remove obsolete dir dictionaries
obsolete since 67eddaec4b
2022-02-11 03:48:30 +01:00
reger24
a37352cfa7 Update link to Moby in DictionaryLoader_p.html
see issue https://github.com/yacy/yacy_search_server/issues/455
2022-02-11 03:19:30 +01:00
reger24
141e86964e Fix compile deprecation warning
warning: [removal] AccessControlException in java.security has been deprecated and marked for removal
2022-02-11 00:27:55 +01:00
reger24
417899dda2 Correction of last commit 9dace71aea
accidently commented out kaskelix
2022-02-10 05:55:47 +01:00
reger24
9dace71aea Update yacy.net release download location
to //download.yacy.net/ in network.*.unit files

@Orbiter   for the latest avail. releases (v1.924 ...tar.gz)  the *.tar.gz.sig  file is missing,
so download fails with error "Download of releas .... failed"
2022-02-10 05:51:11 +01:00
reger24
47840ef866 Optimize GitComInf
- remove depreciated repro.peel(tag)
- reduce counting loop
2022-02-10 02:14:44 +01:00
reger24
bdb9cdfa15 Commented out use of org.mini2Dx:parcl plugin
I'm bothered about the Gradle depreciation notice after each compile,
created by org.mini2Dx:parcl plugin
- which is currently not used (would only work with additional configuration)
2022-02-09 21:24:27 +01:00