0

私のbuild.xmlには...

<property name="cvs.directory" value="MyProj/build" />



<target name="CVS.Commit" depends="login">
  <echo>Commiting EAR file to CVS....</echo>
  <cvs command="commit abc.ear" cvsRoot="${cvs.directory}" quiet="true" failonerror="false"/>
   </target>

以下のエラーが発生します。

[echo] Commiting EAR file to CVS....
  [cvs] cvs commit: CVSROOT "MyProj/build" must be an absolute pathname
  [cvs] cvs [commit aborted]: Bad CVSROOT.

MyProj - cvs の HEAD 内にあり、古いバージョンの abc.ear が既にある 'build' ディレクトリがあります。

助言がありますか?ありがとう!

4

1 に答える 1

0

CVS ディレクトリ プロパティを次のように変更します。

<property name="cvs.directory" location="MyProj/build" />

これにより、ディレクトリ名が絶対になります

于 2013-01-22T18:47:28.087 に答える