| 139 | | |
| 140 | | |
| 141 | | |
| 142 | | |
| 143 | | |
| | 139 | タイトルがなんかおかしいけど、動作することは確認できた。 |
| | 140 | |
| | 141 | == Headless build == |
| | 142 | |
| | 143 | 今回の設定では、eclipse上でlinux x64版のCSSしか生成していないが、他の環境(Windows,Mac OSX,Linux)のbuildをまとめて行うこともできる。[[br]] |
| | 144 | eclipse上でもできるらしいが、今回は[http://www-linac.kek.jp/cont/epics/css/int/building_css_kek_internal.pdf ビルド手順書]の方法で行う。[[br]] |
| | 145 | |
| | 146 | 変更するファイルはcs-studio/products/KEK/plugins/org.csstudio.kek.buildにある。 |
| | 147 | |
| | 148 | === setting.sh === |
| | 149 | |
| | 150 | setting.sh は主に build するためのディレクトリ設定をする。[[br]] |
| | 151 | 今回は以下の設定をした。 |
| | 152 | |
| | 153 | {{{ |
| | 154 | export VERSION=3.2.16 |
| | 155 | export BASEDIR=${HOME}/css |
| | 156 | export TOP=${BASEDIR}/cs-studio |
| | 157 | export CYGDRIVE= |
| | 158 | export BUILDDIR=${BASEDIR}/CSSBuild |
| | 159 | export ECLIPSE_BASE=${BASEDIR} |
| | 160 | export DELTAPACK=${BASEDIR}/delta/eclipse |
| | 161 | export JAVA_HOME=${BASEDIR}/jdk1.7.0_67 |
| | 162 | PDE_VER=* |
| | 163 | }}} |
| | 164 | |
| | 165 | |
| | 166 | === css/build.properties === |
| | 167 | |
| | 168 | css/build.properties はbuildする環境(OS等)を設定するが、今回は修正しない。 |
| | 169 | |
| | 170 | === make.sh === |
| | 171 | |
| | 172 | make.sh は実際にbuildを行うためのスクリプト。[[br]] |
| | 173 | 今回必要なのは CSS だけなので、それだけを build するように設定を変更。 |
| | 174 | |
| | 175 | {{{ |
| | 176 | #for prod in alarmconfig alarmserver archiveengine css engineconfig jms2rdb |
| | 177 | for prod in css |
| | 178 | }}} |
| | 179 | |
| | 180 | === plugins.list === |
| | 181 | |
| | 182 | build に必要な plug-in を設定するファイル。[[br]] |
| | 183 | eclipseでのbuildで変更が必要だった箇所を修正。 |
| | 184 | |
| | 185 | {{{ |
| | 186 | org.csstudio.logbook.ui/** |
| | 187 | ###org.csstudio.sns.startuphelper/** |
| | 188 | org.csstudio.startup.helper/** |
| | 189 | }}} |
| | 190 | |
| | 191 | === build実行 === |
| | 192 | |
| | 193 | make.shを実行すると、Headless buildが始まる。 |
| | 194 | |
| | 195 | {{{ |
| | 196 | [michkawa@localhost org.csstudio.kek.build]$ ./make.sh |
| | 197 | Buildfile: /home/michkawa/css/cs-studio/products/KEK/plugins/org.csstudio.kek.build/build.xml |
| | 198 | |
| | 199 | clean: |
| | 200 | [delete] Deleting directory /home/michkawa/css/CSSBuild |
| | 201 | BUILD SUCCESSFUL |
| | 202 | |
| | 203 | BUILD SUCCESSFUL |
| | 204 | Total time: 0 seconds |
| | 205 | Fetching sources |
| | 206 | Buildfile: /home/michkawa/css/cs-studio/products/KEK/plugins/org.csstudio.kek.build/build.xml |
| | 207 | |
| | 208 | prepare: |
| | 209 | [mkdir] Created dir: /home/michkawa/css/CSSBuild/plugins |
| | 210 | [mkdir] Created dir: /home/michkawa/css/CSSBuild/features |
| | 211 | |
| | 212 | get_sources: |
| | 213 | [echo] Core plugins |
| | 214 | [copy] Copying 1624 files to /home/michkawa/css/CSSBuild/plugins |
| | 215 | [echo] Application plugins |
| | 216 | [copy] Copying 7315 files to /home/michkawa/css/CSSBuild/plugins |
| | 217 | [copy] Copied 1289 empty directories to 1 empty directory under /home/michkawa/css/CSSBuild/plugins |
| | 218 | [echo] SNS plugins |
| | 219 | [echo] SNS product |
| | 220 | [echo] KEK plugins |
| | 221 | [copy] Copying 89 files to /home/michkawa/css/CSSBuild/plugins |
| | 222 | [echo] KEK Features |
| | 223 | [copy] Copying 12 files to /home/michkawa/css/CSSBuild/features |
| | 224 | [echo] Core Features |
| | 225 | [copy] Copying 9 files to /home/michkawa/css/CSSBuild/features |
| | 226 | BUILD SUCCESSFUL |
| | 227 | |
| | 228 | BUILD SUCCESSFUL |
| | 229 | Total time: 4 seconds |
| | 230 | Building css Product |
| | 231 | Buildfile: /home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/productBuild/productBuild.xml |
| | 232 | |
| | 233 | main: |
| | 234 | |
| | 235 | preBuild: |
| | 236 | |
| | 237 | preSetup: |
| | 238 | |
| | 239 | checkLocalMaps: |
| | 240 | |
| | 241 | getMapFiles: |
| | 242 | |
| | 243 | postSetup: |
| | 244 | |
| | 245 | checkLocalBase: |
| | 246 | |
| | 247 | getBaseComponents: |
| | 248 | |
| | 249 | processRepos: |
| | 250 | |
| | 251 | generateFeature: |
| | 252 | |
| | 253 | fetch: |
| | 254 | |
| | 255 | generateFeature: |
| | 256 | [eclipse.generateFeature] Some inter-plug-in dependencies have not been satisfied. |
| | 257 | [eclipse.generateFeature] Bundle org.eclipse.core.filesystem.linux.x86_64: |
| | 258 | [eclipse.generateFeature] Another singleton version selected: org.eclipse.core.filesystem.linux.x86_64_1.2.0.v20110423-0524 |
| | 259 | [eclipse.generateFeature] Bundle org.eclipse.swt.gtk.linux.x86_64: |
| | 260 | [eclipse.generateFeature] Another singleton version selected: org.eclipse.swt.gtk.linux.x86_64_3.7.2.v3740f |
| | 261 | [eclipse.generateFeature] Bundle org.eclipse.core.net.linux.x86_64: |
| | 262 | [eclipse.generateFeature] Another singleton version selected: org.eclipse.core.net.linux.x86_64_1.1.0.I20110331-0827 |
| | 263 | [eclipse.generateFeature] Bundle org.eclipse.equinox.launcher.gtk.linux.x86_64: |
| | 264 | [eclipse.generateFeature] Another singleton version selected: org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505 |
| | 265 | [eclipse.generateFeature] Bundle org.csstudio.rap.core: |
| | 266 | [eclipse.generateFeature] Missing required plug-in org.eclipse.rap.ui_1.4.0. |
| | 267 | [eclipse.generateFeature] Bundle org.csstudio.rap.ui.util: |
| | 268 | [eclipse.generateFeature] Missing required plug-in org.eclipse.rap.ui_1.4.0. |
| | 269 | [eclipse.generateFeature] Missing required plug-in org.csstudio.rap.core_1.0.0. |
| | 270 | |
| | 271 | generate: |
| | 272 | |
| | 273 | preGenerate: |
| | 274 | |
| | 275 | allElements: |
| | 276 | |
| | 277 | allElementsDelegator: |
| | 278 | |
| | 279 | init: |
| | 280 | |
| | 281 | generateScript: |
| | 282 | [eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied. |
| | 283 | [eclipse.buildScript] Bundle org.eclipse.core.filesystem.linux.x86_64: |
| | 284 | [eclipse.buildScript] Another singleton version selected: org.eclipse.core.filesystem.linux.x86_64_1.2.0.v20110423-0524 |
| | 285 | [eclipse.buildScript] Bundle org.eclipse.swt.gtk.linux.x86_64: |
| | 286 | [eclipse.buildScript] Another singleton version selected: org.eclipse.swt.gtk.linux.x86_64_3.7.2.v3740f |
| | 287 | [eclipse.buildScript] Bundle org.eclipse.core.net.linux.x86_64: |
| | 288 | [eclipse.buildScript] Another singleton version selected: org.eclipse.core.net.linux.x86_64_1.1.0.I20110331-0827 |
| | 289 | [eclipse.buildScript] Bundle org.eclipse.equinox.launcher.gtk.linux.x86_64: |
| | 290 | [eclipse.buildScript] Another singleton version selected: org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505 |
| | 291 | [eclipse.buildScript] Bundle org.csstudio.rap.core: |
| | 292 | [eclipse.buildScript] Missing required plug-in org.eclipse.rap.ui_1.4.0. |
| | 293 | [eclipse.buildScript] Bundle org.csstudio.rap.ui.util: |
| | 294 | [eclipse.buildScript] Missing required plug-in org.eclipse.rap.ui_1.4.0. |
| | 295 | [eclipse.buildScript] Missing required plug-in org.csstudio.rap.core_1.0.0. |
| | 296 | |
| | 297 | BUILD FAILED |
| | 298 | /home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/productBuild/productBuild.xml:42: The following error occurred while executing this line: |
| | 299 | /home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/build.xml:91: The following error occurred while executing this line: |
| | 300 | /home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/templates/headless-build/customTargets.xml:12: The following error occurred while executing this line: |
| | 301 | /home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/productBuild/allElements.xml:20: The following error occurred while executing this line: |
| | 302 | /home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/genericTargets.xml:111: Processing inclusion from feature org.csstudio.kek.core.feature: Unable to find plug-in: org.csstudio.autocomplete.pvmanager.formula_0.0.0. Please check the error log for more details. |
| | 303 | |
| | 304 | Total time: 6 seconds |
| | 305 | An error has occurred. See the log file |
| | 306 | /home/michkawa/workspace/.metadata/.log. |
| | 307 | Buildfile: /home/michkawa/css/cs-studio/products/KEK/plugins/org.csstudio.kek.build/build.xml |
| | 308 | |
| | 309 | check_vars: |
| | 310 | |
| | 311 | zip_sources: |
| | 312 | [zip] Building zip: /home/michkawa/css/CSSBuild/css_kek_3.2.16-src.zip |
| | 313 | |
| | 314 | }}} |
| | 315 | |
| | 316 | エラーの最後で{{{org.csstudio.autocomplete.pvmanager.formula_0.0.0}}}がないとのことなので、関連のパッケージを追加。 |
| | 317 | |
| | 318 | {{{ |
| | 319 | org.csstudio.autocomplete.pvmanager.formula/** |
| | 320 | org.csstudio.autocomplete.pvmanager.loc/** |
| | 321 | org.csstudio.autocomplete.pvmanager.sim/** |
| | 322 | org.csstudio.autocomplete.pvmanager.loc/** |
| | 323 | org.csstudio.autocomplete.ui/** |
| | 324 | org.csstudio.autocomplete.ui.rcp/** |
| | 325 | }}} |
| | 326 | |
| | 327 | 再度、make.shを実行。[[br]] |
| | 328 | 今度は build 成功。[[br]] |
| | 329 | |
| | 330 | {{{css/CSSBuild/I.css_kek_3.2.16}}} にcss_kek_3.2.16-*.zipという各環境に対応したパッケージが作成された。 |
| | 331 | |
| | 332 | |