cdmlib/musiclib-hibernatetest/listAnnotatedClasses.py @ c34e4d55
1 |
#!/usr/bin/python
|
---|---|
2 |
import os, sys |
3 |
|
4 |
modelDir="src/main/java/org/bgbm/model" |
5 |
modelPackage="org.bgbm.model" |
6 |
|
7 |
print"<list>" |
8 |
for path,dirs,files in os.walk(modelDir): |
9 |
if path <> modelDir: |
10 |
package = "%s.%s"%(modelPackage, path[len(modelDir)+1:]) |
11 |
else: |
12 |
package = modelPackage |
13 |
for f in files: |
14 |
if f.endswith(".java") and f <> "package-info.java": |
15 |
print "<value>%s.%s</value>" %(package, f[:-5]) |
16 |
print"</list>" |
17 |
|