ASDoc
Flash - as2, as3 2016. 1. 6. 13:46http://vulcan9.tistory.com/83
http://cometkorea.tistory.com/70
http://blog.flashplatform.kr/210
build.xml
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | <project name="Test Project" basedir="." default="Build"> <property file="build.properties"></property> <!--<taskdef resource="flexTasks.tasks" classpath="flexTasks.jar" />--> <!-- Default 실행 --> <target name="Build" description="Build Test Project" depends="01.SWC Build, 02.AsDoc Build"> </target> <!-- 01.SWC Build --> <target name="clean_swc" description="SWC 파일을 제거합니다."> <delete file="${output.swc}" failonerror="false"></delete> </target> <target name="01.SWC Build" description="SWC 파일을 생성합니다." depends="clean_swc"> <exec executable="${compc.exe}"> <arg line='-source-path "${project.src}"'></arg> <!-- 라이브러리 경로 추가 위치 --> <arg line='-output "${compc.output}"'></arg> </exec> </target> <!-- 02.AsDoc Build --> <target name="clean_asdoc" description="AsDoc 디렉토리를 제거합니다."> <delete dir="${asdoc.output}" includeemptydirs="true" failonerror="false"></delete> <mkdir dir="${asdoc.output}"></mkdir> </target> <target name="02.AsDoc Build" description="asdoc를 생성합니다." depends="clean_asdoc, 04.Record Log File"> <echo message="Building ASDOC Source Documentation"></echo> <exec failonerror="true" executable="${asdoc.exe}"> <!-- Doc 소스 경로 --> <arg line='-doc-sources "${project.src}"'></arg> <arg line='-output "${asdoc.output}"'></arg> <!-- 컴파일 체크를 위한 소스 경로--> <arg line='-source-path "${project.src}"'></arg> <!-- asdoc 파라메터 --> <arg line='-window-title "${asdoc.title}"'></arg> <arg line='-main-title "${asdoc.title}"'></arg> <arg line='-footer "${asdoc.footer}"'></arg> </exec> <echo message="ASDocs created successfully"></echo> </target> <!--asdoc.exe Help--> <target name="03.help"> <echo message="Help"></echo> <exec failonerror="true" executable="${asdoc.exe}"> <arg line="-help"></arg> </exec> </target> <!-- 로그 출력 --> <target name="04.Record Log File"> <echo message="start the asdoc generation log"></echo> <record name="${asdoc.logfile}" action="start" append="true"></record> </target> </project> | cs |
build.properties
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #global.sdk = D:/SDK/flex_sdk_4.1 global.sdk = C:/Program Files/Adobe/Adobe Flash Builder 4.7 (64 Bit)/sdks/4.6.0 global.libs = ${global.sdk}/frameworks/libs project.root = ../ project.src = src #project.libs = libs # SWC Compile compc.exe = ${global.sdk}/bin/compc.exe compc.output = release_build/Test.swc # AsDoc asdoc.exe = ${global.sdk}/bin/asdoc.exe asdoc.output = release_build/asDoc asdoc.title = Test Project asdoc.footer = Create by HWANG EUIJUNG. asdoc.logfile = ${asdoc.output}/asdoc-log.txt | cs |