ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9668] - PVCS task fails with a MessageFormat parse error.
Date Thu, 06 Jun 2002 17:05:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9668>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9668

PVCS task fails with a MessageFormat parse error.





------- Additional Comments From rkhimasia@bcbsm.com  2002-06-06 17:05 -------
Here is the file.

<?xml version='1.0' encoding='utf-8'?>
<project name="PvcsTargets" default="pvcsGetTrunk" basedir="." >
    <description>
        This ant project labels and gets files from PVCS. 
        This project has targets to version label files, get files from PVCS.

        The addPvcsLabel target uses the PVCS PCLI command. This command
        needs a PCLI_ID environment vartiable set, to let PCLI can get 
        permissions to work on the PVCS project database.

        The targets in this file should be called from other files
        like build.xml
    </description>

    <target name="init" >
        <property file="antBuildGlobal.properties" />
        <property environment="myenv" />
        <tstamp>
            <format property="buildTime" pattern="MMM d, yyyy h:mm a" />
        </tstamp>
        <property name="repository" 
            value="\\snt210\DenisReEng\DenisTeam\PVCS" />

        <property name="pvcsLabel" value="" />
        <property name="tempPcliFile" value="tempPcliFile" />

        <property name="buildWorkspace" 
            value="'/@/Public/antBuild'" />
        <property name="vaTrunkWorkspace" 
            value="'/@/Public/VARunable/Trunk_Phase2_3'" />
        <property name="vaBranchBugFixWorkspace" 
            value="'/@/Public/VARunable/Branch_Phase1_BugFix'" />
    </target>

    <target name="pvcsListVersionedFiles" depends="init" >
        <delete quiet="true" file="${tempPcliFile}" />
        <exec executable="pcli"  >
            <arg line="run -ao${tempPcliFile} listversionedfiles -z -aw -
sp${buildWorkspace} -pr${repository}" />
        </exec>
        <replace file="${tempPcliFile}" token="\\" value="\\\" />
    </target>

    <target name="pvcsLabelProd" depends="init" >
        <exec executable="vcs" >
            <arg line="-y -rPROD -v${pvcsLabel} @${tempPcliFile}" />
        </exec>
    </target>

    <target name="pvcsLabelTrunk" depends="init" 
            description="label PVCS files on the trunk" >
        <antcall target="pvcsListVersionedFiles" />
        <antcall target="pvcsLabelProd" />
        <exec executable="vcs" >
            <arg line="-y -rQA_(aix101) -v${pvcsLabel} @${tempPcliFile}" />
        </exec>
        <exec executable="vcs" >
            <arg line="-y -rTest_(scratchy) -v${pvcsLabel} @${tempPcliFile}" />
        </exec>
        <antcall target="deleteTempPcliFile" />
    </target>

    <target name="pvcsLabelBranchProdFix" depends="init" 
            description="label PVCS files on the branch prodfix" >
        <antcall target="pvcsListVersionedFiles" />
        <antcall target="pvcsLabelProd" />
        <exec executable="vcs" >
            <arg line="-y -rprodfix_qa_(aix101) -v${pvcsLabel} 
@${tempPcliFile}" />
        </exec>
        <exec executable="vcs" >
            <arg line="-y -rprodfix_test_(scratchy) -v${pvcsLabel} 
@${tempPcliFile}" />
        </exec>
        <antcall target="deleteTempPcliFile" />
    </target>

    <target name="pvcsLabelBranchBcnReferal" depends="init" 
            description="label PVCS files on the branch Bcn Referal" >
        <antcall target="pvcsListVersionedFiles" />
        <antcall target="pvcsLabelProd" />
        <exec executable="vcs" >
            <arg line="-y -rbcnreferal_qa_(aix101) -v${pvcsLabel} 
@${tempPcliFile}" />
        </exec>
        <exec executable="vcs" >
            <arg line="-y -rbcnreferal_test_(scratchy) -v${pvcsLabel} 
@${tempPcliFile}" />
        </exec>
        <antcall target="deleteTempPcliFile" />
    </target>

    <target name="pvcsLabelBranchHippa1" depends="init" 
            description="label PVCS files on the branch Hippa1" >
        <antcall target="pvcsListVersionedFiles" />
        <antcall target="pvcsLabelProd" />
        <exec executable="vcs" >
            <arg line="-y -rhippa1_qa_(aix101) -v${pvcsLabel} 
@${tempPcliFile}" />
        </exec>
        <exec executable="vcs" >
            <arg line="-y -rhippa1_test_(scratchy) -v${pvcsLabel} 
@${tempPcliFile}" />
        </exec>
        <antcall target="deleteTempPcliFile" />
    </target>

    <target name="deleteTempPcliFile" depends="init" >
        <delete quiet="false" file="${tempPcliFile}" />
    </target>

    <target name="pvcsGet" depends="init" 
        description="gets files from PVCS" >
        <pvcs repository="'${repository}'" 
            workspace="${buildWorkspace}" 
          label="${pvcsLabel}" 
          filenameFormat="{0}-arc({1})"
          updateonly="true" >
            <pvcsproject name="'/denis3'" />
        </pvcs>
        <antcall target="insertBuildInfo" inheritAll="true" />
    </target>

    <target name="insertBuildInfo" depends="init" >
        <property name="bottomMenuHtml" 
            value="${docrootDir}/htmlTemp/bottomMenu.html" />
        <replace file="${bottomMenuHtml}" token="##AntReplace_BuildNumber##" 
            value="${pvcsLabel}" />
        <replace file="${bottomMenuHtml}" token="##AntReplace_BuildTime##" 
            value="${buildTime}" />
    </target>
</project>

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


Mime
View raw message