title: Using command line arguments or system properties from a Parameterized Junit test?
body: <p>I use this method to setup my parameterized data:</p>
  
  <pre><code>@Parameterized.Parameters
  public static Collection&lt;Object[]&gt; getStories() {
          Collection&lt;Object[]&gt; allStories = new ArrayList&lt;Object[]&gt;()
          new File(SPEC_DIRECTORY).eachFileRecurse(FileType.FILES) { file -&gt;
              if (file.getName().endsWith('.story')) {
                  Object[] args = [file.getName(), file]
                  allStories &lt;&lt; args
              }
          }
          return allStories
      }
  </code></pre>
  
  <p>I invoke the main test with gradle via <code>gradle test</code>, but I do not seem to be able to see system properties.</p>
  
  <p>If I use the invocation <code>gradle -Dfile=test.story</code>, then <code>System.getProperty('file')</code> is undefined. How can I pass arguments to this parameterized data builder?</p>