Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 60023 invoked by uid 500); 7 Jun 2001 19:55:34 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 59902 invoked from network); 7 Jun 2001 19:55:30 -0000 Message-ID: <13EFBBC3DB08D511A5CB0002A5095C5215F94A@mail.workscapeexpress.com> From: "O'Hara, Patrick" To: "'ant-user@jakarta.apache.org'" Subject: RE: Chicken and Egg question Date: Thu, 7 Jun 2001 15:55:02 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0EF8B.BD3873E0" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0EF8B.BD3873E0 Content-Type: text/plain; charset="iso-8859-1" How would I combine a path and a property to make a new property? Pat O pdohara@techneex.com -----Original Message----- From: Diane Holt [mailto:holtdl@yahoo.com] Sent: Thursday, June 07, 2001 2:39 PM To: ant-user@jakarta.apache.org Subject: Re: Chicken and Egg question I don't see where you're defining build.classes, but if it's the output dir where your classes get built into, then you shouldn't need to include it in your , since the directory specified in the "destdir" attr is automatically included in the classpath for the compiles. But to answer the question more generally: You can define your without the dir-based-on-date, then have a target that runs , sets a property based on a refid to your defined , then sets a property that combines that property with the path to your dir-based-on-date. Then, when you need to specify that classpath, reference that property, rather than the path id. Diane --- "O'Hara, Patrick" wrote: > I have the following which does not work: > > if="build.num"/> > value="${weblogic.basedir}/${starteam.viewname}/${build.dir}" > if="build.num"/> > > > location="${weblogic.basedir}/weblogic451sp13boot.jar"/> > > > > > location="${weblogic.basedir}/mssqlserver4v70/classes"/> > > > > > > > > > > > > > The issue is that tstamp must be in a task. This would actually be > better > for me except that I must get build.classes into my classpath. I have > found > that one cannot put a path task into a task. So the question is how do > I go > about defining a class path that I can use on several calls to javac, > given > that I need to be in a task to define one of the elements of that class > path? > > Thanks for your help. > > > Patrick O'Hara > Workscape, Inc > N17 W24222 Riverwood Pl > Waukesha, WI 53188-1162 > 262-408-3849 > 262-408-3840 Fax > patrick.ohara@workscape.com > <> > > ATTACHMENT part 2 application/octet-stream name=O'Hara, Patrick.vcf ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ------_=_NextPart_001_01C0EF8B.BD3873E0 Content-Type: text/html; charset="iso-8859-1" RE: Chicken and Egg question

How would I combine a path and a property to make a new property?

Pat O
pdohara@techneex.com


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


I don't see where you're defining build.classes, but if it's the output
dir where your classes get built into, then you shouldn't need to include
it in your <path>, since the directory specified in the "destdir" attr is
automatically included in the classpath for the compiles.

But to answer the question more generally: You can define your <path>
without the dir-based-on-date, then have a target that runs <tstamp>, sets
a property based on a refid to your defined <path>, then sets a property
that combines that property with the path to your dir-based-on-date. Then,
when you need to specify that classpath, reference that property, rather
than the path id.

Diane

--- "O'Hara, Patrick" <patrick.ohara@workscape.com> wrote:
> I have the following which does not work:
>   <tstamp/>
>   <property name="build.dir" value="Build${build.num}-${DSTAMP}"
> if="build.num"/>
>   <property name="build.basedir"
> value="${weblogic.basedir}/${starteam.viewname}/${build.dir}"
> if="build.num"/>
>   <path id="project.classpath">
>     <pathelement location="${build.classes}"/>
>     <pathelement
> location="${weblogic.basedir}/weblogic451sp13boot.jar"/>
>     <pathelement location="${weblogic.basedir}/classes/boot"/>
>     <pathelement location="${weblogic.basedir}/weblogic451sp13.jar"/>
>     <pathelement location="${weblogic.basedir}/lib/weblogicaux.jar"/>
>     <pathelement location="${weblogic.basedir}/classes"/>
>     <pathelement
> location="${weblogic.basedir}/mssqlserver4v70/classes"/>
>     <pathelement location="${project_env.JAVA_HOME}"/>
>     <pathelement location="${project_env.JAVA_HOME}/lib"/>
>     <fileset dir="${jar.dir}">
>       <include name="**/*.jar"/>
>       <include name="**/*.zip"/>
>     </fileset>
>     <fileset dir="${project_env.ANT_HOME}/lib">
>       <include name="**/*.jar"/>
>       <include name="**/*.zip"/>
>     </fileset>
>   </path>
>
> The issue is that tstamp must be in a task.  This would actually be
> better
> for me except that I must get build.classes into my classpath.  I have
> found
> that one cannot put a path task into a task.  So the question is how do
> I go
> about defining a class path that I can use on several calls to javac,
> given
> that I need to be in a task to define one of the elements of that class
> path?
>
> Thanks for your help.
>
>
> Patrick O'Hara
> Workscape, Inc
> N17 W24222 Riverwood Pl
> Waukesha, WI 53188-1162
> 262-408-3849
> 262-408-3840 Fax
> patrick.ohara@workscape.com
>  <<O'Hara, Patrick.vcf>>
>

> ATTACHMENT part 2 application/octet-stream name=O'Hara, Patrick.vcf



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



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

------_=_NextPart_001_01C0EF8B.BD3873E0--