first issue
This commit is contained in:
parent
11b7754d90
commit
b3f6646565
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
@ -1,16 +1,11 @@
|
|||
# ---> Java
|
||||
# Compiled class file
|
||||
# Java
|
||||
target/
|
||||
bin/
|
||||
*.class
|
||||
|
||||
# Log file
|
||||
*.log
|
||||
|
||||
# BlueJ files
|
||||
*.ctxt
|
||||
|
||||
# Mobile Tools for Java (J2ME)
|
||||
.mtj.tmp/
|
||||
|
||||
# Package Files #
|
||||
*.jar
|
||||
*.war
|
||||
|
|
@ -20,7 +15,5 @@
|
|||
*.tar.gz
|
||||
*.rar
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
replay_pid*
|
||||
|
||||
# do NOT ignores
|
||||
!lib/*
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>desktopCreoLibraryDirectoryCreator</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package mmk;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class CopyFileList {
|
||||
|
||||
public static void main(String[] args) throws Exception{
|
||||
|
||||
//String mainFolder = System.getProperty("user.dir");
|
||||
String mainFolder = "C:\\Creo_Export\\Libraries-Creo4";
|
||||
//String destFolder = " X:\\Creo_Export\\";
|
||||
HashMap<String, String> finalList = new HashMap<>();
|
||||
PrintWriter writer = new PrintWriter("test.txt", "UTF-8");
|
||||
|
||||
files(mainFolder, finalList);
|
||||
|
||||
for(Map.Entry<String, String> m: finalList.entrySet()) {
|
||||
writer.println(m.getKey() + " | " + m.getValue());
|
||||
}
|
||||
|
||||
writer.close();
|
||||
}
|
||||
|
||||
public static void files (String folder, HashMap<String, String> finalList) {
|
||||
File directory = new File(folder);
|
||||
|
||||
File [] fileList = directory.listFiles();
|
||||
if (fileList != null)
|
||||
for (File f : fileList) {
|
||||
if(f.isFile())
|
||||
finalList.put(f.getPath(), f.getParent());
|
||||
else if (f.isDirectory())
|
||||
files(f.getAbsolutePath(), finalList);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue