How to use modified .tag files with Fisheye/Crucible

daviderickson June 28, 2011

Hi I want to modify the html output of my Fisheye/Crucible instance, I have the source license, in particular I want to edit the header, so I've found and modified content/WEB-INF/tags/cru/masthead.tag, I've placed this file in my $FISHEYE_INST/content/WEB-INF/tags/cru/ folder, I've tried flushing from the administrator panel, and looking to see if there was a web cache (there was not), and tried restarting Fisheye. In none of these cases are my changes applied. I have found a compiled version of this tag file shipping in lib/jsp_pre.zip, do I need to precompile this tag somehow and replace it in the zip for it to take effect? Any help here would be appreciated, its important we change the header for this program.

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
daviderickson June 28, 2011

Going to answer my own question here.. I resolved this with the help of Seb Ruiz (thanks!), the issue was you must use the full source distribution to be able to edit the tags, you cannot install the normal distribution and just unzip the specific tag file on top of it and edit that file.

Kiron
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012

Hi David,

Can you explain little more as to how I can compile modified masthead.tag file under FISHEYE_INST/content/WEB-INF/tags/cru/masthead.tag?

Thanks!

daviderickson March 22, 2012

Hi Kiron, you don't actually need to compile it, you need to install Fisheye/Crucible from the source distribution (not the regular distribution), then you can just edit the file and see the changes live. Does that make sense? In my original attempt I had installed Fisheye/Crucible normally, then downloaded the source distribution and installed only the single file I needed (masthead.tag), but it wasn't picked up because the normal distribution uses a compiled version of those files. So the solution was to delete my installed Fisheye/Crucible and replace it with the source, then everything worked.

Kiron
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2012

Hi David,

That worked and thank you very much. Now another question.. when I updated .css files I don't see that they are recognised..is there a special way to add css classes to the existing .css files?

Thanks in advance

daviderickson March 23, 2012

Hmm not sure on that one as I haven't tried, but they may be getting cached, did you try restarting the server?

Kiron
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2012

I did try restarting server...but no luck

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2012

It's actually a lot easier to write a plugin for fisheye and then use JS to change the styles, or css and override the styles.

daviderickson March 23, 2012

Ya not sure then, best suggestion I can make is to look at the CSS being returned to you in the browser then try and find the corresponding file(s) in the filesystem that are generating it (check the data directory too), and try and change them.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2012

It's a massive pain to do this with FE. The css files get concatenated and then gzipped. You need to make sure the file that you changed gets into the gz file.

Kiron
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 26, 2012

Hi David,

If you know can you please tell as to how I can get the project link for jira that is configured as applink in fisheye..from masthead.tag file?

daviderickson March 26, 2012

No idea off hand, sorry, our use case was limited to styling elements not any programming.

TAGS
AUG Leaders

Atlassian Community Events