Changeset 107

Show
Ignore:
Timestamp:
01/26/06 20:36:14 (5 years ago)
Author:
anonymous
Message:

r1217@wanderer: kama | 2006-01-26 17:50:04 +0100

  • Fixed Bug in Mirror command
    • ordering of the option changed.
  • Ant Script not getting
    the environment from the shell script
  • Mirroring in the Ant script is working.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • antsvk/trunk/src/com/soebes/antsvk/cli/command/MirrorCommand.java

    r45 r107  
    198198                cmd.createArgument().setValue(MI_OPTION_UPGRADE); 
    199199        } 
     200        if (hasUrl()) { 
     201                cmd.createArgument().setValue(getUrl()); 
     202        } 
    200203        if (hasDepotPath()) { 
    201204                cmd.createArgument().setValue(getDepotPath()); 
    202         } 
    203         if (hasUrl()) { 
    204                 cmd.createArgument().setValue(getUrl()); 
    205205        } 
    206206    } 
  • antsvk/trunk/testsuite.sh

    r106 r107  
    124124echo "- Commit Message from File" >CommitMessageFile 
    125125echo "-------------------ANT SCRIPT --------------------------------------------" 
     126export REPOSLOCAL=$REPOSLOCAL 
     127export REPOSREMOTE=$REPOSREMOTE 
    126128ant -f testsuite.xml  testsuite 
    127129# 
  • antsvk/trunk/testsuite.xml

    r78 r107  
    159159 
    160160        <target name="svkMirror"> 
     161                <echo>List the mirrored parts</echo> 
    161162                <svkMirror list="true"/> 
    162         </target> 
    163  
    164 <!-- an option list does not exist --> 
     163                <echo>Mirror ${env.REPOSLOCAL} to //ReposLocal/trunk</echo> 
     164                <svkMirror url="${env.REPOSLOCAL}" depotpath="//ReposLocal/trunk"/> 
     165                <echo>List the mirrored parts</echo> 
     166                <svkMirror list="true"/> 
     167        </target> 
     168 
    165169        <target name="svkMkdir"> 
    166170                <svkMkdir path="//mkdir1" message="- Nachricht"/> 
     
    195199        </target> 
    196200 
     201        <target name="info"> 
     202                <echo>=====>>>> REPOSLOCAL=${env.REPOSLOCAL}</echo> 
     203                <echo>=====>>>> REPOSREMOTE=${env.REPOSREMOTE}</echo> 
     204        </target> 
     205 
    197206        <target name="testsuite" depends="useTask,svkLog,svkMkdir,svkMirror"> 
    198207        </target>