Users guide
Architecture
Demo applications
Plugins
Porting Guide
Development Roles
Introduction
Administrator
Deployer
Assembler
Block Developer
Project Info
License
Mailing lists
IRC
Source repositories
Issue tracking
Blog entries
Team
|
|||||
|
|
|||||
Users guideArchitecture Development RolesIntroduction Project InfoLicense |
Porting Guide
Porting Phoenix 4.0.x applicationsLoom supports applications running in Phoenix 4.0.x releases, provided that the appropriate libraries are bundled with the in the SAR file.
For users that have an Apache Ant based build, the Phoenix Sar task can still be used. Otherwise, it is possible to create a Loom Sar using Ant's jar task. Creating a Loom Sar with MavenSince the generation of metaclass descriptors is more generic in Loom compared to Phoenix, but still fully compatible with it, users can also deploy applications running in Phoenix 4.0.x by simply regenerating the descriptors from the Java source using the Maven Loom Plugin. To create a Loom SAR, using the Maven Loom Plugin simply add the dependency to your Maven project <dependency> <groupId>loom</groupId> <artifactId>maven-loom-plugin</artifactId> <version>[plugin-version]</version> <type>plugin</type> </dependency> and execute maven loom:sar Creating a Loom Sar with AntLoom's new metaclass descriptors can still be created with Ant. To do so, use the following snippet in your Ant build file (Jar file versions may need to be adjusted to the latest releases) : <taskdef name="metaclassGen" classname="org.codehaus.metaclass.tools.tasks.GenerateClassDescriptorsTask"> <classpath> <pathelement location="${path.to}/metaclass-runtime-1.1.jar"/> <pathelement location="${path.to}/metaclass-tools-1.1.jar"/> <pathelement location="${path.to}/qdox-1.3.jar"/> <pathelement location="${path.to}/asm-1.4.jar"/> </classpath> </taskdef> <metaclassGen destDir="${dest.dir}" namespaceTagsOnly="false"> <fileset dir="${src.dir}"/> <interceptor name="org.codehaus.loom.info.PhoenixAttributeInterceptor"> <classpath> <pathelement location="${path.to}/maven-loom-plugin-[version].jar"/> </classpath> </interceptor> </metaclassGen> For the time being, it is recommended to continue using the Ant-based Sar task to create a Sar. (instructions on how to create one without it are welcome!) Comparison of libraries bundledCompared to the Phoenix 4.0.x distribution, in the Loom 1.0 distribution some of the libraries in the lib/ directory have been removed as they are not used by the container. If your app uses any of the excluded libraries, you simply need to bundle them with the SAR, or put them in the lib/ directory. The general migration tip is to make sure that what is in your old lib/ directory is either in the new lib/ directory, or bundled with your sar. There were migration issues from Phoenix 4.0.3 to 4.0.4, but that should not be an issue upgrading to Loom, as the problem libraries are no longer in a shared classpath between Loom's core and the applications. Loom 1.0 comes with a lean set of application libraries:
Phoenix 4.0.x ships a bigger set of libraries:
|
||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||