I have a question here -- suppose that only the jspui webapp needs the
class, wouldn't it then be "cleaner" to put it in the overlay folder (i.e
[dspace-src]/dspace/modules/jspui/ under which you create
java/<packagepath>/<yourclassfile.java>), rather than putting it under the
dspace-jspui directory which I suppose is what you suggested?

thanks,
Mathias Hjelt
DHanken 

-----Original Message-----
From: Diggory Mark [mailto:[EMAIL PROTECTED] 
Sent: den 2 oktober 2008 05:30
To: Jason Stirnaman
Cc: [email protected]
Subject: Re: [Dspace-tech] plugins and custom classes in 1.5.x

Yes, this is a safe place to put such a customization if you want it to be
part of more than one of your webapplications (if it is just one
webapplication that will be using it,  just place it in that webapplications
src/main/java directory).  You will do the following:

1.) Create an "api" directory
2.) create a "api/pom.xml" that has a artifactId, groupId and version that
is the same as your current dspace version.
3.) make sure it is also dependent on org.dspace:dspace-api:<version>

4.) put you code in api/src/main/java
5.) add the api directory to the modules/pom.xml as both a module and a
dependency

when you now build, the api will be included into the modules list for
modules being built and the dependency will make sure it shows up in you
WEB-INF/lib of your compiled webapplications.

Finally, if you want your project to show up in the [dspace.dir]/lib, you'll
want to also add the dependency to the dspace/pom.xml

Don't hesitate to ask any questions if you get hung up on any of this.

Cheers,
Mark

On Oct 1, 2008, at 2:44 PM, Jason Stirnaman wrote:

> Follow up to my question:
> Is
> [dspace-source]/dspace/modules/api/src/main/java/org/dspace/
> authenticate
> the correct place to put a custom authentication method?
>
> ***************
> Can anyone point to good documentation about where to place plugins 
> and custom class files in 1.5.x?  It's not clear from the 1.5.1 
> manual.
> Specifically, in what directory would I place a custom authentication 
> method like the MIT-Special-Groups in 1.4.x?
> Thanks,
> Jason
> --
>
> Jason Stirnaman
> Digital Projects Librarian/School of Medicine Support A.R. Dykes 
> Library, University of Kansas Medical Center [EMAIL PROTECTED]
> 913-588-7319
>
>
> ----------------------------------------------------------------------
> --- This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge Build the coolest Linux based applications with Moblin SDK & 
> win great prizes Grand prize is a trip for two to an Open Source event 
> anywhere in the world 
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to