[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
Re: [Dspace-tech] Modifications in DSpace
Dear It depends... - If you will only restart the server after the changes, you change best the dspace.cfg in the /dspace/config directory. ! Be aware of that fact that this file will be overwritten (with the /dspace-source/config/dspace.cfg) after a next deploy ! - If you plan to deploy and then restart the server, you change the dspace.cfg in the /dspace-source/config directory. This file will, as also mentioned above, overwrite the /dspace/config/dspace.cfg after deploy. Yours Sincerely Christof Verdonck Guillermo Esteban Murillo Goussen wrote: Simple question. When I have to do a change, for example: change the webui.supported.locales, I have to modify the dspace.cfg file in the dspace installation directory or in the dspace-source directory? -- La pureza del alma no se pierde sin consentimiento -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Modifications in Dspace
Hi Guillermo If you modify the dspace.cfg in the dspace installation directory, you just need to restart Tomcat. But, If you change the dspace-src director you need to bring it to the installation directory. Regards Hardik Mishra Ahmedabad - Gujarat Message: 7 Date: Thu, 14 Jul 2011 16:09:19 -0600 From: Guillermo Esteban Murillo Goussen mem...@gmail.com Subject: [Dspace-tech] Modifications in DSpace To: dspace-tech@lists.sourceforge.net Message-ID: CAMf=-HWpnOiS6aFMF-+oKUku2quF+KaPX5M4_B69HisbSju=w...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Simple question. When I have to do a change, for example: change the webui.supported.locales, I have to modify the dspace.cfg file in the dspace installation directory or in the dspace-source directory? -- La pureza del alma no se pierde sin consentimiento -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Modifications in DSpace
Simple question. When I have to do a change, for example: change the webui.supported.locales, I have to modify the dspace.cfg file in the dspace installation directory or in the dspace-source directory? -- La pureza del alma no se pierde sin consentimiento -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech