logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1544746 - /logging/log4net/trunk/extensions.build
Date Sat, 23 Nov 2013 06:47:18 GMT
Author: bodewig
Date: Sat Nov 23 06:47:18 2013
New Revision: 1544746

URL: http://svn.apache.org/r1544746
Log:
build file for extensions - the MarshalByRef extension currently doesn't build, will see to
that later

Added:
    logging/log4net/trunk/extensions.build

Added: logging/log4net/trunk/extensions.build
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/extensions.build?rev=1544746&view=auto
==============================================================================
--- logging/log4net/trunk/extensions.build (added)
+++ logging/log4net/trunk/extensions.build Sat Nov 23 06:47:18 2013
@@ -0,0 +1,81 @@
+<?xml version="1.0" ?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more 
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership. 
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with 
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<project name="log4net-extensions" default="compile-all" xmlnds="http://tempuri.org/nant-vs.xsd">
+    <property name="log4net.basedir" value="." readonly="false" />
+    <property name="project.build.config" value="debug" readonly="false" />
+    <property name="project.build.package" value="false" readonly="false" />
+    <property name="current.assembly" value="log4net.Ext.EventID"/>
+    <!-- Include log4net helpers -->
+    <include buildfile="${log4net.basedir}/src/buildsupport/log4net.include" />
+    <!-- Targets that should always be executed -->
+    <call target="set-build-configuration" />
+    <call target="set-framework-configuration" />
+
+    <!-- Target for compiling the tests on all frameworks -->
+    <target name="compile-all" description="Builds all log4net extensions">
+        <if test="${framework::exists('net-2.0')}">
+            <call target="compile-net-2.0" />
+        </if>
+
+        <if test="${framework::exists('mono-2.0')}">
+            <call target="compile-mono-2.0" />
+        </if>
+
+        <if test="${framework::exists('net-3.5')}">
+            <call target="compile-net-3.5" />
+            <call target="compile-net-3.5-cp" />
+        </if>
+
+        <if test="${framework::exists('net-4.0')}">
+            <call target="compile-net-4.0" />
+            <call target="compile-net-4.0-cp" />
+        </if>
+
+    </target>
+
+    <target name="compile-net-2.0" description="Builds log4net extensions .NET Framework
2.0 version" depends="set-net-2.0-runtime-configuration,-compile-extensions"/>
+
+    <target name="compile-mono-2.0" description="Builds log4net extensions Mono Framework
2.0 version" depends="set-mono-2.0-runtime-configuration,-compile-extensions"/>
+
+    <target name="compile-net-3.5" description="Builds log4net extensions .NET Framework
3.5 version" depends="set-net-3.5-runtime-configuration,-compile-extensions"/>
+
+    <target name="compile-net-3.5-cp" description="Builds log4net extensions .NET Framework
3.5 Client Profile version" depends="set-net-3.5-cp-runtime-configuration,-compile-extensions"/>
+
+    <target name="compile-net-4.0" description="Builds log4net extensions .NET Framework
4.0 version" depends="set-net-4.0-runtime-configuration,-compile-extensions"/>
+
+    <target name="compile-net-4.0-cp" description="Builds log4net extensions .NET Framework
4.0 Client Profile version" depends="set-net-4.0-cp-runtime-configuration,-compile-extensions"/>
+
+    <target name="-compile-extensions" depends="check-log4net-basedir, clean-current-bin-dir,
check-log4net-assembly">
+
+      <foreach item="String" delim=","
+               in="log4net.Ext.EventID,log4net.Ext.MarshalByRef"
+               property="dir">
+        <do>
+          <property name="current.assembly" value="${dir}"/>
+          <property name="current.sources" value="extensions/${dir}"/>
+          <property name="current.keyfile" value="log4net.snk"/>
+          <property name="current.bin.subdir" value=""/>
+          <property name="warnaserror" value="false"/>
+          <property name="with.log4net" value="true"/>
+          <property name="with.assemblyversioninfo" value="true"/>
+          <call target="parameterized-compilation" />
+        </do>
+      </foreach>
+    </target>
+
+</project>



Mime
View raw message