logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1177663 - /logging/log4net/trunk/log4net.build
Date Fri, 30 Sep 2011 13:49:02 GMT
Author: bodewig
Date: Fri Sep 30 13:49:02 2011
New Revision: 1177663

URL: http://svn.apache.org/viewvc?rev=1177663&view=rev
Log:
targets for creating a binary distribution

Modified:
    logging/log4net/trunk/log4net.build

Modified: logging/log4net/trunk/log4net.build
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/log4net.build?rev=1177663&r1=1177662&r2=1177663&view=diff
==============================================================================
--- logging/log4net/trunk/log4net.build (original)
+++ logging/log4net/trunk/log4net.build Fri Sep 30 13:49:02 2011
@@ -1313,6 +1313,13 @@ limitations under the License.
       </fileset>
     </copy>
   </target>
+  <target name="generate-site">
+    <property name="mvn" value="mvn"/>
+    <if test="${platform::is-windows()}">
+      <property name="mvn" value="mvn.bat"/>
+    </if>
+    <exec program="${mvn}" commandline="site:site"/>
+  </target>
   <target name="package" description="Build and Package distribution">
     <!-- set flag to indicating that this is a package build -->
     <property name="project.build.package" value="true" />
@@ -1323,9 +1330,7 @@ limitations under the License.
     <call target="compile-all" />
     <!-- generate the sdk docs using the release build configuration for all runtime configuration
-->
     <call target="set-release-build-configuration" />
-    <call target="generate-sdkdoc-all" />
-    <!-- create the package distribution zipfile -->
-    <call target="create-package-zipfiles" />
+    <call target="package-bin" />
   </target>
   <target name="package-src">
     <copy todir="${current.package.src.dir}">
@@ -1361,8 +1366,7 @@ limitations under the License.
         <exclude name="tests/lib/**" />
       </fileset>
     </copy>
-  </target>
-  <target name="create-package-zipfiles">
+
     <!-- delete the specified zipfile if it already exists -->
     <delete>
       <fileset basedir="build">
@@ -1376,6 +1380,74 @@ limitations under the License.
       </fileset>
     </zip>
   </target>
+  <target name="package-bin" depends="generate-sdkdoc-step1,generate-site">
+    <copy todir="${current.package.bin.dir}">
+      <fileset basedir=".">
+        <include name="KEYS"/>
+        <include name="LICENSE"/>
+        <include name="NOTICE"/>
+        <include name="README.txt"/>
+        <include name="STATUS.txt"/>
+        <include name="bin/**/release/**"/>
+      </fileset>
+    </copy>
+    <copy todir="${current.package.bin.dir}">
+      <fileset basedir="${current.sdkdoc.dir}">
+        <include name="**/*.chm" />
+      </fileset>
+    </copy>
+    <property name="current.package.doc.dir"
+              value="${current.package.bin.dir}/doc"/>
+    <mkdir dir="${current.package.doc.dir}/release/sdk"/>
+    <copy todir="${current.package.doc.dir}/release/sdk">
+      <fileset basedir="${current.sdkdoc.dir}">
+        <include name="**/*" />
+        <exclude name="**/*.chm" />
+        <exclude name="**/*.hh?" />
+        <exclude name="**/*.log" />
+      </fileset>
+    </copy>
+    <copy todir="${current.package.doc.dir}">
+      <fileset basedir="target/site">
+        <include name="**"/>
+      </fileset>
+    </copy>
+
+    <delete>
+      <fileset basedir="build">
+        <include name="${current.package.bin.dir}-*key.zip" />
+      </fileset>
+    </delete>
+    <zip zipfile="${current.package.bin.dir}-newkey.zip" ziplevel="9">
+      <fileset basedir="${current.package.bin.dir}"
+               prefix="${current.package.name}">
+        <include name="**"/>
+      </fileset>
+    </zip>
+
+    <!-- binary dist with old strong name key -->
+    <foreach item="Folder" property="platform-and-version">
+      <in>
+        <items>
+          <include name="bin/*/*"/>
+        </items>
+      </in>
+      <do>
+        <copy todir="${current.package.bin.dir}/${string::replace(platform-and-version,
project::get-base-directory(), '')}/release"
+              overwrite="true">
+          <fileset basedir="${platform-and-version}/oldkey">
+            <include name="**"/>
+          </fileset>
+        </copy>
+      </do>
+    </foreach>
+    <zip zipfile="${current.package.bin.dir}-oldkey.zip" ziplevel="9">
+      <fileset basedir="${current.package.bin.dir}"
+               prefix="${current.package.name}">
+        <include name="**"/>
+      </fileset>
+    </zip>
+  </target>
 
   <target name="generate-assembly-description">
     <if test="${not(property::exists('source.svn.revision'))}">



Mime
View raw message