You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2017/04/26 09:11:59 UTC
[15/50] [abbrv] logging-log4net git commit: Added packaging support
for the xdocs and the unit tests
Added packaging support for the xdocs and the unit tests
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/341a28cd
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/341a28cd
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/341a28cd
Branch: refs/heads/origin/trunk
Commit: 341a28cde1901b26c187421d82f2d8bfa3519fa7
Parents: e8fd624
Author: Nicko Cadell <ni...@apache.org>
Authored: Wed Feb 16 21:53:56 2005 +0000
Committer: Nicko Cadell <ni...@apache.org>
Committed: Wed Feb 16 21:53:56 2005 +0000
----------------------------------------------------------------------
log4net.build | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/341a28cd/log4net.build
----------------------------------------------------------------------
diff --git a/log4net.build b/log4net.build
index 6d0f810..cba977a 100755
--- a/log4net.build
+++ b/log4net.build
@@ -1,6 +1,7 @@
<?xml version="1.0" ?>
<project name="log4net" default="compile-all" xmlnds="http://tempuri.org/nant-vs.xsd">
<!-- Global project settings -->
+ <!-- Global project settings -->
<property name="log4net.basedir" value="." />
<property name="project.build.config" value="debug" />
<property name="project.build.package" value="false" />
@@ -600,6 +601,8 @@
<call target="package-examples" />
<!-- copies the sources to the current package directory -->
<call target="package-src" />
+ <!-- copies the unit tests sources to the current package directory -->
+ <call target="package-tests-src" />
<!-- copies the extenstions to the current package directory -->
<call target="package-extensions" />
<!-- copies the documentation to the current package directory -->
@@ -654,6 +657,31 @@
</fileset>
</copy>
</target>
+ <target name="package-tests-src" depends="check-current-package-dir, check-log4net-basedir">
+ <mkdir dir="${current.package.dir}/tests" />
+ <delete dir="${current.package.dir}/tests" />
+ <copy todir="${current.package.dir}/tests/src">
+ <fileset basedir="tests/src">
+ <include name="**/*" />
+ <exclude name="**/obj/**" />
+ <exclude name="*.csproj.user" />
+ <exclude name="*.suo" />
+ <exclude name="log4net.ndoc" />
+ <exclude name="log4net*.xml" />
+ <exclude name="**/*.sln.old" />
+ </fileset>
+ </copy>
+ <copy todir="${current.package.dir}/tests/lib">
+ <fileset basedir="tests/lib">
+ <include name="**/*.dll" />
+ </fileset>
+ </copy>
+ <copy todir="${current.package.dir}/tests">
+ <fileset basedir="tests">
+ <include name="**/nant.*" />
+ </fileset>
+ </copy>
+ </target>
<target name="package-extensions" depends="check-current-package-dir, check-log4net-basedir">
<mkdir dir="${current.package.dir}/extensions" />
<delete dir="${current.package.dir}/extensions" />
@@ -676,6 +704,14 @@
<copy todir="${current.package.dir}/doc" includeemptydirs="false">
<fileset basedir="doc">
<include name="**/*" />
+ <exclude name="**/ndoc.log" />
+ </fileset>
+ </copy>
+ <mkdir dir="${current.package.dir}/xdocs" />
+ <copy todir="${current.package.dir}/xdocs" includeemptydirs="false">
+ <fileset basedir="xdocs">
+ <include name="**/*.xml" />
+ <include name="**/*.vsl" />
</fileset>
</copy>
</target>
@@ -715,6 +751,12 @@
<exclude name="extensions/**/doc/**" />
<!-- file created by mono compiler -->
<exclude name="**/gc.log" />
+ <!-- do not include the nunit binaries -->
+ <exclude name="tests/**/nunit*.dll" />
+ <!-- do not include the Visual Studio .NET 2003 project and solution files -->
+ <exclude name="**/*vs2003*" />
+ <!-- do not include old swp files (there shouldn't be any!) -->
+ <exclude name="**/*.swp" />
</fileset>
</zip>
</target>