利用者向け情報

開発者向け情報

[sandbox.akabana]/tags/2012-02-20/yui-frameworks-1.5.0/yui-frameworks-builds/build-logging.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1718 - (show annotations)
Mon Feb 20 11:46:07 2012 JST (15 months, 4 weeks ago) by e1arkw
File MIME type: text/xml
File size: 10611 byte(s)
ver.1.5 release
1 <?xml version="1.0" encoding="utf-8"?>
2 <project name="yui-logging" basedir="." default="all">
3 <!-- -->
4 <property file="flex45.properties" />
5 <property file="build.properties" />
6 <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}${file.separator}ant${file.separator}lib${file.separator}flexTasks.jar" />
7
8 <!-- -->
9 <target name="all">
10 <property name="projectdir" value="${PROJECT_WORKSPACE}${file.separator}${ant.project.name}"/>
11 <projectInit projectname="${ant.project.name}" projectdir="${projectdir}"/>
12 <projectAddSubProject projectdir="${projectdir}" subprojectdir="..${file.separator}yui-logging"/>
13 <projectCompilePrepare projectdir="${projectdir}"/>
14 <projectCompileWithFlexLibrary projectname="${ant.project.name}" projectdir="${projectdir}"/>
15 <projectRsl projectname="${ant.project.name}" projectdir="${projectdir}"/>
16 </target>
17
18
19 <!-- -->
20 <macrodef name="projectInit">
21 <attribute name="projectname" />
22 <attribute name="projectdir" />
23 <sequential>
24 <echo message="@{projectname} Project initialize at @{projectdir}." />
25 <delete dir="@{projectdir}" />
26 <mkdir dir="@{projectdir}" />
27 <mkdir dir="${projectdir}${FLEX_SRC}"/>
28 <mkdir dir="${projectdir}${FLEX_RESOURCES}"/>
29 </sequential>
30 </macrodef>
31
32
33 <macrodef name="projectAddSubProject">
34 <attribute name="projectdir" />
35 <attribute name="subprojectdir" />
36 <sequential>
37 <echo message="Add Project @{projectdir}" />
38
39 <!-- -->
40 <echo message="Add Include File" />
41 <property name="project-includes-config" value="@{projectdir}${FLEX_INCLUDE_CONFIG_PATH}" />
42
43 <concat destfile="${project-includes-config}" fixlastline="true" append="true" encoding="utf-8">
44 <filelist>
45 <file name="@{subprojectdir}${file.separator}${FLEX_LIB_PROPERTIES}" />
46 </filelist>
47 </concat>
48 <echo message="@{subprojectdir}${file.separator}${FLEX_LIB_PROPERTIES} add to ${project-includes-config}." />
49
50 <!-- -->
51 <echo message="Add Manifest File" />
52 <property name="project-manifest" value="@{projectdir}${FLEX_MANIFEST_PATH}" />
53
54 <concat destfile="${project-manifest}" fixlastline="true" append="true" encoding="utf-8">
55 <filelist>
56 <file name="@{subprojectdir}${FLEX_MANIFEST_PATH}" />
57 </filelist>
58 </concat>
59 <echo message="@{subprojectdir}${FLEX_MANIFEST_PATH} add to ${project-manifest}." />
60
61 <!-- -->
62 <echo message="Add Defaults CSS File" />
63 <property name="project-defaults_css" value="@{projectdir}${FLEX_DEFAULT_CSS_PATH}" />
64
65 <concat destfile="${project-defaults_css}" fixlastline="true" append="true" encoding="utf-8">
66 <filelist>
67 <file name="@{subprojectdir}${FLEX_DEFAULT_CSS_PATH}" />
68 </filelist>
69 </concat>
70 <echo message="@{subprojectdir}${FLEX_DEFAULT_CSS_PATH} add to ${project-defaults_css}." />
71
72 <!-- -->
73 <echo message="Copy Sources" />
74 <copy todir="@{projectdir}${FLEX_SRC}" overwrite="true">
75 <fileset dir="@{subprojectdir}${FLEX_SRC}">
76 <exclude name="*Classes.as" />
77 <exclude name="*.xml" />
78 <exclude name="*.properties" />
79 </fileset>
80 </copy>
81 <copy todir="@{projectdir}${FLEX_LOCALE}" overwrite="true">
82 <fileset dir="@{subprojectdir}${FLEX_LOCALE}">
83 </fileset>
84 </copy>
85 </sequential>
86 </macrodef>
87
88 <macrodef name="projectCompilePrepare">
89 <attribute name="projectdir" />
90 <sequential>
91
92 <echo message="Compile on @{projectdir}${FLEX_SWC_OUTPUT}${FLEX_SRC}." />
93
94 <property name="project-includes-config" value="@{projectdir}${file.separator}${FLEX_SWC_OUTPUT}${file.separator}${FLEX_INCLUDE_CONFIG_PATH}" />
95
96 <replaceregexp file="${project-includes-config}" replace="&lt;includeClasses&gt;&lt;/includeClasses&gt;" flags="gs" byline="false">
97 <regexp pattern="&lt;includeClasses\s*/&gt;" />
98 </replaceregexp>
99
100 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
101 <regexp pattern="&lt;/includeClasses.*?includeClasses&gt;" />
102 </replaceregexp>
103
104 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
105 <regexp pattern="&lt;includeResources.*?&lt;/namespaceManifests&gt;" />
106 </replaceregexp>
107
108 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
109 <regexp pattern="&lt;includeResources.*/&gt;" />
110 </replaceregexp>
111
112 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
113 <regexp pattern="&lt;namespaceManifests.*/&gt;" />
114 </replaceregexp>
115
116 <replaceregexp file="${project-includes-config}" replace="flex-config" flags="gs" byline="true">
117 <regexp pattern="flexLibProperties" />
118 </replaceregexp>
119
120 <replaceregexp file="${project-includes-config}" replace="flex-config xmlns=&quot;http://www.adobe.com/2006/flex-config&quot;" flags="gs" byline="true">
121 <regexp pattern="flex-config version=&quot;.+&quot;" />
122 </replaceregexp>
123
124 <replaceregexp file="${project-includes-config}" replace="includes" flags="gs" byline="true">
125 <regexp pattern="includeClasses" />
126 </replaceregexp>
127
128 <replaceregexp file="${project-includes-config}" replace="&lt;symbol&gt;" flags="gs" byline="true">
129 <regexp pattern="&lt;classEntry path=&quot;" />
130 </replaceregexp>
131
132 <replaceregexp file="${project-includes-config}" replace="&lt;/symbol&gt;" flags="gs" byline="false">
133 <regexp pattern="&quot;/&gt;" />
134 </replaceregexp>
135
136 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
137 <regexp pattern="${line.separator}" />
138 </replaceregexp>
139
140 <echo message="Check Include File is ${project-includes-config}." />
141
142 <property name="project-manifest" value="@{projectdir}${file.separator}${FLEX_SWC_OUTPUT}${file.separator}${FLEX_MANIFEST_PATH}" />
143
144 <replaceregexp file="${project-manifest}" replace="" flags="gs" byline="false">
145 <regexp pattern="&lt;/componentPackage&gt;.*?&lt;componentPackage&gt;" />
146 </replaceregexp>
147
148 <replaceregexp file="${project-manifest}" replace="" flags="gs" byline="false">
149 <regexp pattern="${line.separator}" />
150 </replaceregexp>
151
152 </sequential>
153 </macrodef>
154
155 <macrodef name="projectCompileWithFlexLibrary">
156 <attribute name="projectname" />
157 <attribute name="projectdir" />
158 <sequential>
159 <property name="project-full-name" value="@{projectname}-${LIB_VERSION}" />
160
161 <compc output="@{projectdir}${FLEX_OUTPUT}${file.separator}${project-full-name}${FLEX_SWC_SUFFIX}" compute-digest="true" incremental="false" debug="${LIB_DEBUG_MODE}" optimize="${LIB_OPTIMIZE}" target-player="10.2" locale="">
162 <define name="CONFIG::DEBUG" value="${LIB_DEBUG_MODE}" />
163 <define name="CONFIG::DEBUG_EVENT" value="false" />
164 <define name="CONFIG::FP9" value="false" />
165 <define name="CONFIG::FP10" value="true" />
166 <define name="CONFIG::UNCAUGHT_ERROR_EVENT" value="false" />
167 <define name="CONFIG::UNCAUGHT_ERROR_GLOBAL" value="true" />
168 <load-config filename="${FLEX_HOME}${file.separator}frameworks${file.separator}flex-config.xml" />
169 <load-config filename="@{projectdir}${FLEX_INCLUDE_CONFIG_PATH}" />
170
171 <library-path dir="${PROJECT_WORKSPACE}" append="true">
172 <include name="**/yui-frameworks-fx4-fp10-${LIB_VERSION}.swc" />
173 </library-path>
174
175 <source-path path-element="${projectdir}${FLEX_SRC}" />
176
177 <include-namespaces uri="${LIB_NAMESPACE}" />
178
179 <namespace uri="${LIB_NAMESPACE}" manifest="@{projectdir}${FLEX_MANIFEST_PATH}" />
180
181 <external-library-path dir="${FLEX_FRAMEWORK}" append="true">
182 <include name="libs" />
183 </external-library-path>
184 <external-library-path dir="${PROJECT_WORKSPACE}" append="true">
185 <include name="**/yui-frameworks-fx4-fp10-${LIB_VERSION}.swc" />
186 </external-library-path>
187 </compc>
188 </sequential>
189 </macrodef>
190
191 <macrodef name="projectRsl">
192 <attribute name="projectname" />
193 <attribute name="projectdir" />
194 <sequential>
195 <property name="project-full-name" value="@{projectname}-${LIB_VERSION}" />
196 <property name="project-output" value="@{projectdir}${FLEX_OUTPUT}${file.separator}${project-full-name}" />
197 <property name="project-output-swc" value="${project-output}${FLEX_SWC_SUFFIX}" />
198 <property name="project-output-swf" value="${project-output}${FLEX_SWF_SUFFIX}" />
199 <unzip src="${project-output-swc}" dest="${project-output}" />
200 <java jar="${FLEX_HOME}${file.separator}lib${file.separator}optimizer.jar" fork="true" failonerror="true">
201 <jvmarg line="-ea -DAS3 -DAVMPLUS -Dflexlib='${FLEX_HOME}${file.separator}frameworks' -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false" />
202 <arg line="'${project-output}${file.separator}library.swf' --output '${project-output-swf}' --keep-as3-metadata='Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient,RemoteClass' " />
203 </java>
204 <java jar="${FLEX_HOME}${file.separator}lib${file.separator}digest.jar" fork="true" failonerror="true">
205 <jvmarg line="-ea -DAS3 -DAVMPLUS -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false" />
206 <arg line="--digest.rsl-file '${project-output-swf}' --digest.swc-path '${project-output-swc}'" />
207 </java>
208 </sequential>
209 </macrodef>
210 </project>

Repository Top
ViewVC Help  
ViewVC logotype
Powered by ViewVC