Skip to content

Commit

Permalink
Correçẽos no carregador de projetos c
Browse files Browse the repository at this point in the history
  • Loading branch information
braully committed Oct 22, 2024
1 parent bbaccc1 commit 06735e9
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/main/java/com/github/braully/graph/UtilCProjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,24 @@ public static void main(String... args) {
public static void makeAllProjects() {
File dir = new File(DEFAULT_C_SUPPROJECTS);
File[] filesList = dir.listFiles();
for (File file : filesList) {
try {
if (file.isDirectory()) {
System.out.println(file.getAbsolutePath());
int ret = execMakeProject(file);
if (ret == 0) {
System.out.print("Compile: " + file.getAbsolutePath() + "... Ok");
} else {
System.err.print("Compile: " + file.getAbsolutePath() + "... Error");
try {
for (File file : filesList) {
try {
if (file.isDirectory()) {
System.out.println(file.getAbsolutePath());
int ret = execMakeProject(file);
if (ret == 0) {
System.out.print("Compile: " + file.getAbsolutePath() + "... Ok");
} else {
System.err.print("Compile: " + file.getAbsolutePath() + "... Error");
}
}
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) {
e.printStackTrace();
}
}

Expand Down

0 comments on commit 06735e9

Please sign in to comment.