2011-12-02 106 views
1

當我用gradle --gui啓動gui時,我可以在收藏夾選項卡上導出和導入我的設置。它會被寫入選定文件夾中的*.favorite-tasks,但下次啓動gui時將不會加載。 userguide說:「最好從您的gradle項目目錄運行此命令,以便將UI的設置存儲在您的項目目錄中」,但我看不到任何創建的新文件。我檢查了~/.gradle<project>/.gradle目錄。那麼這個設置文件默認位於哪裏?我應該添加一個條目到我的settings.gradle文件?gradle gui設置的位置

+0

您正在使用什麼版本的Gradle? –

+0

Gradle 1.0-里程碑-6 –

回答

0

With Gradle 1.1它工作得很好。它在運行gradle --gui後在項目文件夾中創建gradle-app.setting文件。可能是你有權限問題?

<?xml version="1.0" encoding="UTF-8"?> 

<root> 
    <setting name="task-tab"> 
    <setting name="show-description" value="true"/> 
    </setting> 
    <setting name="favorites-tab"> 
    <setting name="favorites"> 
     <setting name="favorite"> 
     <setting name="full-command-line" value="clean build"/> 
     <setting name="display-name" value="clean build"/> 
     <setting name="show-output" value="false"/> 
     </setting> 
     <setting name="favorite"> 
     <setting name="full-command-line" value="generate"/> 
     <setting name="display-name" value="generate"/> 
     <setting name="show-output" value="true"/> 
     </setting> 
    </setting> 
    </setting> 
    <setting name="command_line-tab"/> 
    <setting name="setup-tab"> 
    <setting name="setup"> 
     <setting name="custom-gradle-executor"/> 
     <setting name="current-directory" value="...."/> 
     <setting name="log-level" value="LIFECYCLE"/> 
    </setting> 
    </setting> 
    <setting name="Application_window-id"> 
    <setting name="window_x" value="60"/> 
    <setting name="window_y" value="60"/> 
    <setting name="window_width" value="780"/> 
    <setting name="window_height" value="800"/> 
    <setting name="extended-state" value="0"/> 
    </setting> 
    <setting name="main_panel"> 
    <setting name="current-tab" value="Task Tree"/> 
    </setting> 
</root>