https://bz.apache.org/bugzilla/show_bug.cgi?id=62544

            Bug ID: 62544
           Summary: includesfile ignores entries starting with ./
           Product: Ant
           Version: 1.10.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

It looks like a fileset using the includesfile attribute skips the entries with
a relative path starting with "./".

Here is an example illustrating the issue, a simple class importing an Ant
package is compiled. The elements of the classpath are defined in a
'dependencies' file. The first compilation uses a relative path starting
directly with the name of the jar, and the second compilation uses a relative
path prefixed by "./". The first compilation works but the second one fails:


<?xml version="1.0" encoding="UTF-8"?>
<project default="compile">

  <target name="compile">
    <copy file="${ant.home}/lib/ant.jar" todir="."/>
    <echo file="Test.java">import org.apache.tools.ant.types.*; public class
Test {}</echo>

    <echo file="dependencies">ant.jar</echo>
    <javac srcdir="." destdir="." includeantruntime="false">
      <classpath>
        <fileset dir="." includesfile="dependencies"/>
      </classpath>
    </javac>

    <delete file="Test.class"/>

    <echo file="dependencies">./ant.jar</echo>
    <javac srcdir="." destdir="." includeantruntime="false">
      <classpath>
        <fileset dir="." includesfile="dependencies"/>
      </classpath>
    </javac>
  </target>

</project>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to