Breaking strings into different lines in ant build.xml files
I'd like to know how to shorten lines containing long string literals in my ant build.xml file. For example:
<target name="foo"
description="I sure do have a lot to say. Blah Blah. This is getting awfully wide, etc."
depends="A,B,C,D,E,F,G,H,I,...,ZZ">
...
</target>
Obviously, I could shorten the depends attribute value by cr开发者_Go百科eating a tree of dependencies, but that wouldn't work in other cases, such as the description. What's the right way to handle this?
Insert a newline:
<target name="foo"
description="I sure do have a lot to say. Blah Blah.
This is getting awfully wide, etc."
depends="A,B,C,D,E,F,
G,H,I,...,ZZ">
...
</target>
精彩评论