The version of Apache log4j used by SoundHelix.
Clone
HTTPS:
git clone https://vervis.peers.community/repos/aEp6o
SSH:
git clone USERNAME@vervis.peers.community:aEp6o
Branches
Tags
- 1.3alpha-7
- CHAINSAW_2_SANDBOX_MERGE
- CORE_VERSION
- LEVEL_REPLACES_PRIORITY
- PREALPHA_1_3_AS_OF_2004_05_12
- PRE_CHAINSAW_MODEL_CONVERSION
- PRE_UGLI_MOVE
- TAG_CHAINSAW2_MOVE
- log4j-1.2.17
- log4j-1.2.17-rc1
- v1.3alpha8
- v1.3alpha8-temp
- v1_2_1
- v1_2_10-recalled
- v1_2_11
- v1_2_11_rc1
- v1_2_11rc3
- v1_2_12
- v1_2_12_rc1
- v1_2_12_rc2
- v1_2_12_rc3
- v1_2_12_rc4
- v1_2_12_rc5
- v1_2_12_rc6
- v1_2_13
- v1_2_13_rc1
- v1_2_13_rc2
- v1_2_13_site_update
- v1_2_14
- v1_2_14_maven
- v1_2_14_rc1
- v1_2_14_site_update
- v1_2_15
- v1_2_15_rc1
- v1_2_15_rc2
- v1_2_15_rc3
- v1_2_15_rc4
- v1_2_15_rc5
- v1_2_15_rc6
- v1_2_16
- v1_2_16_rc1
- v1_2_16_rc2
- v1_2_17
- v1_2_17-rc1
- v1_2_17_rc1
- v1_2_17_rc2
- v1_2_17_rc3
- v1_2_2
- v1_2_3
- v1_2_4
- v1_2_6
- v1_2_7
- v1_2_9
- v1_2_alpha0
- v1_2_alpha7
- v1_2beta1
- v1_2final
- v1_3alpha_1
- v1_3alpha_6
- v_1_0
- v_1_0_1
- v_1_0_4
- v_1_1
- v_1_1_1
- v_1_1_2
- v_1_1_3
- v_1_1_b1
- v_1_1b2
- v_1_1b3
- v_1_1b5
- v_1_1b6
- v_1_1b7
- v_1_2beta3
build.xml
<project name="ceki-cactus" default="build" basedir="." >
<property file="build.properties" />
<property name="project.name.file" value="sample-servlet"/>
<property name="log4j.dir" location="../.."/>
<!-- Directory layout -->
<property name="src.dir" location="src"/>
<property name="src.java.dir" location="${src.dir}/java"/>
<property name="src.webapp.dir" location="${src.dir}/webapp"/>
<property name="src.test.dir" location="test/java"/>
<property name="target.dir" location="target"/>
<property name="target.classes.dir" location="${target.dir}/classes"/>
<property name="target.classes.java.dir" location="${target.classes.dir}/java"/>
<property name="target.classes.cactus.dir" location="${target.classes.dir}/cactus"/>
<property name="target.testreports.dir" location="${target.dir}/report"/>
<property name="servlet.jar" location="/java/lib/servlet.jar"/>
<path id="servlet.cp">
<fileset dir="./otherlib/">
<include name="servlet*.jar"/>
</fileset>
</path>
<path id="log4j.cp">
<fileset dir="${log4j.dir}">
<include name="log4j-1.3*.jar"/>
</fileset>
</path>
<path id="cactus.cp">
<fileset dir="./lib/">
<include name="*.jar"/>
</fileset>
</path>
<!-- Define the Cactus tasks -->
<taskdef resource="cactus.tasks">
<classpath refid="cactus.cp"/>
</taskdef>
<!-- ================================================================= -->
<!-- Default target -->
<!-- ================================================================= -->
<target name="usage">
<echo>
These are the targets supported by this ANT build scpript:
</echo>
</target>
<!-- Initialize the build. Must be called by all targets -->
<target name="init">
</target>
<target name="log4j.jar">
<ant dir="${log4j.dir}" target="log4j.jar" inheritAll="false" inheritRefs="false"/>
</target>
<!-- Compile the Java source -->
<target name="compile.java" depends="init">
<mkdir dir="${target.classes.java.dir}"/>
<javac destdir="${target.classes.java.dir}"
debug="on" deprecation="on">
<src path="${src.java.dir}"/>
<classpath refid="servlet.cp"/>
<classpath refid="log4j.cp"/>
</javac>
</target>
<!-- Create the jar file containing TestAppender-->
<target name="test-appender.jar" depends="compile.java">
<jar jarfile="${target.dir}/test-appender.jar"
basedir="${target.classes.java.dir}"
includes="TestAppender.class">
</jar>
</target>
<target name="clientConfigFileCheck">
<available file="${src.webapp.dir}/WEB-INF/classes/test-log4j.xml"
property="client-config-file-present"/>
<fail unless="client-config-file-present">
Could not find the file
${src.webapp.dir}/WEB-INF/classes/test-log4j.xml
Have you forgotten to adapt and rename the test-log4j.xml.sample file?
</fail>
</target>
<!-- Create the war file -->
<target name="war" depends="compile, test-appender.jar, clientConfigFileCheck">
<war warfile="${target.dir}/${project.name.file}.war"
webxml="${src.webapp.dir}/WEB-INF/web.xml">
<fileset dir="${src.webapp.dir}">
<exclude name="WEB-INF/classes/test-log4j.xml.sample"/>
</fileset>
<classes dir="${target.classes.java.dir}">
<exclude name="TestAppender.class"/>
</classes>
<lib file="${target.dir}/test-appender.jar"/>
<lib file="${javamail.jar}"/>
<lib file="${activation.jar}"/>
<lib file="${log4j.dir}/log4j-smtp.jar"/>
</war>
</target>
<!-- Compiles the Cactus test sources -->
<target name="compile.test" depends="compile.java">
<mkdir dir="${target.classes.cactus.dir}"/>
<javac destdir="${target.classes.cactus.dir}"
debug="on" deprecation="on">
<src path="${src.test.dir}"/>
<classpath refid="cactus.cp"/>
<classpath refid="servlet.cp"/>
<classpath path="${target.classes.java.dir}"/>
<classpath refid="log4j.cp"/>
</javac>
</target>
<target name="compile" depends="compile.java, compile.test">
</target>
<target name="test.prepare" depends="war, compile.test, log4j.jar">
<mkdir dir="${target.testreports.dir}"/>
<!-- Cactify the web-app archive -->
<cactifywar srcfile="${target.dir}/${project.name.file}.war"
destfile="${target.dir}/test.war">
<classes dir="${target.classes.cactus.dir}"/>
<lib file="${httpunit.jar}"/>
</cactifywar>
<fail unless="tomcat5x.home">tomcat5x.home variable not set</fail>
<delete>
<fileset dir="${tomcat5x.home}/common/lib" includes="log4j-1.3*.jar"/>
</delete>
<!-- Copy log4j.jar to Server -->
<copy todir="${tomcat5x.home}/common/lib">
<fileset dir="${log4j.dir}">
<include name="log4j-1.3alpha*.jar"/>
</fileset>
</copy>
</target>
<target name="test" depends="test.prepare">
<!-- Run the tests -->
<cactus warfile="${target.dir}/test.war" fork="yes"
failureproperty="tests.failed">
<cactusproperty server="false" propertiesFile="client.properties"/>
<cactusproperty server="true" propertiesFile="server.properties"/>
<classpath>
<path refid="servlet.cp"/>
<pathelement location="${target.classes.java.dir}"/>
<pathelement location="${target.classes.cactus.dir}"/>
<fileset dir="${log4j.dir}">
<include name="log4j*.jar"/>
</fileset>
</classpath>
<containerset timeout="20000">
<tomcat5x if="tomcat5x.home"
dir="${tomcat5x.home}"
output="${target.testreports.dir}/tomcat5x.out"
todir="${target.testreports.dir}/tomcat5x"/>
</containerset>
<formatter type="brief" usefile="false"/>
<batchtest>
<fileset dir="${src.test.dir}">
<include name="**/Test*.java"/>
<exclude name="**/Test*All.java"/>
</fileset>
</batchtest>
</cactus>
</target>
</project>