... | ... | @@ -7,6 +7,11 @@ If you are reading this, you may expect some kind of step-by-step tutorial or su |
|
|
As a simple introduction, we will implement an architecture which counts all files in a given directory.
|
|
|
In order to work with TeeTime you need to make sure it is added to your project. Further assistance on doing so can be found in the download section.
|
|
|
|
|
|
#### Used files in this tutorial:
|
|
|
- [DirReader.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/DirReader.java)
|
|
|
- [FileCounter.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/FileCounter.java)
|
|
|
- [ResultPrinter.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/ResultPrinter.java)
|
|
|
- [PrintResultConfig.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/PrintResultConfig.java)
|
|
|
|
|
|
### Segregate dat Logic
|
|
|
|
... | ... | @@ -83,10 +88,4 @@ There are endless of great things you can make with TeeTime... discover the expl |
|
|
|
|
|
**Note:**
|
|
|
With 2.1 you will also be able to run configurations from command line. This feature is under development and is available in our snapshot release.
|
|
|
To execute a configuration run the command ```java -cp ... teetime.framework.Execution your.own.Configuration``` where the classpath is set to the directory of the configuration and also the directory where TeeTime is located. In order to enable this feature you need to add all dependencies to the classpath or you can simply make use of the provided ```teetime-…-jar-with-dependencies.jar``` file. This feature only allows to execute configurations without any arguments in their constructor. You can also run multiple configurations by adding them to the end of the command.
|
|
|
|
|
|
#### Used files in this tutorial:
|
|
|
- [DirReader.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/DirReader.java)
|
|
|
- [FileCounter.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/FileCounter.java)
|
|
|
- [ResultPrinter.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/ResultPrinter.java)
|
|
|
- [PrintResultConfig.java](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/PrintResultConfig.java) |
|
|
\ No newline at end of file |
|
|
To execute a configuration run the command ```java -cp ... teetime.framework.Execution your.own.Configuration``` where the classpath is set to the directory of the configuration and also the directory where TeeTime is located. In order to enable this feature you need to add all dependencies to the classpath or you can simply make use of the provided ```teetime-…-jar-with-dependencies.jar``` file. This feature only allows to execute configurations without any arguments in their constructor. You can also run multiple configurations by adding them to the end of the command. |
|
|
\ No newline at end of file |