티스토리 뷰

반응형

asdoc

as문서작성

 

clean

빌드 삭제

 

ftp_upload

bin폴더를 ftp에 업로드

 

run_browser

로컬에서 브라우저로 실행

 

bulid.properties

# -----------------------------------------------------------------

# User-Defined Paths

#

# Modify these path values to reflect paths on your system

# -----------------------------------------------------------------

 

# The location of the Flex 2 SDK on your sytem.

flex3sdk.home.dir = C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.2.0

flex3sdk.bin.dir = C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.2.0/bin

flex3sdk.lib.dir = C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.2.0/frameworks/libs

 

# Note that the locale dir uses the {locale} token at the end to specify the directory

# of language-specific files. This is replaced by the compiler with the locale defined

# by the locale property below.

flex3sdk.locale = en_US

flex3sdk.locale.dir = C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.2.0/frameworks/locale/{locale}

 

asdoc.exe = ${flex3sdk.bin.dir}/asdoc.exe

compc.exe = ${flex3sdk.bin.dir}/compc.exe

mxmlc.exe = ${flex3sdk.bin.dir}/mxmlc.exe

 

# The debug player is necessary here because it writes trace statements to a flashlog.txt

# file. This allows us to examine the .txt file and determine the status of unit tests

# in an automated fashion.

flashDebugPlayer.exe = C:/Program Files/Adobe/Flex Builder 3 Plug-in/Player/10/win/FlashPlayer.exe

 

# Internet Explorer

iexplore.exe = C:/Program Files/Internet Explorer/iexplore.exe

 

# -----------------------------------------------------------------

# Project Paths - DO NOT MODIFY

# -----------------------------------------------------------------

build.dir = ${basedir}/build

src.dir = ${basedir}/src

bin.dir = ${basedir}/bin

docs.dir = ${basedir}/docs

 

#ftp

ftp.server = 192.168.0.1

ftp.dir = /dir

ftp.id = id

ftp.pwd = pwd

 

bulid.xml

<?xml version="1.0" encoding="utf-8"?>

<project name="AppProject" basedir="../">

<property file="./build/build.properties" />

 

<taskdef resource="flexTasks.tasks" classpath="${flex3sdk.home.dir}/ant/lib/flexTasks.jar"/>

<property name="FLEX_HOME" value="${flex3sdk.home.dir}"/>

 

<!-- properties 설정여부 확인 -->

<target name="properties">

<fail unless="asdoc.exe">The "asdoc.exe" property must be set in ${build.dir}/build.properties.</fail>

<fail unless="compc.exe">The "compc.exe" property must be set in ${build.dir}/build.properties.</fail>

<fail unless="mxmlc.exe">The "mxmlc.exe" property must be set in ${build.dir}/build.properties.</fail>

</target>

 

<!-- bin 폴더 생성 -->

<target name="mkdir bin">

<mkdir dir="${bin.dir}"/>

</target>

 

<!-- bin 폴더 삭제 -->

<target name="clean">

<delete includeEmptyDirs="true">

<fileset dir="${bin.dir}"/>

</delete>

</target>

 

<!-- compile -->

<target name="complie" depends="properties,mkdir bin">

<mxmlc

file="${src.dir}/AppProject.as"

output="${bin.dir}/AppProject.swf"

>

<!-- Get default compiler options. -->

<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>

 

<!-- List of path elements that form the roots of ActionScript

class hierarchies. -->

<source-path path-element="${FLEX_HOME}/frameworks"/>

 

<!-- List of SWC files or directories that contain SWC files. -->

<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">

<include name="libs" />

<include name="../bundles/{locale}" />

</compiler.library-path>

 

<!-- Set size of output SWF file. -->

<default-size width="640" height="480" />

</mxmlc>

<!--<exec executable="${mxmlc.exe}" dir="${basedir}">

<arg line="'${src.dir}/AppProject.as'" />

<arg line="-o '${bin.dir}/AppProject.swf'" />

</exec>-->

</target>

 

<!-- run_swf -->

<target name="run_swf" depends="complie">

<exec executable="${flashDebugPlayer.exe}" spawn="yes">

<arg line="${bin.dir}/AppProject.swf" />

</exec>

</target>

 

<!-- run_browser -->

<target name="run_browser" depends="complie">

<exec executable="${iexplore.exe}" spawn="yes">

<arg line="${basedir}/bin-debug/AppProject.html" />

</exec>

</target>

 

<!-- ASDoc -->

<target name="asdoc">

<!-- Clean out the contents of the doc directory, without delete "docs" -->

<!--

<delete includeemptydirs="true">

<fileset dir="${docs.dir}" includes="**/*" />

</delete>

-->

<mkdir dir="${docs.dir}"/>

 

<exec executable="${asdoc.exe}" spawn="no">

<!-- Place the documentation in the "docs" directory -->

<arg line="-o ${docs.dir}" />

 

<!-- Specify the main source path as "src" -->

<arg line="-sp ${src.dir}" />

 

<!-- Document all of the classes in the "src" tree -->

<arg line="-ds ${src.dir} " />

 

<!-- Include the library name in the window title -->

<arg line="-window-title 'ANT Doc' "/>

</exec>

</target>

 

<!-- ftp -->

<target name="ftp_upload">

<!--port="${ftp.port}"-->

<ftp server="${ftp.server}"

remotedir="${ftp.dir}"

userid="${ftp.id}"

password="${ftp.pwd}"

depends="yes"

binary="yes"

>

<fileset dir="${bin.dir}">

<include name="**/*.*"/>

</fileset>

</ftp>

</target>

</project>

 

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함