Find Questions…

Close ×
First time here? Check out the FAQ!

How to use modified .tag files with Fisheye/Crucible

daviderickson asked this question · 271 karma ·

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!

666 views

One Answer:

daviderickson · 271 karma ·

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 · 66 karma ·

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 · 271 karma ·

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 · 66 karma ·

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 · 271 karma ·

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

Kiron · 66 karma ·

I did try restarting server...but no luck

daviderickson · 271 karma ·

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.

Jamie Echlin · 49,109 karma ·

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.

Jamie Echlin · 49,109 karma ·

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.

Kiron · 66 karma ·

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 · 271 karma ·

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

Looking for something else?

Find Questions…

or Browse other questions tagged:

or Ask a Question