I've got an ant build file (marked as such in IDEA) where one of the tasks is to
create the DDL file for the project's persistent objects (using Hibernate's SchemaExportTask).
The task definition includes a reference to the complete compile/runtime classpath.
When executing ant on the command line, the task performes as expected and I
have an artefact (the sql file). When running the same build file from IDEA I get
Class Not Found exceptions unless I explicitly add specific jar files to the class
path using the 'Additional Classpath' tab entries. The project uses the same ant
that is used on the command line, and not the built in one.
I've tried to turn on debugging but there's scant information presented about the
class path used by/available to the task.
Any idea what is going on? Am I missing something (most likely)?
Any help would be appreciated - I really want to be able to run this task from within
IDEA along with the rest of the project building tasks.