I'd like to know how to shorten lines containing long string literals in my ant build.xml file. For example:
我想知道如何缩短我的ant build.xml文件中包含长字符串文字的行。例如:
<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 creating a tree of dependencies, but that wouldn't work in other cases, such as the description. What's the right way to handle this?
显然,我可以通过创建依赖关系树来缩短depends属性值,但这在其他情况下不起作用,例如描述。处理这个问题的正确方法是什么?
1 个解决方案
#1
6
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>
#1
6
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>