Rename lint-project-xml.py to remove dashes.
So that a future test can import it without a dirty syntax.
Test: m lint-check
Bug: 182349282
Change-Id: I520a5af49543801ab2a8ee888ff235876546dc74
diff --git a/java/lint.go b/java/lint.go
index b8ce2a4..a77daa8 100644
--- a/java/lint.go
+++ b/java/lint.go
@@ -200,7 +200,7 @@
srcJarList := zipSyncCmd(ctx, rule, srcJarDir, l.srcJars)
cmd := rule.Command().
- BuiltTool("lint-project-xml").
+ BuiltTool("lint_project_xml").
FlagWithOutput("--project_out ", projectXMLPath).
FlagWithOutput("--config_out ", configXMLPath).
FlagWithArg("--name ", ctx.ModuleName())
diff --git a/scripts/Android.bp b/scripts/Android.bp
index c54b2bc..97d5d1d 100644
--- a/scripts/Android.bp
+++ b/scripts/Android.bp
@@ -219,10 +219,10 @@
}
python_binary_host {
- name: "lint-project-xml",
- main: "lint-project-xml.py",
+ name: "lint_project_xml",
+ main: "lint_project_xml.py",
srcs: [
- "lint-project-xml.py",
+ "lint_project_xml.py",
],
libs: ["ninja_rsp"],
}
diff --git a/scripts/lint-project-xml.py b/scripts/lint_project_xml.py
similarity index 100%
rename from scripts/lint-project-xml.py
rename to scripts/lint_project_xml.py