Revision 2125
tmp/org.txm.connlu.core/.classpath (revision 2125) | ||
---|---|---|
7 | 7 |
</accessrules> |
8 | 8 |
</classpathentry> |
9 | 9 |
<classpathentry kind="src" path="src"/> |
10 |
<classpathentry kind="src" path="groovy"/> |
|
11 | 10 |
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/> |
12 | 11 |
<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/> |
13 | 12 |
<classpathentry kind="output" path="bin"/> |
tmp/org.txm.connlu.core/META-INF/MANIFEST.MF (revision 2125) | ||
---|---|---|
7 | 7 |
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 |
8 | 8 |
Require-Bundle: org.txm.core;bundle-version="0.8.0";visibility:=reexport, |
9 | 9 |
org.txm.groovy.core;bundle-version="1.0.0";visibility:=reexport |
10 |
Export-Package: org.txm.connlu.core, |
|
11 |
org.txm.scripts.importer.connlu |
|
10 |
Export-Package: org.txm.connlu.core |
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/CreateMissingPropertiesFiles.groovy (revision 2125) | ||
---|---|---|
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 |
} |
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/utils/CreateMissingPropertiesFiles.groovy (revision 2125) | ||
---|---|---|
1 |
package org.txm.scripts.utils |
|
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 |
} |
tmp/org.txm.groovy.core/build.properties (revision 2125) | ||
---|---|---|
12 | 12 |
jars.compile.order=. |
13 | 13 |
source..=src/java/ |
14 | 14 |
qualifier=svn |
15 |
sourceFileExtensions=*.java, *.groovy |
|
16 |
compilerAdapter=org.codehaus.groovy.eclipse.ant.GroovyCompilerAdapter |
|
17 |
compilerAdapter.useLog=true # this ensures that exceptions are logged to the proper log file. |
Also available in: Unified diff