0012196: build translations of mc v2 apps without js code
authorPhilipp Schüle <p.schuele@metaways.de>
Mon, 12 Sep 2016 07:09:30 +0000 (09:09 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Mon, 12 Sep 2016 08:39:26 +0000 (10:39 +0200)
also adds some more echos

https://forge.tine20.org/view.php?id=12196

Change-Id: I8a077c6a27b9070b549bc879c3e4db609e4f11a2
Reviewed-on: http://gerrit.tine20.com/customers/3558
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/build.xml

index 79644ee..19035d4 100644 (file)
         <foreach param="name" absparam="path" target="prepared-build-module">
             <fileset dir=".">
                 <type type="dir" />
+                <!-- build all apps -->
                 <include name="*" />
+
+                <!-- only build a single app -->
+                <!--include name="ExampleApplication" /-->
+
                 <exclude name="/" />
                 <exclude name="*.*" />
                 <exclude name=".tx" />
         <available file="${builddir}/${name}/js/webpack.config.js" property="webpack" value="Yes"/>
 
 
-        <!-- do jsb2tk build -->
+        <echo msg="Do jsb2tk build..." />
         <jsb2tk-build appName="${name}" />
 
-        <!-- replace buildstuff -->
+        <echo message="Replace buildstuff..." />
         <reflexive>
             <filterchain>
                 <replaceregexp>
             </fileset>
         </reflexive>
 
-        <!-- debug mode for debug files -->
+        <echo msg="Apply debug mode for debug files..." />
         <reflexive>
             <filterchain>
                 <replaceregexp>
             </fileset>
         </reflexive>
 
-        <!-- original jsb2 builds -->
+        <echo msg="Copy jsb2 builds and adopt paths..." />
         <!-- NOTE as jsb2tk has no path adoption yet we need to do it here -->
         <copy toDir="${project.basedir}">
             <fileset dir="${builddir}">
                     <regexp pattern="(\.\.\/){2,}library" replace="../../library" modifiers="i"/>
                 </replaceregexp>
             </filterchain>
-
         </copy>
 
-        <!-- adopt path for getJS/getCSS -->
+        <echo msg="Adopt path for getJS/getCSS..." />
         <!-- TODO add deploymode GETTER and move this to jsb2tk -->
         <copy toDir="${project.basedir}">
             <mapper type="regexp" from="^(.*\.(js|css))" to="\1.inc"/>
             <fileset dir="${builddir}">
                 <include name="${name}/*/*" />
             </fileset>
-
         </copy>
 
-        <!-- translations -->
+        <echo message="[Translations] Checking js dir ${project.basedir}/${name}/js ..." />
         <if>
-            <available file="${builddir}/${name}/js" type="dir" property="has_jsdir"/>
+            <available file="${project.basedir}/${name}/js" type="dir" property="has_jsdir"/>
             <then>
-                <echo message="Building translations..." />
+                <echo message="[Translations] Building translations..." />
+                <mkdir dir="${builddir}/${name}/js" />
                 <translation-build appName="${name}" />
                 <jsMin targetDir="${builddir}/${name}/js" failOnError="false">
                     <fileset dir="${builddir}/${name}/js">