Permalink
Browse files

Polish command line property source demo

Issue: SPR-8482
  • Loading branch information...
1 parent 6fddf8a commit c583a82cfd3d0c40cd79c934a678c9a958d3df5c @cbeams cbeams committed Jun 30, 2011
View
@@ -18,14 +18,14 @@ this from within Eclipse using the Run->Run Configurations menu, or from the Mav
command line with the following:
```bash
-$ mvn -e exec:java -Dexec.mainClass="org.springframework.issues.Spr8482Main" -Dexec.args="--greeting=Wilkommen"
+$ mvn package exec:java -Dexec.mainClass="org.springframework.issues.Spr8482Main" -Dexec.args="--greeting=Wilkommen"
```
Now, try leaving the --greeting command line argument in place while also setting a
'greeting' environment variable when running the application:
```bash
-$ greeting=Bienvenidos mvn -e exec:java -Dexec.mainClass="org.springframework.issues.Spr8482Main" -Dexec.args="--greeting=Wilkommen"
+$ greeting=Bienvenidos mvn package exec:java -Dexec.mainClass="org.springframework.issues.Spr8482Main" -Dexec.args="--greeting=Wilkommen"
```
You'll notice that 'Bienvenidos' is now the greeting. This is because the system
View
@@ -49,13 +49,15 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
+ <version>2.7.2</version>
<configuration>
<includes>
<include>**/*Tests.java</include>

0 comments on commit c583a82

Please sign in to comment.