@@ -0,0 +1,1585 @@
+package com.jfixby.tool.git.eclipse.name;%0A%0Aimport java.io.IOException;%0A%0Aimport com.jfixby.cmns.api.file.ChildrenList;%0Aimport com.jfixby.cmns.api.file.File;%0Aimport com.jfixby.cmns.api.file.LocalFileSystem;%0Aimport com.jfixby.cmns.api.log.L;%0Aimport com.jfixby.cmns.desktop.DesktopAssembler;%0A%0Apublic class AddGitIgnore %7B%0A%0A%09static boolean WRITE_MODE = true;%0A%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09DesktopAssembler.setup();%0A%0A%09%09String java_path = %22D:%5C%5C%5BDEV%5D%5C%5C%5BGIT-2%5D%22;%0A%09%09File git_folder = LocalFileSystem.newFile(java_path);%0A%09%09scanFolder(git_folder);%0A%0A%09%7D%0A%0A%09private static void scanFolder(File folder) throws IOException %7B%0A%09%09ChildrenList children = folder.listChildren();%0A%0A%09%09File git_ignore = children.findChild(%22.gitignore%22);%0A%0A%09%09if (git_ignore != null) %7B%0A%09%09%09L.d(%22delete%22, git_ignore);%0A%09%09%09 git_ignore.delete();%0A%09%09%7D%0A%0A%09%09File project_file = children.findChild(%22.project%22);%0A%09%09if (project_file != null) %7B%0A%09%09%09// L.d(%22found%22, project_file);%0A%09%09%09check(folder, project_file);%0A%09%09%09return;%0A%09%09%7D%0A%0A%09%09for (int i = 0; i %3C children.size(); i++) %7B%0A%09%09%09File child = children.getElementAt(i);%0A%09%09%09if (child.isFolder()) %7B%0A%09%09%09%09scanFolder(child);%0A%09%09%09%09continue;%0A%09%09%09%7D%0A%09%09%09if (child.isFile()) %7B%0A%09%09%09%09continue;%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%09private static void check(File folder, File project_file) throws IOException %7B%0A%09%09File git_ignore = project_file.parent().child(%22.gitignore%22);%0A%09%09// if (!git_ignore.exists()) %7B%0A%09%09// return;%0A%09%09// %7D%0A%09%09// L.d(%22found git ignore%22, git_ignore);%0A%09%09// String data = git_ignore.readToString();%0A%09%09// L.d(%22data%22, data);%0A%09%09git_ignore.writeString(%22/bin/%22);%0A%09%09L.d(%22write%22, git_ignore);%0A%0A%09%7D%0A%7D%0A

add .gitignore-fix