ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31121] New: - echoproperties: Add suffix attribute and property attribute, etc
Date Wed, 08 Sep 2004 15:53:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31121>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31121

echoproperties: Add suffix attribute and property attribute, etc

           Summary: echoproperties: Add suffix attribute and property
                    attribute, etc
           Product: Ant
           Version: 1.6.2
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: achepati67@yahoo.es


Just to suggest adding two attributes: suffix and property and also to improve 
the printing output:

-Having a prefix only, it is quite restrictive, because some times people use 
suffix notation instead of prefix notation.

- Considering the attribute property, for just informing about a given 
property, usefull for debugging. I don't know how using the prefix attribute to 
print only the property 'class' and not 'class.resources'. At least it is not 
so well documented about the syntax of prefix attribute (do it accept regular 
expressions?, could you give some examples?)

- Give the possibility of printing on the system output on the same you will 
see it using the <echo> task. <echoproperties> interpret some spetial 
characters, such us: new line, ':', '\', etc. Which is a good idea for printing 
to a properties file (using destdir attribute), but for printing to the 
standard output it is not so frendly (see the example). Such behaviour chould 
be controlled adding another attribute, for example(format = {output, file})

Example:
I want to print the property, defined on the properties file like this:
message.junit.present = \
WARNING(Isfx): The build process detected${nl}\
\  junit.jar/ant-junit.jar doesn't exist or it location is${nl}\
\  wrong. We expect such files should be located on the${nl}\
\  ${ant.lib}${nl}\
\  For more information please read the file:${nl}\
\  ${antdoc.index}

Note: I use the backslash at the begining for indenting. This property is going 
to be used on <echo> task for informing about the building process. I prefer to 
use <echo message ="${message.junit.present}", instead of printing directly the 
message using <echo>bla bla bla</echo>, because the indentation is not so 
pretty and also for avoiding a lot of message information on my build.xml.

print-properties:
[echoproperties] #Ant properties
[echoproperties] #Wed Sep 08 17:27:11 GMT+01:00 2004
[echoproperties] message.junit.present=WARNING(Isfx)\: The build process detecte
d\r\n  junit.jar/ant-junit.jar doesn't exist or it location is\r\n  wrong. We ex
pect such files should be located on the\r\n  C\:\\Archivos de programa\\apache-
ant-1.6.2\\lib\r\n  For more information please read the file\:\r\n  P\:\\isfx\\
doc\\antdoc\\index.html

And I would expect something like this, when printing to the standard output:

print-properties:
[echoproperties] #Ant properties
[echoproperties] #Wed Sep 08 17:27:11 GMT+01:00 2004
[echoproperties] message.junit.present=WARNING(Isfx): The build process detecte
d
  junit.jar/ant-junit.jar doesn't exist or it location is
  wrong. We expect such files should be located on the
  C:\Archivos de programa\apache-ant-1.6.2\lib
  For more information please read the file:
  P:\isfx\doc\antdoc\index.html

Thanks in advance,

David Leal

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message