Unfortunately 'description' attribute does not allow usage of properties
like ${line.separator}. However, ant files are XML files.
So you can use XML character escapes and parser will put correct
character for you.
For example:
is a new line character. You can add if you want return
character (\r for Windows/DOS OS)
So description for target:
<target name="test" description="options: -option1
-option2">
</target>
Looks like this:
test options:
-option1
-option2
You can actually encode any character using hex values. Search w3c site
for specs.
Hope it helps,
Dmitri.
Z W wrote:
Hi
In using -projecthelp with ant on Win XP, I found that the description
column isn't too friendly with displaying a long description.
In the display I got,
C:ant -buildfile auto_perform_draft.xml -projecthelp
Buildfile: auto_perform_draft.xml
Main targets:
display_usage_message This target displays the message on Run.
init_performance_run This target performs the following initializations:
- Capture the starting date/time of a run. - Clean up files
from previous runs.
In the ant script, I have
<target name="init_performance_run"
depends="display_usage_message"
description="This target performs the following initializations:
- Capture the starting date/time of a run.
- Clean up files from previous runs.">
</target>
Any advice on how I could achieve a display that look like this:
Main targets:
display_usage_message This target displays the message on Run.
init_performance_run
This target performs the following initializations:
- Capture the starting date/time of a
run.
- Clean up files from previous runs.
I need a nice formatting on the output display
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]