Commit Graph

45 Commits

Author SHA1 Message Date
reger24
2e177661c9 Implement creation of legacy distribution archive in Gradle
- Gradle task to execute "packageDist"
	- this will create *.tar.gz and *.zip archive
	- with legacy file name convention
- archive is created in build/distributions

- for the libbuild J7Zip-modified.jar use fallback as file dependency in lib
  as Gradle/Groovy use internal just the classes from subprojects with result
  that in above no jar is included in lib but a bunch of *.class files
- added also the option to publish J7Zip-modified.jar to mavenLocal() repo.
2022-01-22 06:27:14 +01:00
reger24
eb69d535a3 Set all dependencies in Gradle build script
- with currently used version
- updated support/subproject J7Zip-modified (in libbuild) to be compilable via Gradle
	- added dependency reference as sub-project
- skip the before applied copy of jars to lib directory (no benefit)
2022-01-21 04:53:12 +01:00
reger24
e39bb5fbab 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
2022-01-20 09:59:34 +01:00
reger24
d411566c45 Obsolete since replacement of Maven by Gradle build script 2022-01-16 05:36:24 +01:00
Michael Peter Christen
e9c5e78868 replaced new Number(Number) with Number.instanceOf
to remove deprecation warnings for Java 9
2021-08-08 00:39:03 +02:00
Michael Peter Christen
9e13d77de4 removed call to class.finalize() because of deprecation in java 9
next: removal of finalize() implementation
after testing with assert false
2021-08-07 18:57:49 +02:00
admin
a13986d659 replaced maven with gradle 2021-07-14 13:58:30 +02:00
sgaebel
e039a797d2 bump to commons-codec-1.14, commons-compress-1.20,
commons-fileupload-1.4, commons-io-2.7, httpclient-4.5.12,
httpcore-4.4.13, httpmime-4.5.12 + remove unused commons-jxpath-1.3,
htmllexer
2020-07-26 21:58:15 +02:00
luccioman
dcee2ee6a6 Use standard Java annotation syntax instead of custom Javadoc tag
For better support by building tools.
As reported by @KnustJohn_twitter , the custom
[@phase](https://maven.apache.org/plugin-tools/maven-plugin-tools-java/index.html)
Javadoc tag made NetBeans fail on Javadoc generation for the
GitRevmavenTask class.
Using instead standard Java 5
[annotations](https://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html#POM_configuration)
this is no more an issue.
2018-07-13 07:25:58 +02:00
luccioman
e1bc035496 Ignore Eclipse projects config files derived from maven pom.xml 2018-07-13 07:12:57 +02:00
luccioman
b55cf16dad Upgraded jgit build library to version 4.5.0
This is the latest Java 7 compatible jgit release.

Properly support GitHub tags marked as "Pre-release". 
With the previous venerable jgit version 1.1.0, a YaCy repository clone
having such a tag made GitRevTask and GitRevMavenTask crash.
2017-01-04 17:09:37 +01:00
reger
c778219768 remove module for swfparser from maven parent pom
not longer required for the build
see a4465c97d6
2016-10-07 23:49:03 +02:00
luccioman
fa11475d02 Handle more properly missing .git directory
Made use of maven profiles.
2016-07-07 20:50:27 +02:00
luccioman
343638d98e Prevent build failing when .git is missing 2016-07-06 01:33:20 +02:00
luccioman
f35587d6f6 Ignore maven build repositories 2016-07-05 21:15:33 +02:00
sixcooler
5523998fdf rise limit of reversion to >9999 2016-06-28 20:58:58 +02:00
reger
b1926d1e98 activate hack in libbuild/pom.xml to include main project as build module
This allows to use libbuild/pom as main maven project to build all needed
libs to compile and run YaCy, including YaCy itself.

Furthermore, maven is well supported by Netbeans IDE so we can discontinue
to maintaine Netbeans IDE specific project settings (in directory nbproject,
which lack config for debug anyway, nbproject can be deleted and NB will
compile YaCy via maven).

Additionally adjusted pom's project name to match the name in the repository.
2016-03-13 04:03:32 +01:00
reger
51e7151591 more fixes for sevenZip parser exception on specific archives
Found 2 more cases were modified code throws exceptions while original J7Zip
unpacks it.
Reimplemented error prone CoderMixer2ST from unmodified J7Zip.jar.
2016-03-09 01:01:58 +01:00
reger
5b07f3473e fix sevenZip parser exception with LZMA BCJ2 format archives,
see http://mantis.tokeek.de/view.php?id=641
+ sanitize some type cast's in modified sevenZip lib
2016-03-08 00:53:38 +01:00
reger
c2a88d53ab fix use of not initialized variable (m_LiteralDecoder) 2016-03-06 03:24:09 +01:00
reger
96b8d9b09e moving the J7Zip-modified source and Maven build to libbuild
from main pom. 
Using source included in j7zip-modified.jar.
This combines all external lib preparation in the libbuild main pom.
2016-03-06 03:19:52 +01:00
reger
06e5cd6164 add support parsing swf-metadata to swfparser
flash supports metadata tag in swf file with metadata in xmp (xml) format.
parse some common data to include it in the head section of the html string
of converttohtml.
2016-01-25 22:13:04 +01:00
reger
11b1587067 replace remaining use of java.util.Vector by ArrayList (WebCat-swf) 2016-01-24 02:30:27 +01:00
reger
9331acdb18 add support for DEFINEFONT3 (swf8) to webcat parser
experienced issue with JPEGTABLE tag (with length=0) causing abort of parsing (ioexception)
as we don't use/need it for text parsing skip this tag.
2016-01-23 22:46:22 +01:00
reger
bf5fca5d99 add missing swf tag constants according to latest spec
reduce use of synced vector in webcat parser
2016-01-23 20:19:01 +01:00
reger
18ecf57792 add support of compressed swf to swfParser
from JavaSWF2 (source compatible to WebCat).
Moved swf file signature check to parser
Changed use of synced vector to list swf InStream
2016-01-20 00:58:29 +01:00
reger
6c25710a34 replace bugfixed webcat-swf.jar 2016-01-18 23:36:18 +01:00
reger
4213ff84d4 import WebCat swf parser custom source package
This package is not available as jar (used jar is a custom compile as we 
use just a portion of the package) 
WebCat package is not maintained. To be able to fix bugs, source extract 
of swf parser imported here.
2016-01-18 22:41:49 +01:00
reger
bceb779414 refactor libbuild/GitRevMavenTask (marvenize)
to be able to add additional modules to build
2016-01-18 22:29:17 +01:00
Marc Nause
efadb710a4 Updated Git links from Gitorious to Github. 2015-03-23 11:12:39 +01:00
reger
090f789261 update Maven pom 2013-12-25 22:33:35 +01:00
reger
8ec350bad2 upd Maven pom (take back introduced java-templates)
to handle filtering of yacyBuildProperties.java.
To keep it compatible with ant filter directly from original sourcd/.... location.
2013-11-03 02:38:36 +01:00
reger
9da87c0c7f update Maven build script
- use current YaCy version number
- make use of libbuild\GitRevMavenTask (maven-plugin-gitrevisionnumber)
- make yacyBuildProperties.java available for source filtering by Maven-plugin (copy to libbuild\java-templates)
- update assembly definition to include lib\yacycore.jar without version number (needed this way by startupscript)
2013-11-02 06:27:18 +01:00
reger
62c591ffd1 add Maven plugin to return a YaCy style Git repository build release number and timestamp
- it injects properties which can be used in pom via ${DSTAMP} ${releaseNr} if added as plugin via
<plugin>
<groupId>net.yacy</groupId>
<artifactId>maven-plugin-gitrevisionnumber</artifactId>
<version>1.0</version>
<executions><execution>
<phase>initialize</phase>
<goals><goal>create</goal></goals>
</execution></executions>
</plugin>
2013-11-02 02:33:06 +01:00
reger
a09e70cd68 fix typo in GitRevTask (branch) 2013-11-02 00:18:24 +01:00
sixcooler
5189620026 add branch to packet-name if not build from master 2013-08-06 03:48:29 +02:00
Roland Haeder
841a28ae76 Added 'final' for all exception blocks as this helps the Java compiler
to optimize memory usage

Conflicts:
	source/net/yacy/search/Switchboard.java
2013-07-17 18:31:30 +02:00
reger
f8f7f33596 add Maven build script 2013-01-20 21:08:59 +01:00
orbiter
0cbda0b2b8 - replaced all length() == 0 and size() == 0 with isEmpty()
- replaced some length() > 0 and size() > 0 with !isEmpty() - cannot be
done automatically
- implemented some isEmpty() methods
2012-07-10 22:59:03 +02:00
sixcooler
d14ee8e464 Revision 9000+ hack
do not handle the revision in build.properties anymore
(9000 as fallback)
build-date from git-HEAD (instead when build is fired)
(orginal build-date as fallback)
2011-12-07 04:20:49 +01:00
sixcooler
b79da58eac Ant-Task for getting version from git
tries to find svn-version or any tag - what ever comes first
be careful using this with non-numerical tags!
2011-11-24 23:44:54 +01:00
sixcooler
69570fda24 bring my master to stuff from remote 2011-11-24 19:21:58 +01:00
sixcooler
d9c56aa37a Ant-Task for getting version from git 2011-11-24 15:51:25 +01:00
f1ori
cb1e887027 * move svnRevNr classes to libbuild
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5425 6c8d7289-2bf4-0310-a012-ef5d649a1542
2008-12-31 19:58:22 +00:00
f1ori
d72846f898 * moved nsisant library in seperate libbuild-directory to keep root directory clean
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5037 6c8d7289-2bf4-0310-a012-ef5d649a1542
2008-08-06 17:02:56 +00:00