JAL-1424 tidied output
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 22 Sep 2015 09:38:57 +0000 (10:38 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 22 Sep 2015 09:38:57 +0000 (10:38 +0100)
utils/i18nAnt.xml

index eaabc47..47c404e 100755 (executable)
@@ -19,6 +19,7 @@
         var logger = project.getBuildListeners( ).firstElement( );
         logger.setMessageOutputLevel( 1 );
     </script>
+       <echo message="Missing message labels compared to Messages.properties"/>
        <foreach target="compareProperties" param="file2">
                <path>
                        <fileset dir="${basedir}/resources/lang">
@@ -35,6 +36,8 @@
     <propertyselector property="file1.list" delimiter="," match="prefixfile1\.(.+)" select="\1"/>
     <propertyselector property="file2.list" delimiter="," match="prefixfile2\.(.+)" select="\1"/>
        
+       <echo message=" "/>
+       <echo message="*** ${file2}:" />
     <for list="${file1.list}" param="file1.property">
         <sequential>
             <if>
                     <matches pattern=",@{file1.property}," string=",${file2.list}," />
                 </not>
                 <then>
-                    <if>
-                        <not>
-                            <isset property="some_missing"/>
-                        </not>
-                           <then>
-                               <echo message=" "/>
-                               <echo>**** Missing in ${file2}: ****</echo>
-                           </then>
-                    </if>
                     <property name="some_missing" value="true"/>
                        <antcall target="reportMissingProperty">
                                <param name="textLabel" value="@{file1.property}"/>
             </if>
         </sequential>
     </for>
+    <if>
+        <not>
+            <isset property="some_missing"/>
+        </not>
+        <then>
+               <echo>No labels missing :-)</echo>
+        </then>
+    </if>
 </target>
 
 <target name="reportMissingProperty" description="double dereference 'prefixedPropertyName' and report missing language property">