mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
added code to parse POMs and build MavenModules.
how to integrate this into website and when to do this still needs some more thinking. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1863 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
64fa394a9f
commit
577bd663b3
3 files changed
+23
-1
No files matched your search
@@ -33,7 +33,7 @@ public final class MavenModule extends AbstractProject<MavenModule,MavenBuild> i
|
||||
private String displayName;
|
||||
|
||||
/*package*/ MavenModule(MavenModuleSet parent, PomInfo pom) {
|
||||
super(parent, pom.name.toString());
|
||||
super(parent, pom.name.toFileSystemName());
|
||||
displayName = pom.displayName;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,14 @@ public class ModuleName {
|
||||
return groupId+':'+artifactId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the "groupId$artifactId" form,
|
||||
* which is safe for the use as a file name, unlike {@link #toString()}.
|
||||
*/
|
||||
public String toFileSystemName() {
|
||||
return groupId+'$'+artifactId;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Reference in new issue
Block a user