History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-992
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Matt Raible
Reporter: Truls
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

pom.version is not replaced in ApplicationResources_(language code).properties

Created: 20/Dec/07 04:07 AM   Updated: 05/Oct/08 07:58 AM
Component/s: i18n
Affects Version/s: 2.0.1
Fix Version/s: 2.1


 Description  « Hide
pom.version is used in ApplicationResources_no.properties. this value is not replaced at build time with version, like it is in ApplicationResources.properties.
If i remove <exclude>ApplicationResources_no.properties</exclude> from pom.xml file. It works, values are replaced. Then maven dosen't preserve the UTF-8 encoding.

 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 02/Jan/08 01:17 PM
Can you please provide the steps to reproduce this problem? If I can reproduce, hopefully I can fix. If you provide a patch - that's even better! ;-)

Truls - 03/Jan/08 04:49 AM
I might have been wrong.
This line
webapp.version=Versjon ${pom.version}
is not in the newest version i checkout from appfuse.
It is no longer translated. Not sure if i translated it in my app or it came with the file.

But if i add the line, pom.version is not replaced with the version number, when i run jetty:run or install

Matt Raible - 03/May/08 10:02 PM
You are correct in that files that are processed by the native2ascii-maven-plugin are not filtered and replaced with properties. Unfortunately, I can't think of a good way to fix this at this time.

http://www.nabble.com/Filtering-with-native2ascii-maven-plugin-td17042250.html

cobele - 05/Oct/08 07:58 AM
remove webapp.version and copyright.year from ApplicationResources_no.properties, thenit will use the one in ApplicationResources.properties

u know, the one in ApplicationResources.properties will be replaced.