Author: nickboldt
Date: 2010-03-23 18:45:32 -0400 (Tue, 23 Mar 2010)
New Revision: 20997
Modified:
trunk/genpom.scala
Log:
switch from .qualifier to -SNAPSHOT
Modified: trunk/genpom.scala
===================================================================
--- trunk/genpom.scala 2010-03-23 22:17:38 UTC (rev 20996)
+++ trunk/genpom.scala 2010-03-23 22:45:32 UTC (rev 20997)
@@ -11,7 +11,7 @@
def main(args: Array[String]) {
- generateAggregator(new
File("/Users/max/Documents/code/jbosstools/trunk"),
+ generateAggregator(new File("/home/nboldt/11/jbosstools-trunk"),
new File("parent-pom.xml"),
GVA("org.jboss.tools", "org.jboss.tools.parent.pom",
"0.0.1-SNAPSHOT"),
GVA("org.jboss.tools", "trunk", "0.0.1-SNAPSHOT")
@@ -69,11 +69,11 @@
val lines = Source.fromFile(mf).getLines
for(l <- lines)
if(l.contains("Bundle-Version:")) {
- return l.substring("Bundle-Version:".length()).trim()
+ return
l.substring("Bundle-Version:".length()).trim().replaceAll("\\.qualifier","-SNAPSHOT")
}
} else if (featurexml.exists()) {
val data = XML.loadFile(featurexml)
- return (data \ "(a)version").text
+ return (data \
"(a)version").text.replaceAll("\\.qualifier","-SNAPSHOT")
}
return dir + " " + featurexml.exists() + " " + mf.exists()
}