Ant: javac task: path versus pathelement

668 Views Asked by At

I would like to know the difference between the following javac Ant tasks.

<!-- Task 1 -->
<javac destdir="${build}" classpath="classes.jar" debug="on">
  <src path="${src}"/>
  <src>
    <pathelement path="${src2}"/>
    <pathelement path="${src3}"/>
  </src>
</javac>

<!-- Task 2 -->
<javac destdir="${build}" classpath="classes.jar" debug="on">
  <src path="${src}"/>
  <src path="${src2}"/>
  <src path="${src3}"/>
</javac>

Thanks.

1

There are 1 best solutions below

0
On

There is no difference, every path is being added to the source paths.