ant - What's the difference between a nested path and fileset? -


i have been googling "differences between fileset , path" article time, have found nothing useful. example, difference between following (say, there somedir directory, contains .jar files , has no subdirectories):

<path id="somepathid">     <pathelement path="somedir"/> </path>  <path id="someid">   <path refid="somepathid" /> </path> 

and

<path id="someid">   <fileset dir="somedir">      <include name="*.*">   </fileset> </path> 

?

they used in different situations.

fileset used specify group of files. can use selectors , patternsets files want.

classpath used specify classpath references. classpath can specified single jar (location="..."), ; or : separated list of jars (path="...") or nested resource collections (like fileset).

also if want debug them, different:

<echo message="build-path: ${tostring:build-path}" /> 

vs

<property name="debug.classpath" refid="classpath"/> <echo message="classpath = ${debug.classpath}"/> 

as scripts,

<path id="somepathid">     <pathelement location="somedir"/> </path> 

i did not test according documentation path= expects ; or : separated list of jars. not same second example.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -