directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r952771 - in /directory/studio/branches/studio-improved-build/application/application-macosx-dmg: ./ src/ src/main/ src/main/assembly/ src/main/resources/
Date Tue, 08 Jun 2010 19:04:07 GMT
Author: pamarcelot
Date: Tue Jun  8 19:04:07 2010
New Revision: 952771

URL: http://svn.apache.org/viewvc?rev=952771&view=rev
Log:
Added project for generating the Mac OS X DMG file and packaging it into a zip.

Added:
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/pom.xml
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/assembly/
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/assembly/assembly.xml
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/DS_Store
  (with props)
    directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/background.png
  (with props)

Added: directory/studio/branches/studio-improved-build/application/application-macosx-dmg/pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-improved-build/application/application-macosx-dmg/pom.xml?rev=952771&view=auto
==============================================================================
--- directory/studio/branches/studio-improved-build/application/application-macosx-dmg/pom.xml
(added)
+++ directory/studio/branches/studio-improved-build/application/application-macosx-dmg/pom.xml
Tue Jun  8 19:04:07 2010
@@ -0,0 +1,170 @@
+<?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-macosx-dmg</artifactId>
+  <name>Apache Directory Studio Application Mac OS X DMG</name>
+  <packaging>pom</packaging>
+  
+  <properties>
+    <dmg-dir>${project.build.directory}/ApacheDirectoryStudio-macosx-${version}</dmg-dir>
+    <tmp-dmg>${project.build.directory}/ApacheDirectoryStudio-macosx-${version}-tmp.dmg</tmp-dmg>
+    <final-dmg>${project.build.directory}/ApacheDirectoryStudio-macosx-${version}.dmg</final-dmg>
+  </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-macosx</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>
+            <phase>process-resources</phase>
+            <configuration>
+              <tasks>
+                <unzip dest="${project.build.directory}">
+                    <fileset dir="${project.build.directory}" includes="ApacheDirectoryStudio-macosx-*.zip"/>
+                </unzip>
+                <copyfile src="src/main/resources/DS_Store" dest="${dmg-dir}/.DS_Store"/>
+                <copyfile src="src/main/resources/background.png" dest="${dmg-dir}/.background/background.png"/>
+              </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>
+            <id>create-applications-link</id>
+            <phase>package</phase>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+              <configuration>
+                <executable>ln</executable>
+                <arguments>
+                  <argument>-s</argument>
+                  <argument>/Applications</argument>
+                  <argument>${dmg-dir}/Applications</argument>
+                </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>makehybrid</id>
+            <phase>package</phase>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+              <configuration>
+                <executable>hdiutil</executable>
+                <arguments>
+                  <argument>makehybrid</argument>
+                  <argument>-hfs</argument>
+                  <argument>-hfs-volume-name</argument>
+                  <argument>Apache Directory Studio</argument>
+                  <argument>-hfs-openfolder</argument>
+                  <argument>${dmg-dir}</argument>
+                  <argument>${dmg-dir}</argument>
+                  <argument>-o</argument>
+                  <argument>${tmp-dmg}</argument>
+                </arguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>convert</id>
+            <phase>package</phase>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+              <configuration>
+                <executable>hdiutil</executable>
+                <arguments>
+                  <argument>convert</argument>
+                  <argument>-format</argument>
+                  <argument>UDZO</argument>
+                  <argument>${tmp-dmg}</argument>
+                  <argument>-o</argument>
+                  <argument>${final-dmg}</argument>
+                </arguments>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+  
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <!-- Create the distribution file -->
+          <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-macosx-dmg/src/main/assembly/assembly.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/assembly/assembly.xml?rev=952771&view=auto
==============================================================================
--- directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/assembly/assembly.xml
(added)
+++ directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/assembly/assembly.xml
Tue Jun  8 19:04:07 2010
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    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.
+-->
+<!-- $Rev:  $ $Date:  $ -->
+<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+    <id></id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <files>
+        <file>
+            <source>${final-dmg}</source>
+        </file>
+    </files>
+</assembly>

Added: directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/DS_Store
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/DS_Store?rev=952771&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/DS_Store
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/background.png
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/background.png?rev=952771&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/branches/studio-improved-build/application/application-macosx-dmg/src/main/resources/background.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message