-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect Windows and Linux and warn if not supported #396
Conversation
PTAL |
I guess this causes unit-tests to fail:
|
0f0b65b
to
cdcdb67
Compare
@advayDev1 - it was quite a bit of work but there's now a Utils.fakeOSName static string that can be set for testing. I was tempted to add some tests that skip using fakeOSName... but I think that's likely best covered by doing some actual project builds. |
I've improved a number of the unsupported error messages, indicating which task is unsupported. This also pushes us over 100 unit tests... we're now at 104 of them. |
List<String> windowsOnlyArgs = new ArrayList<String>() | ||
if (Utils.isWindows()) { | ||
List<String> nonMacOSXArgs = new ArrayList<String>() | ||
if (!Utils.isMacOSX()) { | ||
cycleFinderExec = 'java' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the java binary needed on Linux (as opposed to just windows)?
the shell script should be fine no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'java' only used on Windows
- Error on tasks when Mac OS X is required - Corrected link to the FAQ - FAQ now also mentions Linux alongside Windows - Fake OS name to unit test for Mac and nonMac systems - inTestMustFakeOS property to ensure hermetic tests Testing: - Mac and nonMac command lines - Exception thrown when attempting unsupported tasks (j2objcTest, j2objcPackLibraries and j2objcXcode)
lgtm |
Detect Windows and Linux and warn if not supported
Testing:
(j2objcTest, j2objcPackLibraries and j2objcXcode)