Search code examples
javaibatis

iBATOR classPathEntry, can it be set as relative to the project?


When following this tutorial the one thing I really have a question on is the classPathEntry: http://blog.agdunn.net/?p=313

Notice his entry is hard wired to the full path of the mysql-connector jar:

Is there a way to specify the project root as a variable in this type of situation?

example:

Thanks!


Solution

  • I'm not sure I understand your question?! Do you want to know if you can eliminate to absolute specified path to the mysql-connector?

    If so, the ibator documentation is of help. From the docs:

    The <classPathEntry> Element

    This element is optional and is not required if you setup the classpath externally to Ibator (e.g. with the -cp argument of the java command.

    Which indicates you can do without if you are adding the mysql-connector somewhere else to the classpath, for example your startup script.