开发者

Breaking strings into different lines in ant build.xml files

开发者 https://www.devze.com 2023-03-31 14:57 出处:网络
I\'d like to know how to shorten lines containing long string literals in my ant build.xml file.For example:

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

精彩评论

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