From 39309f6d89931faab3a4931880b39f67efd06ea1 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Tue, 4 Oct 2005 22:09:57 +0000 Subject: [PATCH] o example for filtering resources against POM values o example for filtering resources against filter files git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@294931 13f79535-47bb-0310-9956-ffa450edef68 --- .../site/apt/guides/getting-started/index.apt | 105 ++++++++++++++++-- 1 file changed, 93 insertions(+), 12 deletions(-) diff --git a/maven-site/src/site/apt/guides/getting-started/index.apt b/maven-site/src/site/apt/guides/getting-started/index.apt index 3ee48c35b2..f717e19c4a 100644 --- a/maven-site/src/site/apt/guides/getting-started/index.apt +++ b/maven-site/src/site/apt/guides/getting-started/index.apt @@ -493,25 +493,106 @@ InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStr +----+ -* How do I filter resources against a properties file? - * How do I filter resources against my POM? +----+ -FYI - In beta-2, while the other technique is still supported, the -recommended way is finally settled: + + 4.0.0 + com.mycompany.app + my-app + jar + 1.0-SNAPSHOT + Maven Quick Start Archetype + http://maven.apache.org + Killer App + + + junit + junit + 3.8.1 + test + + + + + + src/main/resources + true + + + + -chatting with emm in irc and src/main/filters seems like a good place for filter files. ++----+ - - - ... - - ++----+ -~~* How do use resources with my tests? -~~ o EIDSL +# application.properties + +application.name=${pom.name} +application.version=${pom.version} + ++----+ + +* How do I filter resources against a properties file? + ++----+ + + + 4.0.0 + com.mycompany.app + my-app + jar + 1.0-SNAPSHOT + Maven Quick Start Archetype + http://maven.apache.org + Killer App + + + junit + junit + 3.8.1 + test + + + + + src/main/filters/filters.properties + + + + src/main/resources + true + + + + + ++----+ + ++----+ + +# filtering.properties + +environment=development + ++----+ + ++----+ + +# application.properties + +application.name=${pom.name} +application.version=${pom.version} + +environment=${environment} + ++----+ + ++----+ ~~* How do I use external dependencies? ~~ o Explain the use of repositories, remote and local