Menu

passing jdbc password secretly via ant

chris snow
2005-05-02
2013-04-25
  • chris snow

    chris snow - 2005-05-02

    I am using sqlunit as an ant job in a multi-user environment.  Is there a more secure way to pass in the jdbc connection password rather than entering the password into the test.xml file?

    Thanks in advance,

    Chris

     
    • Sujit Pal

      Sujit Pal - 2005-05-02

      Hi Chris,

      There are many ways to pass in the Connection properties. They are all documented in the User Guide Chapter "Getting Connections" which begins here:
      http://sqlunit.sourceforge.net/c2991.html

      You can pass it in from the calling build.xml, from an external properties file, or even write your own wrapper to build and pass in your Connection object, although the last limits you to a single connection per test suite, which may not be what you want with your application. The full list in the user guide.

      -sujit

       

Log in to post a comment.