我們通過Microsoft Team Foundation Server(TFS)管理我們的項目以進行源代碼管理。IBM Worklight 6.0 - Android構建錯誤
當Ant構建腳本做後執行「全部生成和部署」的工作燈項目,我看到這個錯誤:
Buildfile: C:\Users\ren04\Documents\Workspaces\MCAMWorkspace\MCAMWorklightPOCJQ\apps\Fourcast\android\native.externalToolBuilders\wlprebuild.xml
run:
BUILD FAILED
C:\Users\ren04\Documents\Workspaces\MCAMWorkspace\MCAMWorklightPOCJQ\apps\Fourcast\android\native.externalToolBuilders\wlprebuild.xml:10: Can not change modification date of read-only file C:\Users\ren04\Documents\Workspaces\MCAMWorkspace\MCAMWorklightPOCJQ\apps\Fourcast\android\native\res\xml\config.xml
Total time: 342 milliseconds
這些wlprebuild.xml Ant腳本工作燈產生的內容,這會觸發錯誤:
<project name="wlprebuild" basedir="." default="run">
<!-- Licensed Materials - Property of IBM
5725-G92 (C) Copyright IBM Corp. 2006, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or
disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
<!-- This is worklight file that change timestamp of the AndroidManifest.xml when running as android project -->
<target name="run">
<touch file="../res/xml/config.xml" verbose="false"/>
</target>
</project>
很顯然,當螞蟻嘗試「觸摸」在TFS管理的Android工作燈項目config.xml文件,它是無法修改的時間戳。這是因爲該文件是隻讀的,並且由TFS管理爲只讀文件,直到它在編輯器中修改(此時它從源代碼存儲庫簽出並變爲可編輯)。
我的問題是config.xml文件的'touch'用途是什麼目的,以及它引起的錯誤是我們需要解決的問題?
此問題是否解決?請標記爲已回答。 –