You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ps...@apache.org on 2005/11/25 08:06:33 UTC

svn commit: r348906 - /logging/chainsaw/trunk/build.xml

Author: psmith
Date: Thu Nov 24 23:06:30 2005
New Revision: 348906

URL: http://svn.apache.org/viewcvs?rev=348906&view=rev
Log:
Added a target that creates a jar with the ZeroConf appender and related classes.

This jar can be bundled with a log4j1.2.x distribution to add ZeroConf ability to
it's SocketHubAppender. (have tested this with an external project)

Modified:
    logging/chainsaw/trunk/build.xml

Modified: logging/chainsaw/trunk/build.xml
URL: http://svn.apache.org/viewcvs/logging/chainsaw/trunk/build.xml?rev=348906&r1=348905&r2=348906&view=diff
==============================================================================
--- logging/chainsaw/trunk/build.xml (original)
+++ logging/chainsaw/trunk/build.xml Thu Nov 24 23:06:30 2005
@@ -94,6 +94,38 @@
       for VFSLogFilePatternReceiver
     </echo>
   </target>	
+	 
+  <target name="JmDNSCheck">
+    <available classname="javax.jmdns.JmDNS" property="jmdns-present">
+      <classpath refid="compile.classpath"/>
+    </available>
+    
+    <echo>JmDNS Present: ${jmdns-present}</echo>
+  </target>
+	
+  <target name="BuildZeroConfJar" depends="JmDNSCheck, build.chainsaw" if="jmdns-present">
+    <javac deprecation="${deprecation}"
+           srcdir="zeroconf"
+    	   debug="${debug}"
+           destdir="${javac.dest}">
+      <patternset>
+        <include name="**/*.java"/>
+      </patternset>
+      <classpath refid="compile.classpath"/>   
+    </javac>	
+  	
+    <jar jarfile="${jar.dest}/log4j-zeroconf.jar" basedir="${javac.dest}"
+         includes="${stem}/**/net/ZeroConf*.class,${stem}/**/net/Zeroconf*.class" excludes="**/*Test*.class">
+      <manifest>
+        <attribute name="Manifest-version" value="1.0"/>
+        <section name="org/apache/log4j/">
+          <attribute name="Implementation-Title" value="log4j ZeroConf optional extras"/>
+          <attribute name="Implementation-Version" value="${version}"/>
+          <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+        </section>
+      </manifest>
+    </jar>
+  </target>
   
   <target name="getdeps">
       <mkdir dir="deps-dl"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org