2011-10-19 3 views
5

Il nuovo build.xml default ha la seguente sezione:build.xml version.tag per strumenti di sistema 14, sintassi?

<!-- Import the actual build file. 

     To customize existing targets, there are two options: 
     .... 
     (text removed for brevity) 
     .... 
     *********************** 
     ****** IMPORTANT ****** 
     *********************** 
     In all cases you must update the value of version-tag below to read 'custom' instead of an integer, 
     in order to avoid having your file be overridden by tools such as "android update project" 
    --> 
    <!-- version-tag: 1 --> 

E 'sufficiente sostituire il '1' con 'su misura' e lasciare la linea commentata al fine di fermare il file venga sovrascritto? O è necessario decommentarlo, e in tal caso qual è la sintassi corretta?

+0

Cosa vuoi dire "nuova build.xml default"? Quale strumento hai usato per generarlo? –

+0

@Alex - Il file ant_rules.xml che è stato importato automaticamente dal build.xml di un progetto negli SDK precedenti è stato sostituito da un 'build.xml' nella directory Ant dell'SDK. – NickT

risposta

6

Basta sostituire '1' con 'su misura':

<!-- version-tag: custom --> 
Problemi correlati