apply task may be what you need.
I have a target to create all stored procedures, views , tables,... in a SQL Server db.
This is the target, if you need an example:
<target name="build"
description="Creates the stored procedures and views">
<splash/>
<apply dir="${basedir}" executable="isql.exe" failonerror="false"
parallel="false" skipemptyfilesets="true" type="file" vmlauncher="false"
output="${basedir}/out.txt"
>
<arg value="-S" />
<arg value="${server}" />
<arg value="-d" />
<arg value="${db}" />
<arg value="-U" />
<arg value="${user}" />
<arg value="-P" />
<arg value="${pswd}" />
<arg value="-b" />
<arg value="-n" />
<arg value="-i" />
<srcfile/>
<fileset dir="${viewdir}" includes="${pattern}" casesensitive="no"/>
<fileset dir="${procdir}" includes="${pattern}" casesensitive="no"/>
<fileset dir="${triggerdir}" includes="${pattern}" casesensitive="no"/>
</apply>
</target>


Jan Heise wrote:
hi all,

perhaps this is a simple/silly question but I haven't
found an answer so far. I want to do the following:

say i have a java task like:
<java classname="cirrus.hibernate.tools.SchemaExport" fork="true">

this tool supports a list of files as input from the command line,
so obviously I want to do something like this:
	<arg refid="mapping1.hbm.xml"/>
	<arg refid="mapping2.hbm.xml"/>
	<arg refid="mapping3.hbm.xml"/>

I am searching for a way to make this more flexible/shorter like
doing:
<arg>
	<fileset dir="${dir.src}">
		<include name="**/*.hbm.xml" />
	</fileset>
</arg>

but this does not work. is there a way to achieve the above?

tia, jan




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>

Reply via email to