Skip to content

Commit

Permalink
add ant script for adding jboss deployer
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@335 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Nov 20, 2008
1 parent 030d7f4 commit ea9c937
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 552 deletions.
53 changes: 53 additions & 0 deletions build.xml
@@ -0,0 +1,53 @@
<?xml version="1.0"?>
<project name="JBoss5DeployerInstall" default="install" basedir="." xmlns:artifact="urn:maven-artifact-ant">

<path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />

<target name="install">

<fail unless="jboss.home" message="Please pass in -Djboss.home=..."/>

<mkdir dir="target/webbeans.deployer"/>

<artifact:dependencies filesetId="jboss5.deployer.fileset" versionsId="jboss5.deployer.versions">
<dependency groupId="org.jboss.webbeans.integration" artifactId="webbeans-ri-int-jbossas" version="5.2.0-SNAPSHOT"/>
</artifact:dependencies>

<artifact:dependencies filesetId="google.collections.fileset">
<dependency groupId="com.google.collections" artifactId="google-collections" version="0.8"/>
</artifact:dependencies>

<copy todir="target/webbeans.deployer">
<fileset refid="jboss5.deployer.fileset"/>
<flattenmapper />
</copy>

<mkdir dir="target/webbeans.deployer/META-INF" />

<copy todir="target/webbeans.deployer/META-INF">
<fileset dir="${basedir}/webbeans-ri">
<include name="webbeans-deployers-jboss-beans.xml"/>
</fileset>
</copy>

<copy todir="${jboss.home}/server/default/deployers">
<fileset dir="target">
<include name="webbeans.deployer/**" />
</fileset>
</copy>

<copy todir="${jboss.home}/server/default/lib">
<fileset dir="webbeans-ri/target">
<include name="webbeans-ri*.jar" />
</fileset>
<fileset dir="webbeans-api/target">
<include name="webbeans-api*.jar" />
</fileset>
<fileset refid="google.collections.fileset" />
<flattenmapper />
</copy>

</target>

</project>
10 changes: 10 additions & 0 deletions examples/webbeans-pizzashack/pom.xml
Expand Up @@ -15,6 +15,16 @@
<packaging>war</packaging>
<name>Web Beans Examples: Pizzashack</name>

<pluginRepositories>
<pluginRepository>
<id>codehaus snapshot repository</id>
<url>http://snapshots.repository.codehaus.org/</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>

<dependencies>
<dependency>
<groupId>org.testng</groupId>
Expand Down
27 changes: 0 additions & 27 deletions examples/webbeans-pizzashack/src/main/webapp/WEB-INF/web.xml

This file was deleted.

Binary file added lib/maven-ant-tasks.jar
Binary file not shown.
37 changes: 26 additions & 11 deletions pom.xml
Expand Up @@ -154,17 +154,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>

<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand All @@ -182,6 +181,22 @@
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>
true
</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit ea9c937

Please sign in to comment.