|
Lines 1-6
Link Here
|
| 1 |
#!/usr/bin/python3.7 |
1 |
#!/usr/bin/python3.7 |
| 2 |
|
2 |
|
| 3 |
import sys |
3 |
import sys, os |
| 4 |
import xml.etree.cElementTree as et |
4 |
import xml.etree.cElementTree as et |
| 5 |
from optparse import OptionParser |
5 |
from optparse import OptionParser |
| 6 |
|
6 |
|
|
Lines 32-37
Link Here
|
| 32 |
gcp_sub = et.Element('classpath', path=gcp_str) |
32 |
gcp_sub = et.Element('classpath', path=gcp_str) |
| 33 |
|
33 |
|
| 34 |
for file in args: |
34 |
for file in args: |
|
|
35 |
if os.path.getsize(file) == 0 : continue |
| 35 |
tree = et.ElementTree(file=file) |
36 |
tree = et.ElementTree(file=file) |
| 36 |
if gcp or options.encoding: |
37 |
if gcp or options.encoding: |
| 37 |
for javac in tree.getiterator('javac'): |
38 |
for javac in tree.getiterator('javac'): |