aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/jakarta-libs/log4j1.2_1.2.17.bb
blob: 2f04e96bb97ad192bcb55bb261f3e90835e4059d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DESCRIPTION = "Java library to help the programmer output log statements to a variety of output targets"
AUTHOR = "Apache Software Foundation"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f4ce41a6d1028498fcacde12f589bce7"

PR = "r2"

SRC_URI = "http://archive.apache.org/dist/logging/log4j/${PV}/log4j-${PV}.tar.gz"

inherit java-library

DEPENDS = "gnumail gnujaf"

S = "${WORKDIR}/apache-log4j-${PV}"

JARFILENAME = "log4j-${PV}.jar"
ALTJARFILENAMES = "log4j-1.2.jar log4j1.2.jar"

do_compile() {
  mkdir -p build

  oe_makeclasspath cp -s activation gnumail gnujaf

  # Built everything but the JMS and JMX classes (like in Debian)
	javac -sourcepath src/main/java -cp $cp -d build `find src/main/java -name "*.java" -and -not \( -iwholename "*jms*" -or -iwholename "*jmx*" \)`

  cp -R src/main/resources/* build/

  fastjar cf ${JARFILENAME} -C build .
}

SRC_URI[md5sum] = "8218714e41ee0c6509dcfeafa2e1f53f"
SRC_URI[sha256sum] = "a528e3771ee6234661b5eb0fa02e14faee89dfec38de94088c163ddf2a0a8663"

BBCLASSEXTEND = "native"