I will use the following command to import a set of sql files using the mysql commnd.
<apply dir="${basedir}" executable="mysql" failonerror="true" parallel="true">
<arg value="-u${db.main.user}" />
<arg value="-p${db.main.password}" />
<arg value="-P${db.main.port}" />
<arg value="-h${db.main.host}" />
<arg value="-D${db.main.database}" />
<srcfile/>
<fileset dir="${db.main.path_to_dump}">
<filename name="keyword_category_rel.sql"/>
<filename name="keyword_classification.sql"/>
</fileset>
</apply>
The problem is that the mysql command execept the file as command input not as a parameter. So is there a way to provide the file from the fileset as input not as parameter?
Another option is to use the -e argument it accept the sql code from the file, but how can i read the data from the file of the fileset list into a property?