ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Creating WAR by referring to pathelement?
Date Mon, 10 Nov 2008 07:04:02 GMT
>  <path id="compile.class.path">
>    <pathelement path="X.jar" />
>  </path>
>
>  <path id="runtime.class.path">
>    <pathelement path="Y.jar" />
>  </path>
>
>
>    <war destfile="my.war" webxml="web.xml">
>      <lib file="X.jar" />
>      <lib file="Y.jar" />
>    </war>


<web><lib> is a <zipfileset> therefore referencing a <path> wouldnt
work
I think.
	<war><lib refid="compile.classpath"/><lib
refid="runtime.class.path"/></war>

But referencing another <fileset> should work.
  <path id="compile.class.path">
    <fileset id="fs.compile.libs" dir="." includes="X.jar" />
  </path>
  <path id="runtime.class.path">
    <fileset id="fs.rt.libs" dir="." includes="Y.jar" />
  </path>
  <war destfile="my.war" webxml="web.xml">
      <lib refid="fs.compile.libs" />
      <lib refid="fs.rt.libs" />
  </war>
But because of the use of fileset the referenced libraries have to have
the same base 
directory. (Or you must specify a fileset for each base directory.)


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message