build.xml和ant出错

时间:2012-09-11 19:24:14

标签: java ant compiler-errors

每当我尝试在build.xml中启动目标时,都会收到错误消息。这是我build.xml的相关部分。

<!-- init -->
<target name="init" description="Inizializza lo script Ant">
    <echo message="====== INIZIO TARGET INIT PER: ${target} ..." />
    <tstamp/>
    <loadproperties srcFile="buildfiles/build.properties"/> <!-- Line 83 -->
    <!-- Controllo che se non viene passato nessun parametro target lo imposto
     ad un valore di default che corrisponde alla variabile default_target presente
     nel build.properties-->
    <condition property="target" value="${default_target}">
        <not>
            <isset property="target"/>
        </not>
    </condition>
    <echo message="target init dopo il test " />
    <!--contiene prop. specifiche per l'ambiente ${target} -->
    <loadproperties srcFile="buildfiles/${target}.properties" />

    <mkdir dir="${dist}/${target}"/>  <!-- contiene il tar -->
    <mkdir dir="${build}/archives"/>
    <mkdir dir="${build}/archives/${target}"/> <!-- contiene il jar-->
    <property environment="env"/>

    <echo message="***********************************" />
    <echo message="Il pacchetto sara' creato per : ${target}" />
    <echo message="JDK: ${env.JAVA_HOME}"/>
    <echo message="***********************************" />
</target>

这是Eclipse控制台中的错误:

BUILD FAILED
C:\Users\amministratore\workspace_csi\servfci\build.xml:83: Unable to load file: sun.io.MalformedInputException

我使用java JDK 131.06。如何修复build.xml

0 个答案:

没有答案