ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fajian Shi" <>
Subject Is Ant able to simulate the full dependency relation as done in makefile?
Date Thu, 16 Nov 2000 19:48:28 GMT
Thanks for the mailing lists that really solves my many questions. Here
comes a new one:

Suppose I want to generate a set of data files by running Java tasks several
times. Since Java only accepts one main class (am I right?), so I am forced
repeat java task multiple times in Ant. I want to know if it is possible to
do the job without repeating java tasks, by using dependence, as usually
done in makefile?

The following is how the makefile do it:
%Hashtable.dat: com/dmi/rmi/negotiation/%.class
	object='echo $< | sed "s/.*.....| tr "/" ".";
      $(JAVA) $(JAVA_OPTIONS) -classpath $(CLASSPATH) $$object;

       ...          \

Test: $(DataTables)

I find it is hard for me to use the dependence of target in Ant to perform
the same job, any ideas?


View raw message