Only show GUI once (at the execution root).
authorJan Lahoda <jlahoda@netbeans.org>
Mon, 24 Sep 2012 13:01:10 +0200
changeset 879c1848b20f6f3
parent 878 715e10b04115
child 880 08b0c35c1d4f
Only show GUI once (at the execution root).
cmdline/maven/src/main/java/org/netbeans/modules/jackpot30/maven/ShowGuiJackpot30.java
     1.1 --- a/cmdline/maven/src/main/java/org/netbeans/modules/jackpot30/maven/ShowGuiJackpot30.java	Mon Sep 24 10:37:40 2012 +0200
     1.2 +++ b/cmdline/maven/src/main/java/org/netbeans/modules/jackpot30/maven/ShowGuiJackpot30.java	Mon Sep 24 13:01:10 2012 +0200
     1.3 @@ -62,6 +62,8 @@
     1.4  
     1.5      public void execute() throws MojoExecutionException, MojoFailureException {
     1.6          try {
     1.7 +            if (!project.isExecutionRoot()) return;
     1.8 +            
     1.9              String configurationFile = Utils.getJackpotConfigurationFile(project);
    1.10  
    1.11              if (configurationFile == null)