Possible to run tasks from Java?

I’m wondering if it’s possible to just run tasks such as these directly from Java using classes instead of having to utilize ANT, Commandline or something else?

dbDoc

update

Yes, this is totally possible. That is what we have done at Datical - we have written an Eclipse-RCP based GUI as well as an Eclipse command line that wrap and extend Liquibase. You can get some idea of how that would work by looking at the open source implementations of the existing integrations. One of the easiest to understand, in my opinion, is the command line integration. 

This package is where I would suggest you start:

https://github.com/liquibase/liquibase/tree/master/liquibase-core/src/main/java/liquibase/integration/commandline

Line 1143 in Main is where the update command is processed. There is some command-line processing of course, but that is a good place to start looking. 

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Thank you for the assist, I’ll take a look in that location.