ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jane.S...@nokia.com>
Subject Help on outputproperty
Date Tue, 14 May 2002 21:41:58 GMT
Hi all, 

I am using ant.
I tried to use outputproperty as exclude name when I do copy, but the outputproperty always
empty.
I don't know why?


Y:\frem_base>ct lsprivate -other -invob /frem_docs
\frem_docs\Documents\x
\frem_docs\Documents\y

I want to exclude those two files when I do the copy, because outputproperty is empty,
so I copy those two files. 

build.xml
    <exec  executable="cleartool" outputproperty="${private.file}"  >
        <arg line="lsprivate -other -invob /frem_docs" />
    </exec>
    <echo> outputproperty = ${private.file} </echo>
    <mkdir dir="${{project.docs}"/>
    <copy todir="${project.docs}" preservelastmodified="yes" >
      <fileset dir="/frem_docs/documents" >
        <exclude name="${private.file}" />
      </fileset>
    </copy>


Y:\frem_base>ant copydocs
Buildfile: build.xml

copydocs:
     [echo] This target is supported on NT/Win2K only
     [move] Moved 1 empty directories to C:\project\Documents_previous
     [echo]  outputproperty =  
     [copy] Copying 63 files to C:\project\Documents
     [copy] Copied 2 empty directories to C:\project\Documents

BUILD SUCCESSFUL

Thank you in advance.

Jane

--
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