Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1005014 - Merge all .java files in a directory [Mocha Doom Sources]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (749L/6K/18K).

!752

p {
  L<File> files = findAllFiles_noDirs(new File(userHome(), "dev/mochadoom-src/src"));
  new StringBuilder buf;
  for (File f : files)
    if (f.getName().endsWith(".java")) {
      buf.append(loadTextFile(f) + "\n");
      print(f2s(f) + " [" + l(buf) + "]");
    }
  saveTextFileVerbose(getProgramFile("mochadoom.java"), str(buf));
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1005014
Snippet name: Merge all .java files in a directory [Mocha Doom Sources]
Eternal ID of this version: #1005014/1
Text MD5: 316e4fd1058dccc1d282479785a2f78b
Transpilation MD5: f141e360e68c156aa3d44b7e1036fcea
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-27 23:03:59
Source code size: 355 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 531
Referenced in: [show references]

Formerly at http://tinybrain.de/1005014 & http://1005014.tinybrain.de