ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Close <os_mon...@yahoo.com>
Subject Re: VssGet and Labeling...
Date Fri, 09 Nov 2001 22:41:38 GMT
Nico

your suggestion worked like a champ. :)  Thanks.
here's what i have now:

<!-- delete old files, build file structure, etc...
-->

    <target name="extract" depends="prepare"
unless="VersionLabel"> 
        <echo message="Extracting latest from VSS..."
/>
        <vssget localPath="${sourceDir}"
        recursive="true" 
        login="LocalBuild, LocalBuild"
        vsspath="/MKTG"
        ssdir="${ssDir}\win32"
        writable="false"/>
    </target>	
    
    <target name="extractLabel" depends="extract"
if="VersionLabel"> 
        <echo message="Extracting Label:
${VersionLabel} from VSS..." />
        <vssget localPath="${sourceDir}"
        recursive="true" 
        login="LocalBuild, LocalBuild"
        vsspath="/MKTG"
        ssdir="${ssDir}\win32"
        label="${VersionLabel}"
        writable="false"/>
    </target>	

<!-- compile, jar, deploy... -->

if i execute: ant -DVersionLabel=1.0 
then the second target above does the extract.  
if i execute: ant
then the first does the extract.

thanks again

andy

> 
> --- Nico Seessle <nico@apache.org> wrote:
> > How about adding 'unless="VersionLabel"' to the
> > above?
> > 
> > If you can live with you label being "" (empty)
> > inside your buildfile, you
> > could also add a <property name="VersionLabel"
> > value=""/> above your
> > vssget-task and vssget should ignore the label.
> > 


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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


Mime
View raw message