~ubuntu-branches/ubuntu/utopic/maven-ear-plugin/utopic

« back to all changes in this revision

Viewing changes to src/site/apt/examples/filtering-sources.apt

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Claude
  • Date: 2009-07-29 13:12:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090729131213-x24ux5lowzzvqb4j
Tags: upstream-2.3.2
ImportĀ upstreamĀ versionĀ 2.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
  ------
 
2
  Filtering the sources
 
3
  ------
 
4
  Stephane Nicoll
 
5
  <snicoll@apache.org>
 
6
  ------
 
7
  January 3, 2009
 
8
 
 
9
~~ Copyright 2006 The Apache Software Foundation.
 
10
~~
 
11
~~ Licensed under the Apache License, Version 2.0 (the "License");
 
12
~~ you may not use this file except in compliance with the License.
 
13
~~ You may obtain a copy of the License at
 
14
~~
 
15
~~      http://www.apache.org/licenses/LICENSE-2.0
 
16
~~
 
17
~~ Unless required by applicable law or agreed to in writing, software
 
18
~~ distributed under the License is distributed on an "AS IS" BASIS,
 
19
~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
20
~~ See the License for the specific language governing permissions and
 
21
~~ limitations under the License.
 
22
 
 
23
~~ NOTE: For help with the syntax of this file, see:
 
24
~~ http://maven.apache.org/doxia/references/apt-format.html
 
25
 
 
26
 
 
27
Filtering the sources
 
28
 
 
29
  Filtering the content of the <<<src/main/application>>> directory or the
 
30
  one defined by the <<<earSourcesDirectory>>> parameter is as easy as:
 
31
 
 
32
+--------
 
33
  <build>
 
34
    <plugins>
 
35
      <plugin>
 
36
        <groupId>org.apache.maven.plugins</groupId>
 
37
        <artifactId>maven-ear-plugin</artifactId>
 
38
        <configuration>
 
39
           <filtering>true</filtering>
 
40
           [...]
 
41
        </configuration>
 
42
      </plugin>
 
43
    </plugins>
 
44
  </build>
 
45
+---------
 
46
 
 
47
  Note that the standard properties are available for filtering. It is also
 
48
  possible to specify a set of property files to add extra values if
 
49
  necessary. The configuration below uses also the properties defined in
 
50
  <<<src/main/filters/config.properties>>>
 
51
 
 
52
+--------
 
53
  <build>
 
54
    <plugins>
 
55
      <plugin>
 
56
        <groupId>org.apache.maven.plugins</groupId>
 
57
        <artifactId>maven-ear-plugin</artifactId>
 
58
        <configuration>
 
59
           <filtering>true</filtering>
 
60
           <filters>
 
61
             <filter>src/main/filters/config.properties</filter>
 
62
           </filters>
 
63
           [...]
 
64
        </configuration>
 
65
      </plugin>
 
66
    </plugins>
 
67
  </build>
 
68
+---------