geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r709546 - in /geronimo/sandbox/dwoods: ./ devstudio/ devstudio/build.xml
Date Fri, 31 Oct 2008 19:50:10 GMT
Author: dwoods
Date: Fri Oct 31 12:50:10 2008
New Revision: 709546

URL: http://svn.apache.org/viewvc?rev=709546&view=rev
Log:
creating a script to assist users in creating a Geronimo DevStudio, based on Eclipse Ganymede
SR1, Geronimo Server 2.1.3 and GEP 2.1.3

Added:
    geronimo/sandbox/dwoods/
    geronimo/sandbox/dwoods/devstudio/
    geronimo/sandbox/dwoods/devstudio/build.xml   (with props)

Added: geronimo/sandbox/dwoods/devstudio/build.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/dwoods/devstudio/build.xml?rev=709546&view=auto
==============================================================================
--- geronimo/sandbox/dwoods/devstudio/build.xml (added)
+++ geronimo/sandbox/dwoods/devstudio/build.xml Fri Oct 31 12:50:10 2008
@@ -0,0 +1,227 @@
+<?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.
+  -->
+
+<!--
+ |  
+ | Apache Geronimo DevStudio -
+ |   ANT script that downloads and extracts the following components into 
+ |   the current directory to create an Eclipse based environment for Apache
+ |   Geronimo users -
+ |     - Eclipse Ganymede SR1
+ |     - Apache Geronimo Sever v2.1.3
+ |     - Apache Geronimo Eclipse Plugin v2.1.3
+ |
+ |  Prequisites -
+ |     - ANT 1..6.5 or higher
+ |     - Java SE 5 or 6 (but Java SE 5 is preferred)
+ | 
+ | @version $Rev$ $Date$
+ -->
+<project name="GeronimoDevStudio" default="default">
+
+    <!-- import environment settings -->
+    <property environment="env"/>
+
+    <!-- record output to a logfile -->
+    <record name="${basedir}/install.log"/>
+
+
+    <!-------------------------------->
+    <!--  Initialization targets    -->
+    <!-------------------------------->
+    <target name="init:platform"
+            description="Discover what platform we are running on">
+        <condition property="isWindows">
+            <os family="winnt"/>
+        </condition>
+        <condition property="isLinux">
+            <os name="Linux"/>
+        </condition>
+        <condition property="isMacOSX">
+            <and>
+                <os family="mac"/>
+                <os family="unix"/>
+            </and>
+        </condition>
+    </target>
+
+    <target name="init:ganymede"
+            description="Setup vars to download and extract Eclipse Ganymede">
+        <property name="ganymede_url"           value="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/"/>
+        <property name="ganymede_jee_win32"     value="eclipse-jee-ganymede-SR1-win32.zip"/>
+        <property name="ganymede_jee_linux"     value="eclipse-jee-ganymede-SR1-linux-gtk.tar"/>
+        <property name="ganymede_jee_macos"     value="eclipse-jee-ganymede-SR1-macosx-carbon.tar"/>
+        <property name="ganymede_jee_linux_gz"  value="${ganymede_jee_linux}.gz"/>
+        <property name="ganymede_jee_macos_gz"  value="${ganymede_jee_macos}.gz"/>
+        <property name="ganymede_protocol"      value="&amp;r=1&amp;protocol=http"/>
+    </target>
+
+    <target name="init:geronimo"
+            description="Setup vars to download and extract Apache Geronimo">
+        <!-- Properties for the Apache Geronimo Server -->
+        <property name="geronimo_version"       value="2.1.3"/>
+        <property name="geronimo_assembly"      value="tomcat6-javaee5"/>
+        <property name="geronimo_url"           value="http://www.apache.org/dist/geronimo/${geronimo_version}/"/>
+        <property name="geronimo_server_tar"    value="geronimo-${geronimo_assembly}-${geronimo_version}-bin.tar"/>
+        <property name="geronimo_server_zip"    value="geronimo-${geronimo_assembly}-${geronimo_version}-bin.zip"/>
+        <property name="geronimo_server_tar_gz" value="${geronimo_server_tar}.gz"/>
+        <!-- Properties for the Apache Geronimo Server Eclipse Plugin (GEP) -->
+        <property name="gep_version"            value="2.1.3"/>
+        <property name="gep_url"                value="http://www.apache.org/dist/geronimo/eclipse/${gep_version}/"/>
+        <property name="gep_zip"                value="geronimo-eclipse-plugin-${gep_version}-deployable.zip"/>
+    </target>
+
+    <target name="init" depends="init:platform, init:ganymede, init:geronimo"
+            description="Call common init tasks">
+        <!-- default everything to go under current dir for now -->
+        <property name="root_dir" value="${basedir}"/>
+        <property name="image_dir" value="${root_dir}/images"/>
+        <mkdir dir="${image_dir}"/>
+    </target>
+
+
+    <!-------------------------------->
+    <!--  Download artifact targets -->
+    <!-------------------------------->
+    <target name="download:windows" depends="init" if="isWindows"
+            description="Download Windows i386 specific artifact(s)">
+        <echo>################################################################################</echo>
+        <echo>## Downloading: ${ganymede_jee_win32}                               
           </echo>
+        <echo>## From: ${ganymede_url}                                            
           </echo>
+        <get src="${ganymede_url}${ganymede_jee_win32}${ganymede_protocol}"
+             dest="${image_dir}/${ganymede_jee_win32}" 
+             verbose="true"
+             ignoreerrors="true"
+             usetimestamp="true"/>
+        <echo>################################################################################</echo>
+        <echo>## Downloading: ${geronimo_server_zip}                              
           </echo>
+        <echo>## From: ${geronimo_url}                                            
           </echo>
+        <get src="${geronimo_url}${geronimo_server_zip}"
+             dest="${image_dir}/${geronimo_server_zip}" 
+             verbose="true"
+             ignoreerrors="true"
+             usetimestamp="true"/>
+        <echo>################################################################################</echo>
+    </target>
+
+    <target name="download:linux" depends="init" if="isLinux"
+            description="Download Linux i386 specific artifact(s)">
+        <echo>################################################################################</echo>
+        <echo>## Downloading: ${ganymede_jee_linux_gz}                            
           </echo>
+        <echo>## From: ${ganymede_url}                                            
           </echo>
+        <get src="${ganymede_url}${ganymede_jee_linux_gz}${ganymede_protocol}"
+             dest="${image_dir}/${ganymede_jee_linux_gz}" 
+             verbose="true"
+             ignoreerrors="true"
+             usetimestamp="true"/>
+        <echo>################################################################################</echo>
+        <echo>## Downloading: ${geronimo_server_tar_gz}                           
           </echo>
+        <echo>## From: ${geronimo_url}                                            
           </echo>
+        <get src="${geronimo_url}${geronimo_server_tar_gz}"
+             dest="${image_dir}/${geronimo_server_tar_gz}" 
+             verbose="true"
+             ignoreerrors="true"
+             usetimestamp="true"/>
+        <echo>################################################################################</echo>
+    </target>
+
+    <target name="download:macosx" depends="init" if="isMacOSX"
+            description="Download MacOSX specific artifact(s)">
+        <echo>################################################################################</echo>
+        <echo>## Downloading: ${ganymede_jee_macos_gz}                            
           </echo>
+        <echo>## From: ${ganymede_url}                                            
           </echo>
+        <get src="${ganymede_url}${ganymede_jee_macos_gz}${ganymede_protocol}"
+             dest="${image_dir}/${ganymede_jee_macos_gz}" 
+             verbose="true"
+             ignoreerrors="true"
+             usetimestamp="true"/>
+        <echo>################################################################################</echo>
+        <echo>## Downloading: ${geronimo_server_tar_gz}                           
           </echo>
+        <echo>## From: ${geronimo_url}                                            
           </echo>
+        <get src="${geronimo_url}${geronimo_server_tar_gz}"
+             dest="${image_dir}/${geronimo_server_tar_gz}" 
+             verbose="true"
+             ignoreerrors="true"
+             usetimestamp="true"/>
+        <echo>################################################################################</echo>
+    </target>
+
+    <target name="download" depends="init, download:linux, download:macosx, download:windows"
description="Download artifact(s)">
+        <echo>################################################################################</echo>
+        <echo>## Downloading: ${gep_zip}                                          
           </echo>
+        <echo>## From: ${gep_url}                                                 
      </echo>
+        <get src="${gep_url}${gep_zip}"
+             dest="${image_dir}/${gep_zip}" 
+             verbose="true"
+             ignoreerrors="true"
+             usetimestamp="true"/>
+        <echo>################################################################################</echo>
+    </target>
+
+
+    <!-------------------------------->
+    <!--  Extract artifact targets  -->
+    <!-------------------------------->
+    <target name="extract:windows" depends="init" if="isWindows"
+            description="Extract Windows i386 specific artifact(s)">
+        <echo>################################################################################</echo>
+        <echo>## Extracting: ${ganymede_jee_win32}                                
           </echo>
+        <delete dir="${root_dir}/eclipse" quiet="true"/>
+        <unzip src="${image_dir}/${ganymede_jee_win32}" 
+               dest="${root_dir}"
+               overwrite="true"/>
+        <echo>################################################################################</echo>
+    </target>
+
+    <target name="extract:linux" depends="init" if="isLinux"
+            description="Extract Linux i386 specific artifact(s)">
+        <echo>################################################################################</echo>
+        <echo>## Extracting: ${ganymede_jee_linux_gz}                             
           </echo>
+        <delete dir="${root_dir}/eclipse" quiet="true"/>
+        <gunzip src="${image_dir}/${ganymede_jee_linux_gz}"/>
+        <untar  src="${image_dir}/${ganymede_jee_linux}" 
+                dest="${root_dir}"
+                overwrite="true"/>
+        <echo>################################################################################</echo>
+    </target>
+
+    <target name="extract:macosx" depends="init" if="isMacOSX"
+            description="Extract MacOSX specific artifact(s)">
+        <echo>################################################################################</echo>
+        <echo>## Extracting: ${ganymede_jee_macos_gz}                             
           </echo>
+        <delete dir="${root_dir}/eclipse" quiet="true"/>
+        <gunzip src="${image_dir}/${ganymede_jee_macos_gz}"/>
+        <untar  src="${image_dir}/${ganymede_jee_macos}" 
+                dest="${root_dir}"
+                overwrite="true"/>
+        <echo>################################################################################</echo>
+    </target>
+
+    <target name="extract" depends="init, extract:linux, extract:macosx, extract:windows"
description="Extract artifact(s)">
+    </target>
+
+
+    <!-------------------------------->
+    <!--  Top-level user targets    -->
+    <!-------------------------------->
+    <target name="default" depends="init">
+        <echo>################################################################################</echo>
+    </target>
+
+
+</project>

Propchange: geronimo/sandbox/dwoods/devstudio/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message