Hi Helix,
I think you misunderstood me, I apologize for my lack of clarity.
I was describing the way that I do a partial build, that is to say:
"D:\dspace-1.8.0-source\dspace> mvn clean package"
The full rebuild that I performed was completely successful. Run from
"D:\dspace-1.8.0-source> mvn clean package". After the full rebuild the code
worked perfectly—dates were formatted for my timezone, the approrpiate fields
were displayed as links, etc. Then I made a change to a JSP (changing the order
of menu items in navbar-default.jsp) and performed another partial rebuild to
update the JSP. ("D:\dspace-1.8.0-source\dspace> mvn clean package") The
changes to the navbar took effect, but I was surprised to see that the other
changes, to the item display, had reverted. I looked at the JAR files in the
DSpace directory using a Java decompiler, and my code changes are no longer
there. Performing another full rebuild ("D:\dspace-1.8.0-source> mvn clean
package") corrected the item display.
Why does this happen?
Darren Arsenault
Programmer
Algonquin College
1385 Woodroffe Avenue
Ottawa, ON, K2G 1V8
________________________________________
From: [email protected] [[email protected]] On Behalf Of helix84
[[email protected]]
Sent: October-04-12 9:53 AM
To: Darren Arsenault
Cc: [email protected]
Subject: Re: [Dspace-tech] Changes to ItemTag.java reverting to original code
after partial build
Hi Darren,
I think you're running into the same problem as Amira today:
> cd [dspace-source]/dspace/
I think this is the culprit - this doesn't do a full rebuild in 1.8.0
and above. Do it from here instead:
cd [dspace-source]
In short - in 1.8 running mvn package from [dspace-source]/dspace/
does a quick build (modules and somesuch), while running it from
[dspace-source] does a full build. This is documented somewhere but I
can't find it promptly.
You shouldn't need to run the "clean" target, but it surely doesn't hurt.
Regards,
~~helix84
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech