티스토리 뷰
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>
'Knowledge' 카테고리의 다른 글
nhn commerce(엔에이치엔 커머스) godomall(고도몰) robots.txt 설정 (0) | 2023.02.13 |
---|---|
Tistory(티스토리) robots.txt(검색로봇) 설정 (0) | 2023.01.21 |
Netbeans(넷빈즈) mac(맥) 단축키 (0) | 2023.01.04 |
Synology(시놀로지) NAS(나스) RAID(레이드) (1) | 2023.01.03 |
Windows(윈도우) msi 파일 관리자 권한 실행 (0) | 2023.01.03 |