spideruci / tacoco

Integrated Software Analysis Framework
https://github.com/spideruci/tacoco
MIT License
8 stars 7 forks source link

JUnitRunner does not execute in Windows systems #46

Closed tariq1890 closed 8 years ago

tariq1890 commented 8 years ago

The separator for Unix is "/", while for Windows , it is "\"

Similarly the pathSeparator is ":" for Unix , whereas for WIndows we use ";"

We can use the static variables available in the java File library which will resolve to the appropriate delimiter for the OS it is running on.

For all hard-coded occurences of these delimiters, we can place the static variables instead and make the program OS-independent. Let me know If I can deliver this in a pull request?

VijayKrishna commented 8 years ago

I imagine that you can use something like File.pathSeparator and File.separator, or better yet System.getProperty("seperator") and System.getProperty("path.seperator")?

tariq1890 commented 8 years ago

I will be using File.pathSeparator and File.separator as they are static variables initialized to the the System property variables.

I have tested my changes and It is working as before. Once pull request #45 is merged, I can submit this as well!

tariq1890 commented 8 years ago

Pull request submitted ! https://github.com/spideruci/tacoco/pull/47

VijayKrishna commented 8 years ago

Pull Request #47 has now been merged.