ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Leal "Valmaņa" <achepat...@yahoo.es>
Subject RE: How to print out a <path > structure
Date Mon, 10 Nov 2003 11:55:22 GMT

You can print a path creating a new property, for example:

<property s.project.class.path refid = "project.class.path"/>

<echo message="The path is: ${s.project.class.path}"/>

I hope this help,

David

-----Mensaje original-----

De: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]

Enviado el: lunes, 10 de noviembre de 2003 8:55

Para: user@ant.apache.org

Asunto: RE: How to print out a <path > structure

 

> I'd like to know which jar files are available for my 

> ant tasks. This is a snippet of the script

> 

> <path id="project.class.path">

> <pathelement path="${env.CLASSPATH}"/>

> <fileset dir="${lib}">

> <include name="**/*.jar"/>

> <include name="**/*.zip"/>

> </fileset>

> <fileset dir="${env.ANT_HOME}/lib">

> <include name="**/*.jar"/>

> <include name="**/*.zip"/>

> </fileset>

> <pathelement location="src"/>

> </path>

> 

> I want to know which jar & zip files I can reach within 

> an ant task, bcoz I want to implement a new task and I drop 

> the jar file in $ANT_HOME/lib, but it seems I cannot 

> implement a task within the jar file.

 

You can print out a path with <pathconvert> and <echo>.

Have you <taskdef>ed your new task?

Maybe the tutorial in the Manual will help you

http://ant.apache.org/manual-1.6beta/tutorial-writing-tasks.html

 

Jan



---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message