我想知道如何在我的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>
显然,我可以通过创建依赖关系树来缩短depends属性值,但这在其他情况下不起作用,比如描述。正确的处理方式是什么?
插入换行符:
<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>