diff options
Diffstat (limited to 'src/py/build-xml-rewrite')
-rwxr-xr-x | src/py/build-xml-rewrite | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/py/build-xml-rewrite b/src/py/build-xml-rewrite index b449305..f839615 100755 --- a/src/py/build-xml-rewrite +++ b/src/py/build-xml-rewrite @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import sys +import sys, os import xml.etree.cElementTree as et from optparse import OptionParser @@ -32,6 +32,7 @@ def main(): gcp_sub = et.Element('classpath', path=gcp_str) for file in args: + if os.path.getsize(file) == 0 : continue tree = et.ElementTree(file=file) if gcp or options.encoding: for javac in tree.getiterator('javac'): |