D
David Roden
Hi.
I have a problem with ant (versions 1.5.4, 1.6.0, and 1.6.1). I use a
fileset to identify the files I want to compile, like this:
<fileset id="build.files" dir="${src.dir}">
<include name="com/**/"/>
<exclude name="com/company/application/clients/**/"/>
</fileset>
Later, I reference this fileset within the javac task.
<target name="compile" depends="init">
<javac destdir="${build.dir}" target="1.4" debug="true">
<classpath refid="project.class.path"/>
<src>
<fileset refid="build.files"/>
</src>
</javac>
</target>
Ant bails out with this error:
BUILD FAILED
file:/home/sites/Application/build.xml:181:
/home/sites/Application/server/source/com/company/application/io/IO.java
is not a directory.
Line 181 is the line where the javac task definition starts.
Am I missing something here? Of course ant is correct when stating that
"IO.java" is not a directory, because it really isn't. I just wonder why
ant thinks it should be a directory.
Can anyone hint me in the right direction? This has kept me busy for
several hours now, and I'm clearly out of ideas.
Thanks in advance,
David
I have a problem with ant (versions 1.5.4, 1.6.0, and 1.6.1). I use a
fileset to identify the files I want to compile, like this:
<fileset id="build.files" dir="${src.dir}">
<include name="com/**/"/>
<exclude name="com/company/application/clients/**/"/>
</fileset>
Later, I reference this fileset within the javac task.
<target name="compile" depends="init">
<javac destdir="${build.dir}" target="1.4" debug="true">
<classpath refid="project.class.path"/>
<src>
<fileset refid="build.files"/>
</src>
</javac>
</target>
Ant bails out with this error:
BUILD FAILED
file:/home/sites/Application/build.xml:181:
/home/sites/Application/server/source/com/company/application/io/IO.java
is not a directory.
Line 181 is the line where the javac task definition starts.
Am I missing something here? Of course ant is correct when stating that
"IO.java" is not a directory, because it really isn't. I just wonder why
ant thinks it should be a directory.
Can anyone hint me in the right direction? This has kept me busy for
several hours now, and I'm clearly out of ideas.
Thanks in advance,
David