Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / java / org / txm / groovy / core / CreateMissingPropertiesFiles.groovy @ 1094

History | View | Annotate | Download (529 Bytes)

1
package org.txm.groovy.core
2

    
3
File workspace = new File("/home/mdecorde/workspace047")
4
def langs = ["fr", "ru"]
5
for (File project : workspace.listFiles()) {
6
        if (!project.isDirectory()) continue;
7
        
8
        File osgiinf = new File(project, "OSGI-INF/l10n")
9
        if (!osgiinf.exists()) continue;
10
        
11
        println project.getName()
12
        File defaultFile = new File(osgiinf, "bundle.properties")
13
        
14
        for (def lang : langs) {
15
                File langFile = new File(osgiinf, "bundle_"+lang+".properties");
16
                if (!langFile.exists()) {
17
                        langFile.createNewFile()
18
                }
19
        }
20
}