| gadzhimari |
08.01.2013 16:03 |
build failed: File does not exist
Вложений: 1
Возникла проблема при компиляции билд-файла в FlashBuilder 4.7 выходит ошибка:
Код:
Buildfile: /Users/gadzimari/Documents/Adobe Flash Builder 4.7/Flex_Ant_Tasks/build.xml
init:
[delete] Deleting directory /Users/gadzimari/Documents/Adobe Flash Builder 4.7/Flex_Ant_Tasks/DEPLOY
[mkdir] Created dir: /Users/gadzimari/Documents/Adobe Flash Builder 4.7/Flex_Ant_Tasks/DEPLOY
compile flex project:
BUILD FAILED
/Users/gadzimari/Documents/Adobe Flash Builder 4.7/Flex_Ant_Tasks/build.xml:17: File does not exist: mxmlc.jar
При компиляции в командной строке та же самая ошибка.
Версия Ant 1.8.2.
Версия Flex SDK 4.6.0
build.xml
Код:
<project name="Flex Ant Tasks Build Script" default="compile flex project">
<!-- load previously defined configuration properties file -->
<property file="build.properties" />
<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
<taskdef resource="flexTasks.tasks" classpath="${basedir}/libs/flexTasks.jar"/>
<!-- delete and recreate the DEPLOY dir -->
<target name="init">
<delete dir="${DEPLOY_DIR}" />
<mkdir dir="${DEPLOY_DIR}" />
</target>
<!-- Build and output the Main.swf-->
<target name="compile flex project" depends="init">
<mxmlc file="${SRC_DIR}/Main.mxml" output="${DEPLOY_DIR}/Main.swf">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<compiler.debug>false</compiler.debug>
</mxmlc>
</target>
</project>
build.properties
Код:
# change this to your Flex SDK directory path
FLEX_HOME=/Applications/Adobe Flash Builder 4.7/sdks
# this points to your project's src directory
# {$basedir} is a default variable that can be used in any Ant script
# and it points to the project's root folder [ Flex_Ant_Tasks ] in this case
SRC_DIR =${basedir}/src
# points to the project's libs directory
LIBS_DIR =${basedir}/libs
# this is the folder we want to publish the swf to
DEPLOY_DIR = ${basedir}/DEPLOY
UPD: Проблема решена. Из-за невнимательности забыл указать путь к конкретной версии sdk. Т.е. вместо
Код:
FLEX_HOME=/Applications/Adobe Flash Builder 4.7/sdks
нужно
Код:
FLEX_HOME=/Applications/Adobe Flash Builder 4.7/sdks/4.6.0
|