DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29281>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29281

documentation on javac for <src> children

           Summary: documentation on javac for <src> children
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Documentation
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I've got <javac> to work with a nested <src> element now. After much
trile-and-error, I got it to behave by listing each source directory using a
<pathelement> child. Could you document this clearly in the <javac> docs?

So documenting that

<javac srcdir="foo" ....>

is equivalent to

<javac ...>
  <src><pathelement location="foo"/></src>
</javac>

would have helped me out.

Here is my working <javac> command - feel free to pilpher what you need for the
documentation.

<javac
            srcdir="${name}" <!-- I had to add this - is there a bug? -->
            destdir="${build.classes.dir}"
            depend="${javac.depend}"
            deprecation="${javac.deprecation}"
            source="${javac.source}"
            debug="${javac.debug}">
            <src>
                <pathelement location="${src.dir}"/>
                <pathelement location="${build.apt.src}"/>
                <pathelement location="${build.jse.src}"/>
            </src>
            <classpath>
                <path refid="classpath"/>
            </classpath>
        </javac>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to