~ubuntu-branches/ubuntu/utopic/jetty/utopic-proposed

« back to all changes in this revision

Viewing changes to examples/test-jndi-webapp/pom.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2009-08-09 08:48:10 UTC
  • Revision ID: james.westby@ubuntu.com-20090809084810-k522b97ind2robyd
ImportĀ upstreamĀ versionĀ 6.1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?><project>
 
2
  <parent>
 
3
    <artifactId>project</artifactId>
 
4
    <groupId>org.mortbay.jetty</groupId>
 
5
    <version>6.1.19</version>
 
6
    <relativePath>../../pom.xml</relativePath>
 
7
  </parent>
 
8
  <modelVersion>4.0.0</modelVersion>
 
9
  <groupId>org.mortbay.jetty</groupId>
 
10
  <artifactId>jetty-test-jndi</artifactId>
 
11
  <packaging>war</packaging>
 
12
  <name>Jetty JNDI Test Webapp</name>
 
13
  <build>
 
14
    <plugins>
 
15
      <plugin>
 
16
        <artifactId>maven-antrun-plugin</artifactId>
 
17
        <executions>
 
18
         <execution>
 
19
            <id>clean</id>
 
20
            <phase>clean</phase>
 
21
            <goals>
 
22
              <goal>run</goal>
 
23
            </goals>
 
24
            <configuration>
 
25
              <tasks>
 
26
                <delete failonerror="false" includeemptydirs="true">
 
27
                  <fileset dir="../../contexts/test-jndi.d/" includes="**/**"/>
 
28
                </delete>
 
29
                <delete failonerror="false" file="../../contexts/test-jndi.xml"/>
 
30
                <delete failonerror="false" file="../../contexts/README-test-jndi.txt" />
 
31
              </tasks>
 
32
            </configuration>
 
33
          </execution>
 
34
          <execution>
 
35
            <id>mkconfig</id>
 
36
            <phase>process-sources</phase>
 
37
            <goals>
 
38
              <goal>run</goal>
 
39
            </goals>
 
40
            <configuration>
 
41
              <tasks>
 
42
                <filter filtersfile="src/templates/filter.properties"/>
 
43
                <filter token="JAVA_TMP_DIR" value="${java.io.tmpdir}"/>
 
44
                <copy file="src/templates/jetty-test-jndi.xml" tofile="target/config/test-jndi.xml" filtering="true" overwrite="true"/>
 
45
                <copy file="src/templates/jetty-env.xml" todir="target/${project.artifactId}-${project.version}/WEB-INF" filtering="true" overwrite="true"/>
 
46
                
 
47
                <copy file="src/templates/jta.properties" todir="target/${project.artifactId}-${project.version}/WEB-INF/classes" filtering="true" overwrite="true"/>
 
48
              </tasks>
 
49
            </configuration>
 
50
          </execution>
 
51
          <execution>
 
52
            <id>install</id>
 
53
            <phase>install</phase>
 
54
            <goals>
 
55
              <goal>run</goal>
 
56
            </goals>
 
57
            <configuration>
 
58
              <tasks>
 
59
                <unjar src="target/${project.artifactId}-${project.version}.${project.packaging}" dest="../../contexts/test-jndi.d/"></unjar>
 
60
                <copy file="target/config/test-jndi.xml" todir="../../contexts" overwrite="true"/>
 
61
                <copy file="README.txt" tofile="../../contexts/README-test-jndi.txt" overwrite="true" />
 
62
              </tasks>
 
63
            </configuration>
 
64
          </execution>
 
65
        </executions>
 
66
      </plugin>
 
67
    </plugins>
 
68
  </build>
 
69
  <dependencies>
 
70
    <dependency>
 
71
      <groupId>geronimo-spec</groupId>
 
72
      <artifactId>geronimo-spec-jta</artifactId>
 
73
      <scope>provided</scope>
 
74
    </dependency>
 
75
    <dependency>
 
76
      <groupId>org.mortbay.jetty</groupId>
 
77
      <artifactId>jetty</artifactId>
 
78
      <version>${project.version}</version>
 
79
      <scope>provided</scope>
 
80
    </dependency>
 
81
    <dependency>
 
82
      <groupId>javax.mail</groupId>
 
83
      <artifactId>mail</artifactId>
 
84
      <scope>provided</scope>
 
85
    </dependency>
 
86
  </dependencies>
 
87
</project>