[jboss-cvs] JBossAS SVN: r97253 - in projects/ejb3/trunk/api: src and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 1 12:37:43 EST 2009
Author: jaikiran
Date: 2009-12-01 12:37:42 -0500 (Tue, 01 Dec 2009)
New Revision: 97253
Added:
projects/ejb3/trunk/api/src/assembly/
projects/ejb3/trunk/api/src/assembly/package-assembler.xml
projects/ejb3/trunk/api/src/assembly/package-script.xml
projects/ejb3/trunk/api/src/assembly/package.xml
Modified:
projects/ejb3/trunk/api/pom.xml
Log:
EJBTHREE-1966 Created a org.jboss.ejb3:jboss-ejb3-api package. This package can now be used as a dependency by other packages
Modified: projects/ejb3/trunk/api/pom.xml
===================================================================
--- projects/ejb3/trunk/api/pom.xml 2009-12-01 17:20:29 UTC (rev 97252)
+++ projects/ejb3/trunk/api/pom.xml 2009-12-01 17:37:42 UTC (rev 97253)
@@ -5,7 +5,7 @@
<parent>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-build</artifactId>
- <version>1.0.0-Beta9</version>
+ <version>1.0.8</version>
<relativePath>../build/pom.xml</relativePath>
</parent>
Added: projects/ejb3/trunk/api/src/assembly/package-assembler.xml
===================================================================
--- projects/ejb3/trunk/api/src/assembly/package-assembler.xml (rev 0)
+++ projects/ejb3/trunk/api/src/assembly/package-assembler.xml 2009-12-01 17:37:42 UTC (rev 97253)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly 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/xsd/assembly-1.1.1.xsd"
+>
+ <id>package</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>src/assembly</directory>
+ <includes>
+ <include>package.xml</include>
+ <include>package-script.xml</include>
+ </includes>
+ <outputDirectory>.</outputDirectory>
+ </fileSet>
+
+ </fileSets>
+ <dependencySets>
+ <dependencySet>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+ <useProjectArtifact>true</useProjectArtifact>
+ <includes>
+ <include>org.jboss.ejb3:jboss-ejb3-api:jar</include>
+ </includes>
+
+ </dependencySet>
+
+ </dependencySets>
+</assembly>
Added: projects/ejb3/trunk/api/src/assembly/package-script.xml
===================================================================
--- projects/ejb3/trunk/api/src/assembly/package-script.xml (rev 0)
+++ projects/ejb3/trunk/api/src/assembly/package-script.xml 2009-12-01 17:37:42 UTC (rev 97253)
@@ -0,0 +1,36 @@
+<project name="Package Script for JBoss EJB3 API package" default="noop">
+
+ <!--
+ For standalone testing (outside a package manager) the following JBOSS_HOME, PM_TMP_DIR have been set
+ within this script. However, these property values will be overridden when run within a package manager
+ -->
+ <property environment="env"/>
+ <property name="JBOSS_HOME" value="${env.JBOSS_HOME}"/>
+ <property name="PM_TMP_DIR" value="${env.PM_TMP_DIR}"/>
+ <!-- Test properties end here -->
+
+ <property name="jboss.javaee.jar" value="${JBOSS_HOME}/common/lib/jboss-javaee.jar" />
+ <property name="jboss.javaee.unpacked.dir" value="${PM_TMP_DIR}/jboss-javaee-unpacked"/>
+ <property name="jboss.javaee.jar.backup" value="${JBOSS_HOME}/common/lib/jboss-javaee.jar.orig"/>
+
+ <target name="noop"/>
+
+
+ <target name="pre-install" description="Runs any pre-install steps during the installation of the JBoss EJB3 API package">
+ <!-- Create a backup of jboss-javaee.jar (which we are going to repackage) -->
+ <copy file="${jboss.javaee.jar}" tofile="${jboss.javaee.jar.backup}" />
+
+ <!-- Now unpack jboss-javaee.jar and repackage it without the javax.ejb.* package -->
+ <delete dir="${jboss.javaee.unpacked.dir}" failonerror="false"/>
+ <unjar src="${jboss.javaee.jar}" dest="${jboss.javaee.unpacked.dir}"/>
+ <jar destfile="${jboss.javaee.jar}" basedir="${jboss.javaee.unpacked.dir}" excludes="javax/ejb/**/*"/>
+
+ </target>
+
+ <target name="post-uninstall" description="Runs any post-uninstall steps during the uninstallation of JBoss EJB3 API package">
+ <!-- Overwrite the modified jboss-javaee.jar with the backed up file
+ and delete the backed up file -->
+ <copy file="${jboss.javaee.jar.backup}" tofile="${jboss.javaee.jar}" overwrite="true"/>
+ <delete file="${jboss.javaee.jar.backup}"/>
+ </target>
+</project>
\ No newline at end of file
Added: projects/ejb3/trunk/api/src/assembly/package.xml
===================================================================
--- projects/ejb3/trunk/api/src/assembly/package.xml (rev 0)
+++ projects/ejb3/trunk/api/src/assembly/package.xml 2009-12-01 17:37:42 UTC (rev 97253)
@@ -0,0 +1,36 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ ~ JBoss, Home of Professional Open Source
+ ~ Copyright 2005, JBoss Inc., and individual contributors as indicated
+ ~ by the @authors tag. See the copyright.txt in the distribution for a
+ ~ full listing of individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!-- JBoss EJB3 API package-->
+<package name="org.jboss.ejb3:jboss-ejb3-api" version="3.1.1-SNAPSHOT" xmlns="org/jboss/packagemanager/package">
+
+ <file name="jboss-ejb3-api.jar" dest-path="common/lib" type="library"/>
+
+ <pre-install>
+ <script name="package-script.xml"/>
+ </pre-install>
+
+ <post-uninstall>
+ <script name="package-script.xml"/>
+ </post-uninstall>
+
+</package>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list