Author: dwoods
Date: Mon Oct 6 09:12:39 2008
New Revision: 702185
URL: http://svn.apache.org/viewvc?rev=702185&view=rev
Log:
update to use Eclipse Ganymede for builds
Added:
geronimo/devtools/j2g/trunk/eclipse/build.xml (with props)
Removed:
geronimo/devtools/j2g/trunk/eclipse/eclipse-3.2.2.xml
geronimo/devtools/j2g/trunk/eclipse/eclipse-3.3.xml
Modified:
geronimo/devtools/j2g/trunk/doc/readme.txt
geronimo/devtools/j2g/trunk/eclipse/pom.xml
geronimo/devtools/j2g/trunk/pom.xml
geronimo/devtools/j2g/trunk/readme.txt
Modified: geronimo/devtools/j2g/trunk/doc/readme.txt
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/doc/readme.txt?rev=702185&r1=702184&r2=702185&view=diff
==============================================================================
--- geronimo/devtools/j2g/trunk/doc/readme.txt (original)
+++ geronimo/devtools/j2g/trunk/doc/readme.txt Mon Oct 6 09:12:39 2008
@@ -17,12 +17,14 @@
==================================
J2G-Migration Package
==================================
-Note: Please visit http://cwiki.apache.org/confluence/display/GMOxDOC11/J2G+Migration+Tool
for more thorough documentation
-
-JBoss to Geronimo (J2G) is a tool set built as command line Eclipse SDK plug-ins
-designed to assist in migrating the sources of an application written for the JBoss
-application server or written for Java 2 Enterprise Edition (J2EE) to the Apache
-Geronimo platform.
+Note: Please visit:
+ http://cwiki.apache.org/GMOxDOC20/j2g-migration-tool.html
+for more thorough documentation.
+
+JBoss to Geronimo (J2G) is a tool set built as command line Eclipse SDK
+plug-ins designed to assist in migrating the sources of an application written
+for the JBoss application server or written for Java 2 Enterprise Edition (J2EE)
+to the Apache Geronimo platform.
==================================
Dependencies
@@ -31,15 +33,16 @@
(these are the versions J2G is known to work on)
* Sun JDK 5.0+ (J2SE 1.5)
- * Eclipse SDK 3.3 with JDT Core Plug-in
- * Apache Geronimo 1.1.1 or 2.0.x
- * Application written for JBoss 3.2 and up or J2EE 1.2 and up.
+ * Eclipse Europa (v3.3) with JDT Core Plug-in or
+ Eclipse Ganymede (v3.4) JavaEE bundle
+ * Apache Geronimo 1.1.1 or later
+ * Application written for JBoss 3.2 or later
==================================
Environment Variables
==================================
-The tools in J2G require that the following environment variables be set to the proper
-locations:
+The tools in J2G require that the following environment variables be set to the
+proper locations:
* JAVA_HOME (Location of the JDK)
* ECLIPSE_HOME (Location of the Eclipse SDK)
@@ -50,32 +53,36 @@
==================================
To run this component, navigate to bin, and run j2g-configure
-This will automatically copy the contents of the ./plugins directory to ECLIPSE_HOME/plugins,
-as well as make changes (or create, if necessary) to ECLIPSE_HOME/configuration/config.ini.
+This will automatically copy the contents of the ./plugins directory to
+ECLIPSE_HOME/plugins, as well as make changes (or create, if necessary) to
+ECLIPSE_HOME/configuration/config.ini.
==================================
2. Source Identification Tool
==================================
-This tool parses through source code (.java and .jsp files) recursively in directories
-passed to it as command line arguments. While doing this, it replaces any JBoss classes
-and dependencies for which there are Geronimo equivalents. If there is no equivalent, it
-will alert the user of this issue which must be resolved either through manual creation
-of a replacement class or rewriting the segment of code dependent on the JBoss class.
+This tool parses through source code (.java and .jsp files) recursively in
+directories passed to it as command line arguments. While doing this, it
+replaces any JBoss classes and dependencies for which there are Geronimo
+equivalents. If there is no equivalent, it will alert the user of this issue
+which must be resolved either through manual creation of a replacement class
+or rewriting the segment of code dependent on the JBoss class.
- Usage: jsrc2g -src <APPLICATION>\src -web <APPLICATION>\web -geronimo <GERONIMO_HOME>
==================================
3. Descriptors Conversion Tool
==================================
-This tool converts JBoss specific deployment descriptors and J2EE standard deployment
-descriptors (if necessary) to their Geronimo equivalents.
+This tool converts JBoss specific deployment descriptors and J2EE standard
+deployment descriptors (if necessary) to their Geronimo equivalents.
- Usage: jdesc2g <APPLICATION>
==================================
4. Resource Conversion Tool
==================================
-This tool converts JBoss specific resources, such as Java Messaging Services (JMS) Queues,
-JMS Topics, Java Database Connectivity (JDBC) data sources to their Geronimo equivalents.
+This tool converts JBoss specific resources, such as Java Messaging Services
+(JMS) Queues, JMS Topics, Java Database Connectivity (JDBC) data sources to
+their Geronimo equivalents.
- Usage: jres2g <APPLICATION>
+
Added: geronimo/devtools/j2g/trunk/eclipse/build.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/eclipse/build.xml?rev=702185&view=auto
==============================================================================
--- geronimo/devtools/j2g/trunk/eclipse/build.xml (added)
+++ geronimo/devtools/j2g/trunk/eclipse/build.xml Mon Oct 6 09:12:39 2008
@@ -0,0 +1,118 @@
+<?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.
+ -->
+
+<!--
+ |
+ | Download Ganymede artifacts and unzip them into the user's local maven repo
+ |
+ |
+ | @version $Rev$ $Date$
+ -->
+<project name="GanymedeArtifacts">
+
+ <target name="init">
+ <property name="ganymede_url" value="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/R/"/>
+ <property name="ganymede_jee_win32" value="eclipse-jee-ganymede-win32.zip"/>
+ <property name="ganymede_jee_linux" value="eclipse-jee-ganymede-linux-gtk.tar"/>
+ <property name="ganymede_jee_macos" value="eclipse-jee-ganymede-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="protocol" value="&r=1&protocol=http"/>
+ </target>
+
+ <target name="win32" depends="init" description="Download Windows-specific artifact(s)">
+ <echo>#################################################################################</echo>
+ <echo>##
</echo>
+ <echo>## Downloading: ${ganymede_jee_win32}
</echo>
+ <echo>##
</echo>
+ <echo>## From: ${ganymede_url}
</echo>
+ <echo>##
</echo>
+ <echo>#################################################################################</echo>
+ <mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
+ <get src="${ganymede_url}${ganymede_jee_win32}${protocol}"
+ dest="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_win32}"
+ verbose="true"
+ ignoreerrors="true"
+ usetimestamp="true"/>
+ <echo>#################################################################################</echo>
+ <echo>##
</echo>
+ <echo>## Unzipping: ${ganymede_jee_win32}
</echo>
+ <echo>##
</echo>
+ <echo>#################################################################################</echo>
+ <delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
+ <mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
+ <unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_win32}"
+ dest="${LOCAL_M2_REPO}/eclipse"
+ overwrite="true"/>
+ </target>
+
+ <target name="linux" depends="init" description="Download Linux-specific artifact(s)">
+ <echo>#################################################################################</echo>
+ <echo>##
</echo>
+ <echo>## Downloading: ${ganymede_jee_linux_gz}
</echo>
+ <echo>##
</echo>
+ <echo>## From: ${ganymede_url}
</echo>
+ <echo>##
</echo>
+ <echo>#################################################################################</echo>
+ <mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
+ <get src="${ganymede_url}${ganymede_jee_linux_gz}${protocol}"
+ dest="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_linux_gz}"
+ verbose="true"
+ ignoreerrors="true"
+ usetimestamp="true"/>
+ <echo>#################################################################################</echo>
+ <echo>##
</echo>
+ <echo>## Unzipping: ${ganymede_jee_linux_gz}
</echo>
+ <echo>##
</echo>
+ <echo>#################################################################################</echo>
+ <delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
+ <mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
+ <gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_linux_gz}"/>
+ <untar src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_linux}"
+ dest="${LOCAL_M2_REPO}/eclipse"
+ overwrite="true"/>
+ </target>
+
+ <target name="macos" depends="init" description="Download Mac-specific artifact(s)">
+ <echo>#################################################################################</echo>
+ <echo>##
</echo>
+ <echo>## Downloading: ${ganymede_jee_macos_gz}
</echo>
+ <echo>##
</echo>
+ <echo>## From: ${ganymede_url}
</echo>
+ <echo>##
</echo>
+ <echo>#################################################################################</echo>
+ <mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
+ <get src="${ganymede_url}${ganymede_jee_macos_gz}${protocol}"
+ dest="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_macos_gz}"
+ verbose="true"
+ ignoreerrors="true"
+ usetimestamp="true"/>
+ <echo>#################################################################################</echo>
+ <echo>##
</echo>
+ <echo>## Unzipping: ${ganymede_jee_macos_gz}
</echo>
+ <echo>##
</echo>
+ <echo>#################################################################################</echo>
+ <delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
+ <mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
+ <gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_macos_gz}"/>
+ <untar src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_macos}"
+ dest="${LOCAL_M2_REPO}/eclipse"
+ overwrite="true"/>
+ </target>
+
+</project>
Propchange: geronimo/devtools/j2g/trunk/eclipse/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: geronimo/devtools/j2g/trunk/eclipse/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/eclipse/pom.xml?rev=702185&r1=702184&r2=702185&view=diff
==============================================================================
--- geronimo/devtools/j2g/trunk/eclipse/pom.xml (original)
+++ geronimo/devtools/j2g/trunk/eclipse/pom.xml Mon Oct 6 09:12:39 2008
@@ -43,7 +43,7 @@
<configuration>
<tasks>
<property name="LOCAL_M2_REPO" value="${settings.localRepository}"/>
- <ant antfile="${basedir}/eclipse-3.3.xml">
+ <ant antfile="${basedir}/build.xml">
<target name="${eclipsePlatformFamily}"></target>
</ant>
</tasks>
@@ -56,5 +56,41 @@
</plugin>
</plugins>
</build>
-
+
+ <profiles>
+ <profile>
+ <id>windows</id>
+ <activation>
+ <os>
+ <family>windows</family>
+ </os>
+ </activation>
+ <properties>
+ <eclipsePlatformFamily>win32</eclipsePlatformFamily>
+ </properties>
+ </profile>
+ <profile>
+ <id>unix</id>
+ <activation>
+ <os>
+ <family>unix</family>
+ </os>
+ </activation>
+ <properties>
+ <eclipsePlatformFamily>linux</eclipsePlatformFamily>
+ </properties>
+ </profile>
+ <profile>
+ <id>mac</id>
+ <activation>
+ <os>
+ <family>mac</family>
+ </os>
+ </activation>
+ <properties>
+ <eclipsePlatformFamily>macos</eclipsePlatformFamily>
+ </properties>
+ </profile>
+ </profiles>
+
</project>
Modified: geronimo/devtools/j2g/trunk/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/pom.xml?rev=702185&r1=702184&r2=702185&view=diff
==============================================================================
--- geronimo/devtools/j2g/trunk/pom.xml (original)
+++ geronimo/devtools/j2g/trunk/pom.xml Mon Oct 6 09:12:39 2008
@@ -98,6 +98,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
<dependencies>
<dependency>
<groupId>oro</groupId>
Modified: geronimo/devtools/j2g/trunk/readme.txt
URL: http://svn.apache.org/viewvc/geronimo/devtools/j2g/trunk/readme.txt?rev=702185&r1=702184&r2=702185&view=diff
==============================================================================
--- geronimo/devtools/j2g/trunk/readme.txt (original)
+++ geronimo/devtools/j2g/trunk/readme.txt Mon Oct 6 09:12:39 2008
@@ -27,5 +27,7 @@
-updatesite zip file is for copying over to the eclipse update site which enables a user
to install J2G via Eclipse update manager.
Please note the J2G command line options aren't available if you choose to install it via
Eclipse update manager.
-For additional building information, visit http://cwiki.apache.org/confluence/display/GMOxDOC11/J2G+Migration+Tool
+For additional building information, visit:
+ http://cwiki.apache.org/GMOxDOC20/j2g-migration-tool.html
For usage information consult the documentation doc/readme.txt
+
|