Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3284

Provide jackrabbit standalone jar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • jackrabbit-standalone
    • None

    Description

      Hello all,

      I would like to use jackrabbit-standalone from Maven for testing our upcoming Apache Commons VFS 2.1.

      If you have a better idea on how to do the following, please advise.

      I want to run our VFS WebDAV unit tests using Jackrabbit as a server embedded in the test. In previous versions, a developer had to set up a WebDAV server manually and run the one test.

      What I started to do is use jackrabbit-standalone 1.6.5 but it does not have the JcrUtils class which came in with Jackrabbit 2.0.

      My current code:

      1. Create a temp dir
      2. Create a TransientRepository point to the temp dir
      3. Use JcrUtils to import a directory its subdirectories full of test files (I cannot do this ATM.)
      4. Shutdown the TransientRepository
      5. Start Jackrabbit with org.apache.jackrabbit.standalone.Main:
        org.apache.jackrabbit.standalone.Main.main(new String[] { "--port", Integer.toString(SocketPort), "--repo", repoDirectory.toString() });
        
      6. The tests run
        I would like to use the latest jackrabbit but I am stuck without the standalone jar.

      Thoughts?

      Attachments

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              ggregory Gary D. Gregory
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: