You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2008/02/16 18:36:36 UTC

svn commit: r628365 - in /cocoon/trunk/tools/release-builder: ./ build.xml

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



Re: svn commit: r628365 - in /cocoon/trunk/tools/release-builder: ./ build.xml

Posted by Vadim Gritsenko <va...@reverycodes.com>.
On Feb 20, 2008, at 9:41 AM, Reinhard Poetz wrote:

> Vadim Gritsenko wrote:
>> On Feb 16, 2008, at 12:36 PM, reinhard@apache.org wrote:
>>> start with an Ant script that creates the distribution artifacts  
>>> for Non-Maven Cocoon releases
>> Just wondering - why not assembly plugin?
>
> I failed to get it working the way I want it. Since I do not want to  
> invest endless engery, I switched to Ant.

I felt same way trying to make 2.2 compile. (devil's advocate) may be  
we should switch to Ant? At least it will be faster and easier to work  
with :)

Vadim

Re: svn commit: r628365 - in /cocoon/trunk/tools/release-builder: ./ build.xml

Posted by Reinhard Poetz <re...@apache.org>.
Vadim Gritsenko wrote:
> On Feb 16, 2008, at 12:36 PM, reinhard@apache.org wrote:
> 
>> start with an Ant script that creates the distribution artifacts for 
>> Non-Maven Cocoon releases
> 
> Just wondering - why not assembly plugin?

I failed to get it working the way I want it. Since I do not want to invest 
endless engery, I switched to Ant.

-- 
Reinhard Pötz                            Managing Director, {Indoqa} GmbH
                           http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair        reinhard@apache.org
_________________________________________________________________________

Re: svn commit: r628365 - in /cocoon/trunk/tools/release-builder: ./ build.xml

Posted by Vadim Gritsenko <va...@reverycodes.com>.
On Feb 16, 2008, at 12:36 PM, reinhard@apache.org wrote:

> start with an Ant script that creates the distribution artifacts for  
> Non-Maven Cocoon releases


Just wondering - why not assembly plugin?

"Do you want to create a binary distribution from a Maven project that  
includes supporting scripts, configuration files, and all runtime  
dependencies? You need to use the Assembly Plugin to create a  
distribution for your project."

Vadim