[Dspace-tech] Modifications to DSPACE-JSPUI code being ignored on partial rebuilds
Hi all, I am using DSpace 1.8.0 and JSPUI in my instance. I am having an issue with some modified code being ignored after a partial rebuild of DSpace. I altered the ItemTag.java class in the dspace-jspui directory. I added code that displays URL information as an actual link, as opposed to the plain text default, and performed a full rebuild: cd D:\dspace-1.8.0-source\ mvn clean package cd dspace\target\dspace-1.8.0-build ant update then copy the appropriate folders and files to Tomcat and restart the server. The code works perfectly after this is done. Then, when I do a partial rebuild for whatever reason (usually a small VIEW-layer change) like so: cd D:\dspace-1.8.0-source\dspace\ mvn clean package cd target\dspace-1.8.0-build ant update then copy the appropriate folders and restart the server The code now does not work anymore, and the links are once again displayed as plain text. I am fairly certain at this point that it is my lack of knowledge concerning MVN and/or ANT that is causing this. Could anyone direct me as to what the cause of my current sorrow is, and where I might learn more about it? Thank you very much for your time. Good-day and be well. Darren Arsenault Programmer Algonquin College 1385 Woodroffe Avenue Ottawa, ON, K2G 1V8 -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Modifications to DSPACE-JSPUI code being ignored on partial rebuilds
Hi Darren, quick build serves to rebuild things like overlays, which reside in [dspace-source]/dspace/modules. I almost never use it, so I'm not sure, but I don't think it rebuilds the JSPUI jars. ItemTag is located in dspace-jspui/dspace-jspui-webapp/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java. I think you need to place it into [dspace-source]/dspace/modules/jspui/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java, which will overlay the original file in the original location. Then changes to this file should apear after the quick rebuild. Can you try and report back? You can learn more background about overlays in Tim's presentation: https://www.ideals.illinois.edu/handle/2142/11915 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Modifications to DSPACE-JSPUI code being ignored on partial rebuilds
Hi Ivan, That did the trick! Thank you very much! I place all of my modified JSPs in [dspace-source]/dspace/modules/..., but I did not realize that we could add new directories—containing the modified API code—that would then overlay the originals as well. I've done quite a few full builds that were unnecessary given that this is possible—I wish I had asked sooner! I haven't seen Tim's presentation yet, but I intend to. Thanks again. Darren Arsenault Programmer Algonquin College 1385 Woodroffe Avenue Ottawa, ON, K2G 1V8 From: ivan.ma...@gmail.com [ivan.ma...@gmail.com] On Behalf Of helix84 [heli...@centrum.sk] Sent: November-22-12 1:58 PM To: Darren Arsenault Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Modifications to DSPACE-JSPUI code being ignored on partial rebuilds Hi Darren, quick build serves to rebuild things like overlays, which reside in [dspace-source]/dspace/modules. I almost never use it, so I'm not sure, but I don't think it rebuilds the JSPUI jars. ItemTag is located in dspace-jspui/dspace-jspui-webapp/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java. I think you need to place it into [dspace-source]/dspace/modules/jspui/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java, which will overlay the original file in the original location. Then changes to this file should apear after the quick rebuild. Can you try and report back? You can learn more background about overlays in Tim's presentation: https://www.ideals.illinois.edu/handle/2142/11915 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech