0

Windows 7 で動作するラップトップでプロジェクトをセットアップしようとしています。プロジェクトをビルドできません。エラーがスローされます。

BUILD FAILED
C:\Projects\apsrtc-oprs\src\build.xml:118: Basedir C:\Projects\apsrtc-oprs\src\Projectsapsrtc-oprs\src\components does not exist

じぶんのbuild.properties

#
# For developers/PC pls update the project.base and deploy.dir accordingly in the build.properties file
# Donot Modify or change the build.properties.console file, use the template file instead...
#
# To avoid ant quirks, the project.base here must be a full absolute path

project.base=C:\Projects\apsrtc-oprs

# Deployment directory
deploy.dir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps
cxf.home=C:\Projects\apache-cxf-2.6.0

# Log files
log.file.path.windows=C:\Projects\apsrtc-oprs\dist\logs\log4j.log
project.keystore.pwd=AbhS!g4n9Jar0Prod6O3P3R4S5

じぶんのbuild.xml

<project name="APSRTC_project" default="build" basedir=".">

    <!-- Read the system environment variables and stores them in properties, -->
    <!-- prefixed with "env.". -->
    <property environment="env."/>

    <!-- define all settings for different kinds of builds -->
    &load-flag-targets;

    <!-- setup targets to options -->
    <target name="--init">
        <tstamp />
        <copy file="build.properties.console" tofile="build.properties" overwrite="false"/>

        <!-- The build.properties file defines the project base and easuite-lib directories -->
        <!-- This must be loaded before the &set-properties; inclusion -->
        <property file="./build.properties"/>
        <echoproperties prefix="env." destfile="env.properties"/>
    </target>

    <!-- invokes build script to clean apps and components  -->
    <target name="clean" depends="--init">
        <!-- set the properties based on the build flags -->
        &set-properties;

        <ant dir="${project.base}/src/components" target="clean"/>
        <ant dir="${project.base}/src/apps" target="clean"/>
    </target>

プロジェクトをクリーンアップしようとしていますが、上記のエラーが発生します

 <ant dir="${project.base}/src/components" target="clean"/>

Build.properties ファイル内の Basedir およびその他の関連パスのパスを変更すると、Centos オペレーティング システムで正常に動作します。正確にどこが間違っているのですか?

ありがとう

4

1 に答える 1

0

'C:\Projects\apsrtc-oprs\src\Projectsapsrtc-oprs\src\components'はの結果のようです${project.base}/src/components。build.propertiesファイルを調達しているかどうかを確認してください。

命名規則を見ると、に「/」が必要であるように見えるので、次Projectsapsrtc-oprsのようになります。Projects/apsrtc-oprs

于 2012-10-30T07:48:16.983 に答える