Bug 13939 - Translate task should have better key matching capabilities
Summary: Translate task should have better key matching capabilities
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.5.1
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 16:23 UTC by Eric James Smith
Modified: 2008-11-24 03:57 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric James Smith 2002-10-24 16:23:37 UTC
The Translate task lets you pick a start token and an end token to delimit 
keys, but they must be single characters. This single character limitation 
makes it hard to pick a good delimiter character when you're running Translate 
against, say, an XSLT -- there just aren't many single characters left.

Also, the Task actually has more internal conditions that are required before 
a string is considered a match. If I'm using # as my tokens, it corresponds to 
something like the regular expression:

#[^\s=:#]#

It might be nice to allow the user to specify a regular expression to 
determine what a string keys may look like, to reduce spurious matches.
Comment 1 Magesh Umasankar 2002-11-21 21:37:15 UTC
The start token and end token can now be multiple characters long.