1 | static File findMainJavaInDir(File dir) { |
2 | File f = newFile(dir, "main.java"); |
3 | if (f.exists()) ret f; |
4 | for (File ff : listFiles(dir)) { |
5 | S s = ff.getName(); |
6 | if (isInteger(dropPrefixSuffix_orNull("m", ".java", ff.getName()))) |
7 | ret ff; |
8 | } |
9 | null; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009251 |
Snippet name: | findMainJavaInDir |
Eternal ID of this version: | #1009251/1 |
Text MD5: | 073c3aaae429c7181aa7fccb4f51c0cc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-19 20:09:59 |
Source code size: | 272 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 459 / 483 |
Referenced in: | [show references] |