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
@@ -18,14 +18,14 @@ this from within Eclipse using the Run->Run Configurations menu, or from the Mav
command line with the following:
-$ 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:
-$ 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
@@ -49,13 +49,15 @@
+ <version>2.3.2</version>
+ <version>2.7.2</version>

0 comments on commit c583a82

Please sign in to comment.