first issue

This commit is contained in:
creo 2026-05-24 20:20:26 +03:00
parent 11b7754d90
commit b3f6646565
6 changed files with 9391 additions and 12 deletions

6
.classpath Normal file
View File

@ -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>

17
.gitignore vendored
View File

@ -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/*

17
.project Normal file
View File

@ -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>

View File

@ -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

39
src/mmk/CopyFileList.java Normal file
View File

@ -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);
}
}
}

9313
test.txt Normal file

File diff suppressed because it is too large Load Diff