cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r628365 - in /cocoon/trunk/tools/release-builder: ./ build.xml
Date Sat, 16 Feb 2008 17:36:36 GMT
Author: reinhard
Date: Sat Feb 16 09:36:34 2008
New Revision: 628365

URL: http://svn.apache.org/viewvc?rev=628365&view=rev
Log:
start with an Ant script that creates the distribution artifacts for Non-Maven Cocoon releases

Added:
    cocoon/trunk/tools/release-builder/
    cocoon/trunk/tools/release-builder/build.xml   (with props)

Added: cocoon/trunk/tools/release-builder/build.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/release-builder/build.xml?rev=628365&view=auto
==============================================================================
--- cocoon/trunk/tools/release-builder/build.xml (added)
+++ cocoon/trunk/tools/release-builder/build.xml Sat Feb 16 09:36:34 2008
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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>
+
+  <property name="downloadUrl" value="http://repo1.maven.org/maven2/org/apache/cocoon/"/>
+  <property name="docs-output-dir" value=""/>
+  <property name="target-dir" value="./target" />
+  <property name="release-dir" value="${target-dir}/release"/>
+
+  <target name="init">
+    <delete dir="${target-dir}" />
+    <mkdir dir="${release-dir}" />
+  </target>
+
+  <target name="fop-block" depends="init">
+	<block-dist name="cocoon-fop-impl" version="1.0.0-RC2" />
+  </target>
+
+  <macrodef name="block-dist">
+    <attribute name="name"/>
+    <attribute name="version"/>
+    <sequential>
+	    <property name="jarFileName" value="@{name}-@{version}.jar" />
+	    <property name="sourcesFileName" value="@{name}-@{version}-sources.jar" />
+	    <property name="javadocFileName" value="@{name}-@{version}-javadoc.jar" />
+	    <property name="distFileName" value="@{name}-@{version}-dist.zip" />
+
+	    <get dest="${target-dir}/${jarFileName}" src="${downloadUrl}/@{name}/@{version}/${jarFileName}"
/>
+	    <get dest="${target-dir}/${sourcesFileName}" src="${downloadUrl}/@{name}/@{version}/${sourcesFileName}"
/>
+	    <get dest="${target-dir}/${javadocFileName}" src="${downloadUrl}/@{name}/@{version}/${javadocFileName}"
/>
+
+	    <!-- copy the docs -->
+	    <mkdir dir="${release-dir}/docs"/>
+
+	    <!-- unzip Javadocs -->
+	    <mkdir dir="${release-dir}/docs/apidocs"/>
+	    <unzip src="${target-dir}/${javadocFileName}" dest="${release-dir}/docs/apidocs"/>
+
+	    <!-- unzip Sources -->
+	    <mkdir dir="${release-dir}/src"/>
+	    <unzip src="${target-dir}/${sourcesFileName}" dest="${release-dir}/src"/>
+
+        <!-- copy the binaries  -->
+        <copy file="${target-dir}/${jarFileName}" tofile="${release-dir}/${jarFileName}"
/>
+
+	    <!-- notice and license files -->
+	    <unzip src="${target-dir}/${jarFileName}" dest="${release-dir}">
+	      <patternset>
+	        <include name="META-INF/license.txt"/>
+	        <include name="META-INF/notice.txt"/>
+	      </patternset>
+	      <mapper type="flatten"/>
+	    </unzip>
+
+	    <property name="dist-full-name" value="${target-dir}/${distFileName}" />
+	    <!-- create the distribution -->
+	    <zip destfile="${dist-full-name}" basedir="${release-dir}" />
+
+	    <!-- checksums -->
+	    <checksum algorithm="SHA" file="${dist-full-name}" fileext=".sha1" />
+	    <checksum file="${dist-full-name}" fileext=".md5" />
+
+        <!-- cleanup -->
+        <delete file="${target-dir}/${jarFileName}"/>
+        <delete file="${target-dir}/${sourcesFileName}"/>
+        <delete file="${target-dir}/${javadocFileName}"/>
+
+	    <!-- gpg -->
+
+	    <!-- scp to staging repository -->
+
+    </sequential>
+  </macrodef>
+
+</project>
\ No newline at end of file

Propchange: cocoon/trunk/tools/release-builder/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/tools/release-builder/build.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cocoon/trunk/tools/release-builder/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message