ktakagaki / hayabaya

0 stars 0 forks source link

Topic august05 #8

Closed ghost closed 9 years ago

ghost commented 9 years ago

I have made the gradle build config file so that I can assemble a jar file that contains all of the dependencies. All you have to do is execute the file with "Java -jar haybay.jar" and it will output a "results" folder in the folder the jar file is located in with all of the results.

But now I am trying to also add so one can pass commandline arguments to the jar file. Essentially what I would like would be to pass a "name" argument, a "sampleSize" argument, and a "number of repetitions" argument. So when the code runs, the results files contains data on the name of the CPU being tested, and the size of data being tested and number of repetitions can be specified. But it doesn't work right now. I think the reason for this is that I am having RunSettings being a singleton class that instantiates itself. I should instead rewrite it to a conventional class where mainclass passes the String args results on to the RunSettings constructor.

@ktakagaki