You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
releasePrep: task defined in com.active.buildsupport.ant.ReleaseSupportPrep located in ${BUILDTOOLS_DIR}/ant/lib/buildsupport-0.0.8.jar;
version: task defined com.active.buildsupport.ant.BuildNumberSupport located in ${BUILDTOOLS_DIR}/ant/lib/buildsupport-0.0.8.jar
_publish-release(build-shared.xml)
clean: the same as step one;
init
-init
-classpath-init
-post-init
resolve(_ivy-init,init,_internal-resolve,_write-classpath): resolve dependencies with ivy
build(build-core.xml):
compile Java source files and save them to ${build.dir}/classes
copy resources files located in src/main/resources to ${build.dir}/classes
dist
main(init,resolve,build,_build-tests,_jar,codeine,_deploy-local): the most important part is the _deploy-local target
copy lib/config/webapp/classes/resources files to one temp dir based on target/runtime/core-server-*.zip
call -copy-project-files target in order to build optimised JavaScript/HTML/CSS
deploy it into local directory base on your OS
unix: ${user.home}/active(unix.xml)
windows: c:/creative(windows.xml)
_build-zip: generate zip file
test
_ivy-publish-release
finish-release(task-release-service.xml)
svn-path(build-shared.xml): execute svn info —xml . and extract the svn path
_finish-release(build-shared.xml): execute release task defined in com.active.buildsupport.ant.ReleaseSupport
install-release(task-release-service.xml): deploy it to remote machine
SCP zip source file to remote machine;
Email the change log to all;
Bootstrap Service Workflow: Stopping Service -> Uninstalling previous version -> Installing Service -> Update service.properties -> Starting Service
Build process of Frontend for New AUI Style Guide
The main ant task for it is -copy-project-files located in build.xml which depends on task of consumeArchHtmlForAUI, optimizeHtmlLess.
Consumes the arch-html artifact to be used in the AUI, ach-html is the zip file for AUI components.
unzip arch-html-1.0.0.0-SNAPSHOT.zip which is the latest version for that;
copy active/fnd/arch/ and active/fnd/aui/ to source dir(src/main/webapp)
Optimising HTML/JS/CSS in the webapp directory, the steps for optimisation shows as below:
Step 1: SetupOptimizeHtml
remove previous built files and setup a clean environment;
copy all files from src/main/webapp to temporary directory of target/optimize-html
Step 2 Build manifest for RequireJS: it’s defined in com.active.buildsupport.ant.html.CreateRequireManifestTask
generate compiled.require.manifest.js file which includes almost all of the AUI and endurance modules used by r.js
Step 3 Compile JavaScript: using r.js to run the RequireJS optimizer in Rhino env
resolve and tracing the dependencies;
compile all components(including AUI and Endurance components) into one file named compiled.js
Step 4 Minify JavaScript: minify compiled.js with Closure Compiler;
Step 5 GZip JavaScript: create a gzip version for compiled.min.js and output compiled.min.js.gz
Step 6 Combine LESS: Combine LESS files of src/main/webapp/main.less linked via ‘@import’ into one LESS file named combined.less;
Step 7 Compile LESS: compile combined.less file into compile.css in Rhino env with LESS;
Step 8 CompileCssSprites: Compile CSS images into one png file;
Step 9 Minify CSS: minify compiled.css with YUI Compressor and output compiled.min.css.
Step 10 GZip CSS: Create a gzip version for compiled.min.css and output compiled.min.css.gz
Step 11 Create Locales: it’s defined in com.active.buildsupport.ant.locales.CreateLocalesTask
creates the locales files from the _.properties files located in the subdirectories of the _src/main/resources/locale* directory
there will be one _.properties file created for each sub directory of the _src/main/resources/locale* directory.
copy locales to src/main/webapp/active/fnd/arch/locale
available locales: da_DK,de_AT,de_CH,de_DE,en_AU,en_CA,en_GB,en_IE,en_NZ,en_US,en_ZA,es_ES,es_MX,fr_CA,fr_CH,fr_FR,it_CH,it_IT,ja_JP,ko_KR,pt_BR,sv_SE,zh_CN,zh_HK,zh_SG,zh_TW
Step 12 Gzip Locales: Creates a gzip version for each property file
Step 13 copy optimised HTML/JS/CSS files into src/main/webapp and delete temporary files and directories generated during build process.
Files we have created
compiled.js: including almost all of common libraries and business codes, such as RequireJS, jQuery, Bootstrap, AUI Components, kinds of jQuery plugins(Typeahead, Address, etc…), and endurance components, but excluding Backbone.js and Underscore.js.
compiled.css: including AUI/Endurance Components styles and all of the business styles of AWE;
compiled.min.js: minified version of compiled.js;
compiled.min.css: minified version of compiled.css
Maybe you have noticed that it’s using LESS as the default css preprocessor, I guess it's because of that LESS is written in JavaScript and we could run it with Rhino env directly, also Bootstrap uses LESS instead of SASS.
Build process of Frontend for Old AUI Style Guide
It almost has the same process with New AUI style guide except it doesn’t handle LESS and include csssprites.
Step 1: SetupOptimizeHtml
Step 2: Build manifest for RequireJS
Step 3: Compile JavaScript
Step 4: Minify JavaScript
Step 5: Gzip JavaScript
Step 6: Compile CSS
Combine CSs files of src/main/webapp/main.css linked via ‘@import’ into one LESS file named compiled.css
Step 7: CompileCssSprites
Compile CSS images into one png file;
Step 8: Minify CSS
Step 9: Gzip CSS
Step 10: Create Locales
Step 11: Gzip Locales
Step 12: copy optimised files into src/main/webapp and clean
The text was updated successfully, but these errors were encountered:
Building Process
Build Tools
Ant
Buildfiles
I’m not very sure about the responsibility for every build file based on the tasks it had defined. It seems it scatters everywhere.
Dependency Manager Tool
Ivy
Build Process of Endurance
com.active.buildsupport.ant.ReleaseSupportPrep
located in ${BUILDTOOLS_DIR}/ant/lib/buildsupport-0.0.8.jar;com.active.buildsupport.ant.BuildNumberSupport
located in ${BUILDTOOLS_DIR}/ant/lib/buildsupport-0.0.8.jarsvn info —xml .
and extract the svn pathBuild process of Frontend for New AUI Style Guide
The main ant task for it is -copy-project-files located in build.xml which depends on task of consumeArchHtmlForAUI, optimizeHtmlLess.
com.active.buildsupport.ant.locales.CreateLocalesTask
Maybe you have noticed that it’s using LESS as the default css preprocessor, I guess it's because of that LESS is written in JavaScript and we could run it with Rhino env directly, also Bootstrap uses LESS instead of SASS.
Build process of Frontend for Old AUI Style Guide
It almost has the same process with New AUI style guide except it doesn’t handle LESS and include csssprites.
The text was updated successfully, but these errors were encountered: