[jboss-user] [JBoss Seam] - Seam-gen build corrupts images
trickyvail
do-not-reply at jboss.com
Fri Jul 20 11:06:35 EDT 2007
Seam 1.2.1.GA
I have experienced corrupt image files when creating new seam-gen projects in a Linux environment (Debian & Ubuntu) for some time. When creating a new seam-gen project in a WindowsXP environment the file corruption does not occur.
There are only 3 files that are effected by this problem:
/view/img/cal-next.png
/view/img/cal-prev.png
/view/img/dtpick.gif
So it has not been a big deal to copy the files over manually.
I've done a little research into the problem and I think it is related to the use of a filterset in the ant copy task on lines 602-605 of the seam-gen build file $SEAM_HOME/seam-gen/build.xml
|
|
| <copy todir="${project.home}/view">
| <fileset refid="view"/>
| <filterset refid="project"/>
| </copy>
The ANT documentation (http://ant.apache.org/manual/CoreTasks/copy.html) says:
anonymous wrote : Note: If you employ filters in your copy operation, you should limit the copy to text files. Binary files will be corrupted by the copy operation. This applies whether the filters are implicitly defined by the filter task or explicitly provided to the copy operation as filtersets. See encoding note.
|
When copying the contents of the image directory within a copy task (without any filters) the file corruptions do not occur.
Would it be appropriate to post a JIRA issue with a patch?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066241#4066241
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066241
More information about the jboss-user
mailing list