Ant: javac task: path versus pathelement

652 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 answers

0
Nicolas Lalevée On

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