3 Replies Latest reply on Aug 31, 2012 10:32 AM by Andy Taylor

    how to get hornetq-rest 2.2.19.Final?

    Kent Watsen Newbie

      I downloaded the current stable jboss (jboss-as-7.2.0.Alpha1-SNAPSHOT), which comes with hornetq-*-2.2.19.Final.jar.  As I'm also using the HornetQ REST API, I want to get the 2.2.19.Final version of the hornetq-rest jar (shame it isn't built into the JBoss build).  I figure I would download and compile the source, as I've done before, but I'm confounded by the repo moving to github.  I'm a total github newbie!  (life was easy with svn)


      In github, I see the "Branch_2_2_AS7" branch and, within that, I see the "HornetQ_2_2_19_AS7_Final" tag, but I'm lost on how to get it.  I've tried various combinations of clone, checkout, pull, fetch, and archive, but nothing seems to actually give me the source for that tag...ugh!   I was really hoping that a `git archive` command would work, as I have no interest in the .git metadata...


      Can someone the magical incantation of commands, starting with `git init`, that will sync the HornetQ_2_2_19_AS7_Final tag to my local filesystem?



        • 1. Re: how to get hornetq-rest 2.2.19.Final?
          Andy Taylor Master

          git clone git@github.com:hornetq/hornetq.git

          cd hornetq

          git fetch --tags

          git checkout HornetQ_2_2_19_AS7_Final

          • 2. Re: how to get hornetq-rest 2.2.19.Final?
            Kent Watsen Newbie

            After running the last command, I get:



            $ git checkout HornetQ_2_2_19_AS7_Final

            Note: checking out 'HornetQ_2_2_19_AS7_Final'.



            You are in 'detached HEAD' state. You can look around, make experimental

            changes and commit them, and you can discard any commits you make in this

            state without impacting any branches by performing another checkout.



            If you want to create a new branch to retain commits you create, you may

            do so (now or later) by using -b with the checkout command again. Example:



              git checkout -b new_branch_name



            HEAD is now at e6b634d... 2.2.19.Final version


            I didn't see any new files get synched, maybe it happened in the background, though I thought it might display something about synching the diffs...


            Are the contents of the directory now "HornetQ_2_2_19_AS7_Final" or do I need to run something else?

            • 3. Re: how to get hornetq-rest 2.2.19.Final?
              Andy Taylor Master

              maybe a git tutorial might be a good place to start .


              all looks ok, you canu work in detached HEAD state as you wont be making any commits, you can now build it