You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by rg...@apache.org on 2008/02/26 22:58:40 UTC
svn commit: r631401 - in /logging/log4net/trunk: log4net.build
log4net.include
Author: rgrabowski
Date: Tue Feb 26 13:58:37 2008
New Revision: 631401
URL: http://svn.apache.org/viewvc?rev=631401&view=rev
Log:
Added targets for net-3.0 and net-3.5 to the build files.
Modified:
logging/log4net/trunk/log4net.build
logging/log4net/trunk/log4net.include
Modified: logging/log4net/trunk/log4net.build
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/log4net.build?rev=631401&r1=631400&r2=631401&view=diff
==============================================================================
--- logging/log4net/trunk/log4net.build (original)
+++ logging/log4net/trunk/log4net.build Tue Feb 26 13:58:37 2008
@@ -66,7 +66,8 @@
</if>
</if>
<if test="${not property::exists('htmlhelp.compiler')}">
- <sysinfo />
+ <!-- sysinfo task fails under x64 due to invalid property names - https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1213185&group_id=31650 -->
+ <sysinfo failonerror="false" />
<property
name="htmlhelp.compiler"
value="${sys.os.folder.programfiles}/HTML Help Worshop/hhc.exe" />
@@ -104,6 +105,22 @@
<if test="${not framework::exists('net-2.0')}">
<echo message=".NET Framework 2.0 runtime is not available." />
</if>
+ <!-- .NET Framework 3.0 -->
+ <if test="${framework::exists('net-3.0')}">
+ <property name="nant.settings.currentframework" value="net-3.0" />
+ <call target="display-target-framework" />
+ </if>
+ <if test="${not framework::exists('net-3.0')}">
+ <echo message=".NET Framework 3.0 runtime is not available." />
+ </if>
+ <!-- .NET Framework 3.5 -->
+ <if test="${framework::exists('net-3.5')}">
+ <property name="nant.settings.currentframework" value="net-3.5" />
+ <call target="display-target-framework" />
+ </if>
+ <if test="${not framework::exists('net-3.5')}">
+ <echo message=".NET Framework 3.5 runtime is not available." />
+ </if>
<!-- .NET Compact Framework 1.0 -->
<if test="${framework::exists('netcf-1.0')}">
<property name="nant.settings.currentframework" value="netcf-1.0" />
@@ -263,6 +280,30 @@
<echo message="The .NET Framework 2.0 is not available. Build skipped." />
</if>
</if>
+ <!-- NET_3_0 -->
+ <if test="${framework::exists('net-3.0')}">
+ <call target="compile-net-3.0" />
+ </if>
+ <if test="${not framework::exists('net-3.0')}">
+ <if test="${property::exists('project.build.package') and project.build.package}">
+ <fail message="The .NET Framework 3.0 is not available." />
+ </if>
+ <if test="${not(property::exists('project.build.package') and project.build.package)}">
+ <echo message="The .NET Framework 3.0 is not available. Build skipped." />
+ </if>
+ </if>
+ <!-- NET_3_5 -->
+ <if test="${framework::exists('net-3.5')}">
+ <call target="compile-net-3.5" />
+ </if>
+ <if test="${not framework::exists('net-3.5')}">
+ <if test="${property::exists('project.build.package') and project.build.package}">
+ <fail message="The .NET Framework 3.5 is not available." />
+ </if>
+ <if test="${not(property::exists('project.build.package') and project.build.package)}">
+ <echo message="The .NET Framework 3.5 is not available. Build skipped." />
+ </if>
+ </if>
<!-- MONO_1_0 -->
<if test="${framework::exists('mono-1.0')}">
<call target="compile-mono-1.0" />
@@ -552,6 +593,138 @@
</csc>
</if>
</target>
+ <target name="compile-net-3.0" description="Builds .NET Framework 3.0 version" depends="set-net-3.0-runtime-configuration, check-log4net-basedir, clean-current-bin-dir">
+ <!-- initialize the temp.build.skip property to false -->
+ <property name="temp.build.skip" value="false" />
+ <if test="${current.build.config.release}">
+ <!-- check if the log4net key file is available -->
+ <if test="${not file::exists(log4net.basedir + '/log4net.snk')}">
+ <if test="${property::exists('project.build.package') and project.build.package}">
+ <fail message="Key file not found." />
+ </if>
+ <if test="${not(property::exists('project.build.package') and project.build.package)}">
+ <echo message="Key file not found. You can generate a key file by running 'sn -k log4net.snk'." />
+ <echo message="The generated key file should be stored in the log4net base directory." />
+ <echo message="The release build will be skipped." />
+ <property name="temp.build.skip" value="true" />
+ </if>
+ </if>
+ </if>
+ <if test="${not temp.build.skip}">
+ <csc if="${current.build.config.release}" keyfile="${path::combine(log4net.basedir, 'log4net.snk')}" nostdlib="true" noconfig="true" warnaserror="true" target="library" debug="${current.build.debug}" define="${current.build.defines.csc}" output="${current.bin.dir}/log4net.dll" doc="${current.bin.dir}/log4net.xml">
+ <nowarn>
+ <!-- warning CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a System.Runtime.CompilerServices.RuntimeWrappedException -->
+ <warning number="1058" />
+ </nowarn>
+ <sources basedir="${log4net.basedir}/src">
+ <include name="**/*.cs" />
+ </sources>
+ <resources failonempty="true">
+ <include name="${log4net.basedir}/NOTICE" />
+ <include name="${log4net.basedir}/LICENSE" />
+ </resources>
+ <references>
+ <include name="mscorlib.dll" />
+ <include name="System.dll" />
+ <include name="System.Data.dll" />
+ <include name="System.Web.dll" />
+ <include name="System.Xml.dll" />
+ <include name="System.Configuration.dll" />
+ <!-- allow for third party assemblies to be referenced by just storing them in the lib/<framework family>/<framework version>/<build configuration> directory -->
+ <include name="lib/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}/*.dll" />
+ </references>
+ </csc>
+ <csc if="${current.build.config.debug}" nostdlib="true" noconfig="true" warnaserror="true" target="library" debug="${current.build.debug}" define="${current.build.defines.csc}" output="${current.bin.dir}/log4net.dll" doc="${current.bin.dir}/log4net.xml">
+ <nowarn>
+ <!-- warning CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a System.Runtime.CompilerServices.RuntimeWrappedException -->
+ <warning number="1058" />
+ </nowarn>
+ <sources basedir="${log4net.basedir}/src">
+ <include name="**/*.cs" />
+ </sources>
+ <resources failonempty="true">
+ <include name="${log4net.basedir}/NOTICE" />
+ <include name="${log4net.basedir}/LICENSE" />
+ </resources>
+ <references>
+ <include name="mscorlib.dll" />
+ <include name="System.dll" />
+ <include name="System.Data.dll" />
+ <include name="System.Web.dll" />
+ <include name="System.Xml.dll" />
+ <include name="System.Configuration.dll" />
+ <!-- allow for third party assemblies to be referenced by just storing them in the lib/<framework family>/<framework version>/<build configuration> directory -->
+ <include name="lib/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}/*.dll" />
+ </references>
+ </csc>
+ </if>
+ </target>
+ <target name="compile-net-3.5" description="Builds .NET Framework 3.5 version" depends="set-net-3.5-runtime-configuration, check-log4net-basedir, clean-current-bin-dir">
+ <!-- initialize the temp.build.skip property to false -->
+ <property name="temp.build.skip" value="false" />
+ <if test="${current.build.config.release}">
+ <!-- check if the log4net key file is available -->
+ <if test="${not file::exists(log4net.basedir + '/log4net.snk')}">
+ <if test="${property::exists('project.build.package') and project.build.package}">
+ <fail message="Key file not found." />
+ </if>
+ <if test="${not(property::exists('project.build.package') and project.build.package)}">
+ <echo message="Key file not found. You can generate a key file by running 'sn -k log4net.snk'." />
+ <echo message="The generated key file should be stored in the log4net base directory." />
+ <echo message="The release build will be skipped." />
+ <property name="temp.build.skip" value="true" />
+ </if>
+ </if>
+ </if>
+ <if test="${not temp.build.skip}">
+ <csc if="${current.build.config.release}" keyfile="${path::combine(log4net.basedir, 'log4net.snk')}" nostdlib="true" noconfig="true" warnaserror="true" target="library" debug="${current.build.debug}" define="${current.build.defines.csc}" output="${current.bin.dir}/log4net.dll" doc="${current.bin.dir}/log4net.xml">
+ <nowarn>
+ <!-- warning CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a System.Runtime.CompilerServices.RuntimeWrappedException -->
+ <warning number="1058" />
+ </nowarn>
+ <sources basedir="${log4net.basedir}/src">
+ <include name="**/*.cs" />
+ </sources>
+ <resources failonempty="true">
+ <include name="${log4net.basedir}/NOTICE" />
+ <include name="${log4net.basedir}/LICENSE" />
+ </resources>
+ <references>
+ <include name="mscorlib.dll" />
+ <include name="System.dll" />
+ <include name="System.Data.dll" />
+ <include name="System.Web.dll" />
+ <include name="System.Xml.dll" />
+ <include name="System.Configuration.dll" />
+ <!-- allow for third party assemblies to be referenced by just storing them in the lib/<framework family>/<framework version>/<build configuration> directory -->
+ <include name="lib/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}/*.dll" />
+ </references>
+ </csc>
+ <csc if="${current.build.config.debug}" nostdlib="true" noconfig="true" warnaserror="true" target="library" debug="${current.build.debug}" define="${current.build.defines.csc}" output="${current.bin.dir}/log4net.dll" doc="${current.bin.dir}/log4net.xml">
+ <nowarn>
+ <!-- warning CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a System.Runtime.CompilerServices.RuntimeWrappedException -->
+ <warning number="1058" />
+ </nowarn>
+ <sources basedir="${log4net.basedir}/src">
+ <include name="**/*.cs" />
+ </sources>
+ <resources failonempty="true">
+ <include name="${log4net.basedir}/NOTICE" />
+ <include name="${log4net.basedir}/LICENSE" />
+ </resources>
+ <references>
+ <include name="mscorlib.dll" />
+ <include name="System.dll" />
+ <include name="System.Data.dll" />
+ <include name="System.Web.dll" />
+ <include name="System.Xml.dll" />
+ <include name="System.Configuration.dll" />
+ <!-- allow for third party assemblies to be referenced by just storing them in the lib/<framework family>/<framework version>/<build configuration> directory -->
+ <include name="lib/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}/*.dll" />
+ </references>
+ </csc>
+ </if>
+ </target>
<target name="compile-mono-1.0" description="Builds Mono 1.0 version" depends="set-mono-1.0-runtime-configuration, check-log4net-basedir, clean-current-bin-dir">
<!-- initialize the temp.build.skip property to false -->
<property name="temp.build.skip" value="false" />
Modified: logging/log4net/trunk/log4net.include
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/log4net.include?rev=631401&r1=631400&r2=631401&view=diff
==============================================================================
--- logging/log4net/trunk/log4net.include (original)
+++ logging/log4net/trunk/log4net.include Tue Feb 26 13:58:37 2008
@@ -226,6 +226,32 @@
<property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
<property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
</target>
+ <!-- uses NET_2_0 defines -->
+ <target name="set-net-3.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
+ <property name="nant.settings.currentframework" value="net-3.0" />
+ <property name="current.build.debug" value="${build.debug}" dynamic="true" />
+ <property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_2_0" dynamic="true" />
+ <property name="current.build.defines.jsc" value="${build.defines.jsc},NET,NET_2_0" dynamic="true" />
+ <property name="current.build.defines.vbc" value="${build.defines.vbc},NET=True,NET_2_0=True" dynamic="true" />
+ <property name="current.build.defines.vjc" value="${build.defines.vjc},NET,NET_2_0" dynamic="true" />
+ <property name="current.build.defines.cl" value="${build.defines.cl} /D NET /D NET_2_0" dynamic="true" />
+ <property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
+ <property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
+ <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
+ </target>
+ <!-- uses NET_2_0 defines -->
+ <target name="set-net-3.5-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
+ <property name="nant.settings.currentframework" value="net-3.5" />
+ <property name="current.build.debug" value="${build.debug}" dynamic="true" />
+ <property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_2_0" dynamic="true" />
+ <property name="current.build.defines.jsc" value="${build.defines.jsc},NET,NET_2_0" dynamic="true" />
+ <property name="current.build.defines.vbc" value="${build.defines.vbc},NET=True,NET_2_0=True" dynamic="true" />
+ <property name="current.build.defines.vjc" value="${build.defines.vjc},NET,NET_2_0" dynamic="true" />
+ <property name="current.build.defines.cl" value="${build.defines.cl} /D NET /D NET_2_0" dynamic="true" />
+ <property name="current.bin.dir" value="${bin.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}/${current.build.config}" />
+ <property name="current.sdkdoc.dir" value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
+ <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true" />
+ </target>
<target name="set-netcf-1.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="netcf-1.0" />
<property name="current.build.debug" value="${build.debug}" dynamic="true" />