Joseph, Go to the config directory. You'll see a file named launcher.xml there. You need to defined your code there. I think once you see what's there, you'll see how that's done. Then you can run your program like this:
bin/dspace bulkmove I assume bulkmove is the name you give your command. Hope this helps. -Jose On Tue, Feb 2, 2016 at 8:48 AM, Joseph Greene <[email protected]> wrote: > Hi, > > I’ve written some code to bulk move items from one collection to another. > It taps into the xmlui api. I need help running the code, e.g.: > > > > ~/dspace/bin/dspace dsrun > org.dspace.app.xmlui.aspect.administrative.BulkItemMove > > > > As you can see, it’s located in the xmlui package, because it uses > FlowItemUtils to move items. This was easier for me to understand in > limited time than the standard (non-XMLUI) API. > > > > When I run the above, I get the following: > > > > Error in launcher.xml: Invalid class name: > org.dspace.app.xmlui.aspect.administrative.BulkItemMove > > > > My guess is that dsrun doesn’t know how to find that package, what would > be the correct way to run it? I’ll have a look at launcher.xml in the > meantime. > > > > Joseph > > > > > > ___________________________ > > Joseph Greene, MLIS > > Research Repository Librarian > > UCD Library > > Room 325, Level 3, James Joyce Library > > T: +353 1 716 7398 | E: [email protected] | W: > http://researchrepository.ucd.ie/ > > > > [image: mailLogo] > > > > www.ucd.ie/library | libguides.ucd.ie | @UCDLibrary > <https://twitter/@UCDLibrary> > > > > > > -- > You received this message because you are subscribed to the Google Groups > "DSpace Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/dspace-community. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-community. For more options, visit https://groups.google.com/d/optout.
