Posso riprodurre questo problema mettendo un target
all'esterno dell'elemento project
che è richiesto nei file di build ant. L'errore indica che c'è un errore nel tuo file di build - qualcosa (un elemento target
) nel posto sbagliato.
Questa build tiri che di errore:
<?xml version="1.0"?>
<target name="wibble" />
<project name="stack_overflow">
</project>
considerando che il presente non:
<?xml version="1.0"?>
<project name="stack_overflow">
<target name="wibble" />
</project>
Nel messaggio di errore completo si dovrebbe ottenere un numero di riga per guidare l'utente al punto del file che necessitano di attenzione:
# line number here
# v
build.xml:2: Unexpected element "{}target" {antlib:org.apache.tools.ant}target
fonte
2010-08-27 07:05:46