devdaily home | apple | java | perl | unix | directory | blog

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0" encoding="UTF-8"?>
  <parent>
    <artifactId>project
    <groupId>org.mortbay.jetty
    <version>6.1.9
    <relativePath>../../pom.xml
  </parent>
  <modelVersion>4.0.0
  <groupId>org.mortbay.jetty
  <artifactId>jetty-test-jndi
  <packaging>war
  <name>Jetty JNDI Test Webapp
  <url>http://jetty.mortbay.org
  <build>
    <defaultGoal>install
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin
        <executions>
         <execution>
            <id>clean
            <phase>clean
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <delete failonerror="false" includeemptydirs="true">
                  <fileset dir="../../contexts/test-jndi.d/" includes="**/**"/>
                </delete>
                <delete failonerror="false" file="../../contexts/test-jndi.xml"/>
              </tasks>
            </configuration>
          </execution>
          <execution>
            <id>mkconfig
            <phase>process-sources
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <filter filtersfile="src/templates/filter.properties"/>
                <filter token="JAVA_TMP_DIR" value="${java.io.tmpdir}"/>
                <copy file="src/templates/jetty-test-jndi.xml" tofile="target/config/test-jndi.xml" filtering="true" overwrite="true"/>
                <copy file="src/templates/jetty-env.xml" todir="target/${project.artifactId}-${project.version}/WEB-INF" filtering="true" overwrite="true"/>
                
                <copy file="src/templates/jta.properties" todir="target/${project.artifactId}-${project.version}/WEB-INF/classes" filtering="true" overwrite="true"/>
              </tasks>
            </configuration>
          </execution>
          <execution>
            <id>install
            <phase>install
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <unjar src="target/${project.artifactId}-${project.version}.${project.packaging}" dest="../../contexts/test-jndi.d/">
                <copy file="target/config/test-jndi.xml" todir="../../contexts" overwrite="true"/>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>geronimo-spec
      <artifactId>geronimo-spec-jta
      <scope>provided
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jetty
      <version>${project.version}
      <scope>provided
    </dependency>
    <dependency>
      <groupId>javax.mail
      <artifactId>mail
      <scope>provided
    </dependency>
  </dependencies>
</project>




Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
 
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com