static File findMainJavaInDir(File dir) { File f = newFile(dir, "main.java"); if (f.exists()) ret f; for (File ff : listFiles(dir)) { S s = ff.getName(); if (isInteger(dropPrefixSuffix_orNull("m", ".java", ff.getName()))) ret ff; } null; }
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: | 453 / 474 |
Referenced in: | [show references] |