The ant task for Jackpot tool should be able to specify a config file.
authorJan Lahoda <jlahoda@netbeans.org>
Thu, 21 Jun 2012 09:54:39 +0200
changeset 7991b95c1cb5f1e
parent 798 bf5be96babd7
child 800 87d615ffed6a
The ant task for Jackpot tool should be able to specify a config file.
cmdline/ant/src/org/netbeans/modules/jackpot30/cmdline/ant/JackpotTask.java
     1.1 --- a/cmdline/ant/src/org/netbeans/modules/jackpot30/cmdline/ant/JackpotTask.java	Sun Jun 17 13:55:46 2012 +0200
     1.2 +++ b/cmdline/ant/src/org/netbeans/modules/jackpot30/cmdline/ant/JackpotTask.java	Thu Jun 21 09:54:39 2012 +0200
     1.3 @@ -83,6 +83,12 @@
     1.4          return this.classpath = new Path(getProject());
     1.5      }
     1.6  
     1.7 +    private String configFile;
     1.8 +
     1.9 +    public void setConfigfile(String file) {
    1.10 +        this.configFile = file;
    1.11 +    }
    1.12 +
    1.13      @Override
    1.14      public void execute() throws BuildException {
    1.15          try {
    1.16 @@ -108,6 +114,7 @@
    1.17              cmdLine.addArguments(new String[] {"-sourcepath", srcPath.toString()});
    1.18              cmdLine.addArguments(new String[] {"-classpath", classpath.toString()});
    1.19              if (sourcelevel != null) cmdLine.addArguments(new String[] {"--source", sourcelevel});
    1.20 +            if (configFile != null) cmdLine.addArguments(new String[] {"--config-file", configFile});
    1.21              cmdLine.addArguments(srcPath.list());
    1.22  
    1.23              Execute exec = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));