Skip to content

Commit d7fe0b9

Browse files
committed
Remove maven/gradle clean during autobuild
Signed-off-by: Rahul Krishna <[email protected]>
1 parent 3e6e5da commit d7fe0b9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/com/ibm/northstar/CodeAnalyzer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ private static void analyze() throws IOException, ClassHierarchyException, CallG
120120
if (!Files.exists(outputPath)) {
121121
Files.createDirectories(outputPath);
122122
}
123-
// String parseError = gson.toJson(symbolTableExtractionResult.getRight());
124-
// emit(parseError, "parse_errors.json");
123+
// Make parse error as a list/csv
124+
// String parseError = gson.toJson(symbolTableExtractionResult.getRight());
125+
// emit(parseError, "parse_errors.json");
125126
/* gson.toJson(symbolTableExtractionResult.getRight(), new FileWriter(new File(outputPath.toString(), "parse_errors.json")));
126127
* }
127128
**/

src/main/java/com/ibm/northstar/utils/BuildProject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private static boolean mavenBuild(String projectPath) {
7373
return false;
7474
}
7575
String[] mavenCommand = {
76-
MAVEN_CMD, "clean", "package", "-f", projectPath + "/pom.xml", "-B", "-V", "-e", "-Drat.skip",
76+
MAVEN_CMD, "package", "-f", projectPath + "/pom.xml", "-B", "-V", "-e", "-Drat.skip",
7777
"-Dfindbugs.skip", "-Dcheckstyle.skip", "-Dpmd.skip=true", "-Dspotbugs.skip", "-Denforcer.skip",
7878
"-Dmaven.javadoc.skip", "-DskipTests", "-Dmaven.test.skip.exec", "-Dlicense.skip=true",
7979
"-Drat.skip=true", "-Dspotless.check.skip=true" };
@@ -84,7 +84,7 @@ private static boolean mavenBuild(String projectPath) {
8484
public static boolean gradleBuild(String projectPath) {
8585
// Adjust Gradle command as needed
8686
String gradleWrapper = projectPath + File.separator + GRADLE_CMD;
87-
String[] gradleCommand = { gradleWrapper, "clean", "compileJava", "-p", projectPath };
87+
String[] gradleCommand = { gradleWrapper, "compileJava", "-p", projectPath };
8888
return buildWithTool(gradleCommand);
8989
}
9090

0 commit comments

Comments
 (0)