This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-filtering-1.0-alpha-1
in repository https://gitbox.apache.org/repos/asf/maven-filtering.git

commit 7f8192a46af68fdd20cc3089bab4fd378c16e89d
Author: Oliver Lamy <[email protected]>
AuthorDate: Mon Feb 25 21:33:21 2008 +0000

    update documentation add missing file
    
    git-svn-id: 
https://svn.apache.org/repos/asf/maven/sandbox/trunk/shared/maven-filtering@631003
 13f79535-47bb-0310-9956-ffa450edef68
---
 src/site/apt/index.apt                             |  6 +--
 .../maven/shared/filtering/StubMavenSession.java   | 43 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 3 deletions(-)

diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt
index cf8e617..0534011 100755
--- a/src/site/apt/index.apt
+++ b/src/site/apt/index.apt
@@ -42,9 +42,9 @@ Maven Filtering Component
   This component has a method which returns the default 
FileUtils.FilterWrapper.
   This are :
   
-    * interpolation with token $\{ \} and values from filters, 
project.filters, project.build.filters, pom.properties and SystemProps
+    * interpolation with token $\{ \} and values from filters, 
project.filters, project.build.filters, pom.properties and 
mavenSession.executionProperties
     
-    * interpolation with token @ @ and values from filters, project.filters, 
project.build.filters, pom.properties and SystemProps
+    * interpolation with token @ @ and values from filters, project.filters, 
project.build.filters, pom.properties and mavenSession.executionProperties
     
     * interpolation with token $\{ \} and values from mavenProject 
interpolation
     
@@ -67,4 +67,4 @@ Maven Filtering Component
     <<NOTE>> : As it's a Properties object, last defined key/value pair wins . 
     
     <<NOTE>> : When building the global Properties object and reading the 
properties files defined the different filters, 
-    interpolation with the token $\{ \} is supported for this filters with a 
limited properties values coming from pom.properties and System Properties 
(last wins too)
+    interpolation with the token $\{ \} is supported for this filters with a 
limited properties values coming from pom.properties and 
mavenSession.executionProperties (last wins too)
diff --git 
a/src/test/java/org/apache/maven/shared/filtering/StubMavenSession.java 
b/src/test/java/org/apache/maven/shared/filtering/StubMavenSession.java
new file mode 100755
index 0000000..ec7cd45
--- /dev/null
+++ b/src/test/java/org/apache/maven/shared/filtering/StubMavenSession.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.shared.filtering;
+
+import java.util.Properties;
+
+import org.apache.maven.execution.MavenSession;
+
+/**
+ * @author <a href="mailto:[email protected]";>olamy</a>
+ * @since 24 f�vr. 2008
+ * @version $Id$
+ */
+public class StubMavenSession
+    extends MavenSession
+{
+    public StubMavenSession()
+    {
+        super( null, null, null, null, null, null, null, null, null );
+    }
+
+    public Properties getExecutionProperties()
+    {
+        return System.getProperties();
+    }
+    
+}

Reply via email to