Ant problem with Exec task

  • Thread starter Michael Champigny
  • Start date
M

Michael Champigny

Hello,

I'm running into what may be a limitation of Ant's <exec> task.
I'd like to automate the running of my unit tests (note: I'm not using JUnit).
I can run each unit test with the <exec> task:

<target name="run">
<exec executable="test1"/>
</target>

But I'd like to wildcard the value of the executable parameter so that I can
run all executables with a filename prefix of "test":

<target name="run">
<exec executable="test*"/>
</target>

This doesn't work. Is there a way to get around this? Note that these
executables are C++ images, not Java bytecode. I'm using Ant with cpptasks.

Thanks,
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top