Révision 2674
| tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/setup/BuildSplashVersion.groovy (revision 2674) | ||
|---|---|---|
| 13 | 13 |
|
| 14 | 14 |
int img_width = 316; |
| 15 | 15 |
|
| 16 |
File rcpDir = new File(System.getProperty("user.home"), "workspace079/org.txm.rcp")
|
|
| 16 |
File rcpDir = new File(System.getProperty("user.home"), "workspace047/org.txm.rcp")
|
|
| 17 | 17 |
File product = new File(rcpDir, "rcpapplication.product"); |
| 18 | 18 |
File imgFile = new File(rcpDir, "splash_sansversion.bmp"); |
| 19 | 19 |
File imgFile2 = new File(rcpDir,"splash.bmp"); |
| ... | ... | |
| 21 | 21 |
String modifier = "" |
| 22 | 22 |
|
| 23 | 23 |
//String version = org.txm.rcp.Activator.getDefault().getBundle().getVersion().toString(); // "0.7.7.201412160925"; |
| 24 |
String version = XPathResult.getXpathResponse(product, "//product/@version") |
|
| 24 |
println "Reading Version from $product" |
|
| 25 |
String version = new XmlSlurper().parse(product)['@version'] |
|
| 26 |
println "RAW version: $version" |
|
| 25 | 27 |
//def date = " ("+new SimpleDateFormat("yyyy-MM-dd").format(new Date())+")"
|
| 26 | 28 |
def date = "" |
| 27 | 29 |
version = "TXM "+version.replaceAll(".qualifier", date);
|
Formats disponibles : Unified diff