ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth Litwak" <>
Subject Basic syntax problem
Date Tue, 11 May 2004 23:19:24 GMT
   In spite of reading a book on Ant, I'm still having significant
problems in understanding the pieces, particularly frustrating given
what else I've done as a programmer (not meant as a boast, but if you
can code a CMP EJB,a scripting language shouldn't be hard).  My team ha
a big Ant build script.  I added a task that is supposed to run from a
basedir, apu-reg, and use the test.class file in
And when running be able to refer to classes in
as well as

I already have a compile task for the, written by someone
I copied it and modified it to write this:
	<echo message="Running Test ${class} ${args}"/>
		<java fork="true" dir="${build.dir}"/test/classes
			<arg line="${args}"/>
                        <pathelement path="${build.dir}/classes"/>
				<fileset dir="${lib.dir}">
					<include name="*.jar"/>

When I run ant test-run, I get an error for this task:

Buildfile: build.xml

C:\cvsfolder\javalib\apu-reg\build.xml:207: Element type "java" must be
 by either attribute specifications, ">" or "/>".

Total time: 0 seconds

So what am I missing?  I could sure use something to read that gives a
detailed explanation of pathelements and filesets.  The book I have is
not nearly detailed enough for my purposes.  I have no idea if I've got
this specified correctly.  Thanks.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message