-
1. Re: [Nukes] Theme deployment question
rgimbel Aug 25, 2004 9:56 PM (in response to rgimbel)I have discovered that the GIF images seem to be getting corrupted during the build process. I can view the images fine in the src/resources/mytheme-lib-jar/org/jboss/nukes/addon/themes/mytheme/images, but after the build I go to use the same file viewer and I get the following error:
GIF file was missing some data (perhaps it was truncated somehow?)
GIF file was missing some data (perhaps it was truncated somehow?)
GIF image contained a frame appearing outside the image bounds.
I have looked in the build.xml file but don't see anything that would have tweeked these files from the src location to the output directory. I am going to copy the images directly to the output directory and see if I can build a sar file that will deploy working images. -
2. Re: [Nukes] Theme deployment question
rgimbel Aug 25, 2004 10:10 PM (in response to rgimbel)That fixed it.. Something in the build process was breaking my GIF images. I copied the original GIF's from the src directory over top of the files in the output directory and rebuilt the sar file and deployed.. the graphic images came right up like they are suppose to.
So this leads me to my next question. Where should these files be placed I have them in my copied template directory as such:
/root/cvs/nukes/template/src/resources/nukes-template-lib-jar/org/jboss/nukes/addons/themes/mytheme
Is this not the best place to put these files? or is there a better place? -
3. Re: [Nukes] Theme deployment question
theute Aug 26, 2004 6:13 AM (in response to rgimbel)You need to put the binary files in the bin directory and create the same path as in src
/cvs/nukes/mytheme/src/bin/org/jboss/nukes/addons/themes/mytheme/images -
4. Re: [Nukes] Theme deployment question
rgimbel Aug 26, 2004 1:49 PM (in response to rgimbel)Thank you!
-
5. Re: [Nukes] Theme deployment question
rgimbel Aug 26, 2004 6:06 PM (in response to rgimbel)When I moved the images into the bin directory and ran the build.sh the binary directory does not make it into the output directory and consequently doesn't make it into the .sar file. The build script is pulled out of the current nukes cvs tree. Is there something more that I need to do to the build file so that ant knows to pick up this directory?
Thanks in advance. -
6. Re: [Nukes] Theme deployment question
rgimbel Aug 26, 2004 7:22 PM (in response to rgimbel)Got it.. After disecting the build.xml file I needed to add a couple entries in the default build.xml
I added the line in the _default:compile-bin in the compile target.<target name="compile" description="Compile all source files." depends="_default:compile-classes, _default:compile-etc, _default:compile-bin, _default:compile-resources"> <!-- Add module specific elements here. --> </target>
and the following line in the output target in the jar file section.<fileset dir="${build.bin}" includes="**/*"/>
-
7. Re: [Nukes] Theme deployment question
rgimbel Aug 26, 2004 7:25 PM (in response to rgimbel)I lied.. that broke my images again...
-
8. Re: [Nukes] Theme deployment question
rgimbel Aug 26, 2004 7:34 PM (in response to rgimbel)Hopefully this will be my last post in this topic and hopefully someone else finds value in this.
The only line I needed to ad was in the output target and this line in the jar section:<fileset dir="${source.bin}" includes="**/*"/>
boy am I a putz!
All is good now!