开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜