Difference between OrderRootType.CLASSES and OrderRootType.COMPILATION_CLASSES

Hi,

Could someone point me to the difference between the OrderRootType.CLASSES and the
OrderRootType.COMPILATION_CLASSES constants?

The javadoc says that the COMPILATION_CLASSES constants refer to the compilation classpath, whereas
the CLASSES constant refers to the classpath, without the output directories. However, when I call
the Library.getFiles(OrderRootType) method with either constant - the results are the same. Should
they be?

Any help is appreciated,
Arik.

1 comment
Comment actions Permalink

/**

  • Classpath.

*/
public static final OrderRootType CLASSES_AND_OUTPUT = new OrderRootType("CLASSES_AND_OUTPUT");

/**

  • Classpath for compilation

*/
public static final OrderRootType COMPILATION_CLASSES = new OrderRootType("COMPILATION_CLASSES");

/**

  • Classpath without output directories for this module.

*/
public static final OrderRootType CLASSES = new OrderRootType("CLASSES");


This, COMPILATION_CLASSES should better be called OUTPUT and CLASSES probably
should be renamed to DEPENDENCIES_CLASSPATH.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

Could someone point me to the difference between the
OrderRootType.CLASSES and the OrderRootType.COMPILATION_CLASSES
constants?

The javadoc says that the COMPILATION_CLASSES constants refer to the
compilation classpath, whereas the CLASSES constant refers to the
classpath, without the output directories. However, when I call the
Library.getFiles(OrderRootType) method with either constant - the
results are the same. Should they be?

Any help is appreciated,
Arik.



0

Please sign in to leave a comment.