7 Replies Latest reply on Feb 20, 2012 8:25 AM by telecastravinsky

    I made Windows batch file of Byteman

    telecastravinsky

      Hello.

       

      My name is Kenji Suzuki.

       

      Try to use Byteman in a Windows, but was not exists batch file.

      So I made batch files of the following.

      (If it already exists, sorry)

       

      • bmjava.bat
      • bminstall.bat
      • bmsubmit.bat
      • bmcheck.bat
      • bytemancheck.bat (Almost the same as bmcheck.bat)

       

      These batch is done the same process as the same name shell script.

       

      Do you mind if these batch file publish here?

      If are you ok, I attach archive file.

        • 1. Re: I made Windows batch file of Byteman
          adinn

          Hi Suzuki,

          Suzuki Kenji wrote:

           

          Hello.

           

          My name is Kenji Suzuki.

           

          Try to use Byteman in a Windows, but was not exists batch file.

          So I made batch files of the following.

          (If it already exists, sorry)

           

          • bmjava.bat
          • bminstall.bat
          • bmsubmit.bat
          • bmcheck.bat
          • bytemancheck.bat (Almost the same as bmcheck.bat)

           

          These batch is done the same process as the same name shell script.

           

          Do you mind if these batch file publish here?

          If are you ok, I attach archive file.

           

          Thanks for offering to make these scripts available. It sounds like they will be very useful to other Byteman users runnng on windows. If you are willing to make them available with an open source license then please do attach them (n.b. Byteman uses the LGPL so it would make sense to use the same).

          • 2. Re: I made Windows batch file of Byteman
            telecastravinsky

            Hi Andrew,

             

            I will distribute this program with an open-source license(LGPL).

             

            For information on licensing, wrote at the beginning of the batch file.

            (The same thing as Byteman's shell script)

             

            So, I've attached a file.

             


            Description of the batch file

             

            1:Please put these batch in the same location as shell script.

               It does not work other location.

             

            2:If the contains following character to argument, please enclose it in double quotation marks.

               (because these characters are used as delimiters of arguments)

            • space
            • =
            • ,
            • ;

             

            Example1:case of space

            bmcheck.bat "C:\Program Files\Test\test.btm"
            

             

            Example2:case of =

            bmcheck.bat "-Dkey=value" test.btm
            

             

            3:About setenv.bat.

               This is called from another batch, and sets the environment variable.

             

            4:Test

               Operation confirmation test was performed in the following OS.

            • Windows XP Home Edition
            • Windows 7 Professional

             


             

            Batch files is contained in the attachment.

             

            Byteman is great, and interesting tool.

            Thank you.

            • 3. Re: I made Windows batch file of Byteman
              adinn

              Hi, Kenji,

              Suzuki Kenji wrote:

               

              I will distribute this program with an open-source license(LGPL).

              Thank you very much for providing these scripts. I am sure they will be immensely helpful for WIndows users.

               

              I would very much like to add your scripts to the Byteman master repository and include them in new Byteman download releases. However, I can only do that if you are willing to sign a JBoss contributor agreement (an individual agreement if you are doing this in your own time or a corporate one if you are doing it on behalf of your employer). Basically, the agreement affirms that the code you have produced is your own work and is not encumbered by undeclared copyrights or by any  patents you own i.e. it ensures Red Hat (and, therefore, everyone) can continue to use the code without any legal hindrance. Note that it does not take away any of your rights to use the code.

               

              Details of the agreement and the sign-up form are available at https://cla.jboss.org

              • 4. Re: I made Windows batch file of Byteman
                telecastravinsky

                Hi, Andrew,

                 

                I was sign up.

                 

                regards.

                • 5. Re: I made Windows batch file of Byteman
                  adinn

                  Hi Kenji,

                   

                  Yes, I saw your submission and approved you a a contributor. So your scripts can now go into the release. They will also be mentioned in the next version of the Programmer's Guide. Also, I will raise a JIRA for this update which means your contribution will be visible in the next release notes. So, keep an eye out for version 2.0.1 which should appear in a couple of weeks (probably first week fo March as I am very busy up until then). Thanks you very much for improving Byteman for everyone.

                  • 6. Re: I made Windows batch file of Byteman
                    adinn

                    Hi Kenji,

                     

                    The JIRA for this is BYTEMAN-193 and the scripts are now included in the git master in the bin directory ready for inclusion into release 2.0.1.

                    • 7. Re: I made Windows batch file of Byteman
                      telecastravinsky

                      Hi Andrew,

                       

                      I was confirmed BYTEMAN-193 and git master.

                      Thank you.