ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "O'Hara, Patrick" <patrick.oh...@workscape.com>
Subject RE: Chicken and Egg question
Date Thu, 07 Jun 2001 21:09:43 GMT
OK, we seem to be getting closer.  Here is what I have at this point.
jar.dir is also set by a task.  I can now add jar.dir, but I also want to
add all jar files in the jar.dir.  I cannot create a fileset at this level
(I tried that)  can I wrap the fileset in something?  I cannot put the
fileset in the PATH element as the jar.dir has not been defined by the time
the PATH is evaluated.

    <fileset dir="${jar.dir}" id="jarclasspath">
      <include name="**/*.jar"/>
      <include name="**/*.zip"/>
    </fileset>
    <fileset dir="${project_env.ANT_HOME}/lib" id="antclasspath">
      <include name="**/*.jar"/>
      <include name="**/*.zip"/>
    </fileset>
	<property name="base.classpath" refid="project.baseclasspath"/>
	<property name="ant.classpath" refid="antclasspath"/>
	<property name="jar.classpath" refid="jarclasspath"/>
	<property name="project.classpath"
value="${jar.dir};${base.classpath};${ant.classpath};${jar.classpath}"/>

Pat O
pdohara@techneex.com

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Thursday, June 07, 2001 3:24 PM
To: ant-user@jakarta.apache.org
Subject: RE: Chicken and Egg question


--- "O'Hara, Patrick" <patrick.ohara@workscape.com> wrote:
> How would I combine a path and a property to make a new property?

<path id="generic.path">
  <pathelement location="/some/file.jar"/>
</path>

<property name="generic.path" refid="generic.path"/>
<property name="new.path" value="/some/new/file.jar;${generic.path}"/>

(Or a ":", if you prefer.)

Diane


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message