directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r952967 - in /directory/studio/branches/studio-improved-build/application/application-release: ./ pom.xml src/ src/main/ src/main/resources/ src/main/resources/sign.sh
Date Wed, 09 Jun 2010 11:55:29 GMT
Author: pamarcelot
Date: Wed Jun  9 11:55:29 2010
New Revision: 952967

URL: http://svn.apache.org/viewvc?rev=952967&view=rev
Log:
Added the 'release' project

Added:
    directory/studio/branches/studio-improved-build/application/application-release/
    directory/studio/branches/studio-improved-build/application/application-release/pom.xml
    directory/studio/branches/studio-improved-build/application/application-release/src/
    directory/studio/branches/studio-improved-build/application/application-release/src/main/
    directory/studio/branches/studio-improved-build/application/application-release/src/main/resources/
    directory/studio/branches/studio-improved-build/application/application-release/src/main/resources/sign.sh
  (with props)

Added: directory/studio/branches/studio-improved-build/application/application-release/pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-improved-build/application/application-release/pom.xml?rev=952967&view=auto
==============================================================================
--- directory/studio/branches/studio-improved-build/application/application-release/pom.xml
(added)
+++ directory/studio/branches/studio-improved-build/application/application-release/pom.xml
Wed Jun  9 11:55:29 2010
@@ -0,0 +1,166 @@
+<?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.
+-->
+<!--
+  @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.directory.studio</groupId>
+    <artifactId>application</artifactId>
+    <version>1.5.4-SNAPSHOT</version>
+  </parent>
+  
+  <artifactId>ApacheDirectoryStudio-release</artifactId>
+  <name>Apache Directory Studio Application Release</name>
+  <packaging>pom</packaging>
+  
+  <properties>
+    <release-dir>${project.build.directory}/ApacheDirectoryStudio-release-${project.version}</release-dir>
+  </properties>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>copy</goal>
+            </goals>
+            <configuration>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>org.apache.directory.studio</groupId>
+                  <artifactId>ApacheDirectoryStudio-linux-x86</artifactId>
+                  <type>tar.gz</type>
+                  <version>${project.version}</version> <!-- TODO -->
+                  <outputDirectory>${release-dir}</outputDirectory>
+                </artifactItem>
+                <artifactItem>
+                  <groupId>org.apache.directory.studio</groupId>
+                  <artifactId>ApacheDirectoryStudio-linux-x86_64</artifactId>
+                  <type>tar.gz</type>
+                  <version>${project.version}</version> <!-- TODO -->
+                  <outputDirectory>${release-dir}</outputDirectory>
+                </artifactItem>
+                <artifactItem>
+                  <groupId>org.apache.directory.studio</groupId>
+                  <artifactId>ApacheDirectoryStudio-macosx-dmg</artifactId>
+                  <type>zip</type>
+                  <version>${project.version}</version> <!-- TODO -->
+                  <outputDirectory>${project.build.directory}</outputDirectory>
+                </artifactItem>
+                <artifactItem>
+                  <groupId>org.apache.directory.studio</groupId>
+                  <artifactId>ApacheDirectoryStudio-win32-exe</artifactId>
+                  <type>zip</type>
+                  <version>${project.version}</version> <!-- TODO -->
+                  <outputDirectory>${project.build.directory}</outputDirectory>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>unzip-copy-files</id>
+            <phase>process-resources</phase>
+            <configuration>
+              <tasks>
+                <unzip dest="${project.build.directory}">
+                    <fileset dir="${project.build.directory}" includes="ApacheDirectoryStudio-*.zip"/>
+                </unzip>
+                <copy file="${project.build.directory}/ApacheDirectoryStudio-macosx-dmg-${version}/ApacheDirectoryStudio-macosx-${version}.dmg"
todir="${release-dir}" />
+                <copy file="${project.build.directory}/ApacheDirectoryStudio-win32-exe-${version}/ApacheDirectoryStudio-win32-${version}.exe"
todir="${release-dir}" />
+                <copy file="src/main/resources/sign.sh" todir="${release-dir}">
+                  <filterset>
+                    <filter token="password" value="${gpg.passphrase}" />
+                  </filterset>
+                </copy>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>delete-sign-sh</id>
+            <phase>package</phase>
+            <configuration>
+              <tasks>
+                <delete file="${release-dir}/sign.sh"/>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <version>1.1</version>
+        <executions>
+          <execution>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+              <configuration>
+                <workingDirectory>${release-dir}</workingDirectory>
+                <executable>sh</executable>
+                <arguments>
+                  <argument>sign.sh</argument>
+                </arguments>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+  
+    <!--
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <configuration>
+              <descriptors>
+                <descriptor>src/main/assembly/assembly.xml</descriptor>
+              </descriptors>
+            </configuration>
+            <goals>
+              <goal>attached</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>-->
+    </plugins>
+  </build>
+  
+</project>

Added: directory/studio/branches/studio-improved-build/application/application-release/src/main/resources/sign.sh
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-improved-build/application/application-release/src/main/resources/sign.sh?rev=952967&view=auto
==============================================================================
--- directory/studio/branches/studio-improved-build/application/application-release/src/main/resources/sign.sh
(added)
+++ directory/studio/branches/studio-improved-build/application/application-release/src/main/resources/sign.sh
Wed Jun  9 11:55:29 2010
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+PASSWORD=@password@
+
+for FILE in $(find . -not '(' -name "sign.sh" -or -name ".*" -or -name "*.md5" -or -name
"*.sha1" -or -name "*.asc" ')' -and -type f) ; 
+do
+    echo "-> Signing '$FILE' ..."
+    
+    # MD5
+    if [ ! -f "$FILE.md5" ];
+    then
+        openssl md5 < "$FILE" | cut "-d " -f1 > "$FILE.md5"
+        echo "  - Generated '$FILE.md5'"
+    else
+        echo "  - Skipped '$FILE.md5' (file already existing)"
+    fi
+    
+    
+    # SHA1
+    if [ ! -f "$FILE.sha1" ];
+    then
+        gpg --print-md SHA1 "$FILE" > "$FILE".sha1
+        echo "  - Generated '$FILE.sha1'"
+    else
+        echo "  - Skipped '$FILE.sha1' (file already existing)"
+    fi
+    
+    
+    # ASC
+    if [ ! -f "$FILE.asc" ];
+    then
+        echo "$PASSWORD" | gpg --detach-sign --armor --no-tty --yes --passphrase-fd 0 "$FILE"
+        echo "  - Generated '$FILE.asc'"
+    else
+        echo "  - Skipped '$FILE.asc' (file already existing)"
+    fi
+
+done
+

Propchange: directory/studio/branches/studio-improved-build/application/application-release/src/main/resources/sign.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message