You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2015/10/13 11:40:08 UTC
[Bug 58496] New: fileset as javac src element
https://bz.apache.org/bugzilla/show_bug.cgi?id=58496
Bug ID: 58496
Summary: fileset as javac src element
Product: Ant
Version: 1.9.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: nikon.webmaster@gmail.com
I have ant (1.9.4) macros which accept path-like structure as src param and
when i try run it I get 'FILE_NAME.java is not a directory'.
Build file text:
<project name="test" default="main">
<macrodef name="testm">
<element name="srcdir"/>
<sequential>
<javac destdir="target">
<src>
<srcdir/>
</src>
</javac>
</sequential>
</macrodef>
<target name="build-project">
<testm>
<srcdir>
<fileset dir="src">
<include name="**/*.java"/>
</fileset>
</srcdir>
</testm>
</target>
<target name="main" depends="build-project"/>
</project>
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58496] fileset as javac src element
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58496
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
This is not how srcdir works.
You are specifying the source files for javac while the <src> elements expects
to get the *directories* that are the roots of the package hierarchies. You
want to say
<testm>
<srcdir>
<pathelement location="src"/>
</srcdir>
</testm>
--
You are receiving this mail because:
You are the assignee for the bug.