2011-10-27 8 views
5

vorrei definire svnSetting a livello globale nel mio build.xml script ant:Definire svnSetting globalmente

<project name="helloworld" basedir="." default="helloworld"> 
    <svnSetting 
     javahl="false" 
     svnkit="true" 
     username="guest" 
     password="" 
     id="svn.settings" 
    /> 
    ... 
</project> 

ma eclisse dice chiaramente:

Problema: non è riuscito a creare un'attività o digitare svnSetting Causa: il nome non è definito.

Esiste la possibilità di definire svnSetting direttamente sotto progetto e non all'interno di target?

risposta

6

Si dovrebbe aggiungere typedef allo script ant:

<project name="helloworld" basedir="." default="helloworld"> 
    <path id="path.svnant"> 
     <pathelement location="${basedir}/svnant.jar"/> 
     <pathelement location="${basedir}/svnClientAdapter.jar"/> 
    </path> 
    <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" 
      classpathref="path.svnant"/> 

si può leggere questo article per maggiori dettagli.

+0

Args, ho già un typedef MA l'ho avuto sotto svnSetting ... spostato svnImpostando sotto typedef e tutto funziona ora. Grazie! – burnersk

Problemi correlati