You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2017/09/15 07:00:50 UTC
incubator-mnemonic git commit: MNEMONIC-343: Add a switch option to
select specific example to run
Repository: incubator-mnemonic
Updated Branches:
refs/heads/master b4d69fff8 -> eb98f1576
MNEMONIC-343: Add a switch option to select specific example to run
Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/eb98f157
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/eb98f157
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/eb98f157
Branch: refs/heads/master
Commit: eb98f1576b5975a2610a639ae5116ab483152658
Parents: b4d69ff
Author: Ganhuazhang <ga...@gmail.com>
Authored: Thu Sep 14 22:13:33 2017 -0700
Committer: Ganhuazhang <ga...@gmail.com>
Committed: Thu Sep 14 23:45:19 2017 -0700
----------------------------------------------------------------------
mnemonic-examples/pom.xml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/eb98f157/mnemonic-examples/pom.xml
----------------------------------------------------------------------
diff --git a/mnemonic-examples/pom.xml b/mnemonic-examples/pom.xml
index 3990928..8bbb644 100644
--- a/mnemonic-examples/pom.xml
+++ b/mnemonic-examples/pom.xml
@@ -33,6 +33,11 @@
<name>mnemonic-examples</name>
<packaging>jar</packaging>
+ <properties>
+ <example.name>Main</example.name>
+ <example.args></example.args>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.mnemonic</groupId>
@@ -198,7 +203,8 @@
<argument>-ea</argument>
<argument>-classpath</argument>
<classpath />
- <argument>${project.groupId}.examples.Main</argument>
+ <argument>${project.groupId}.examples.${example.name}</argument>
+ <commandlineArgs>${example.args}</commandlineArgs>
</arguments>
</configuration>
</plugin>