You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nathan Coast <na...@levelseas.com> on 2001/12/13 13:13:42 UTC

VSS & inheritall="false"

Hi,

I had a problem a few days ago caused by not explicitly stating
inheritall=false when calling other build files.  That fixed the origingal
problem but has created another.

file1.xml calls build-generic.xml

        <ant antfile="build-generic.xml" target="get.version">
            <property name="component.name" value="lsx-ejb"/>
            <property name="project.branch" value="Branch_4_0"/>
            <property name="component.version" value="0_0_6"/>
         </ant>

build-generic.xml contains:

    <target name="get.version" if="specified.version" depends="init">    

        <property name="get.version.args" value="get
\$/${project.branch}/components/${component.name} -R -GF -GCK -I- -Y
-VL${component.version}"/>
        <echo message="args: ${get.version.args}"/>
        <exec executable="${vss.home}\ss.exe" os="${os.name}">
            <env key="ssdir" value="\\victory\code"/>
            <arg line="${get.version.args}"/>
        </exec>

	</target>

when file1.xml has inheritall="false" the message in get.version displays
correctly but nothing else happens!  When file1.xml has inheritall="true"
(or is omitted) files are retrieved from VSS but errors occur due to
properties not being updated. (during some builds, there are numerous calls
to get.version for different components).  Anyone got any ideas as to why
the exec target does nothing (not even any error messages).  Or anything I
should try to identify the problem.

Thanks Nathan



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper at LevelSeas for the presence of computer viruses.

**********************************************************************

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: VSS & inheritall="false"

Posted by Diane Holt <ho...@yahoo.com>.
Try running ant with the -verbose flag to see if the <exec> runs and what
the command-line for it looks like if it does.

Diane


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



__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>