harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r598883 - in /harmony/enhanced/buildtest/branches/2.0/adaptors/japi: adaptor.xml parameters.xml
Date Wed, 28 Nov 2007 06:59:29 GMT
Author: smishura
Date: Tue Nov 27 22:59:28 2007
New Revision: 598883

URL: http://svn.apache.org/viewvc?rev=598883&view=rev
Log:
Automate JAPI reports.
See HARMONY-5174: [BTI] japitool script for counting required packages only

The automation is based on shell scripts from JIRA. The next should be improved:
- fix JAPI tool downloading
- the automation doesn't work if path (to Harmony or/and RI) contains spaces
- html style sheet is required

Added:
    harmony/enhanced/buildtest/branches/2.0/adaptors/japi/adaptor.xml   (with props)
    harmony/enhanced/buildtest/branches/2.0/adaptors/japi/parameters.xml   (with props)

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/japi/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/japi/adaptor.xml?rev=598883&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/japi/adaptor.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/japi/adaptor.xml Tue Nov 27 22:59:28
2007
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+     
+         http://www.apache.org/licenses/LICENSE-2.0
+     
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License. -->
+
+<project name="japi" default="run" basedir=".">
+
+    <target name="run">
+
+        <property name="japi.report" value="${results.dir}/japi" />
+        <delete dir="${japi.report}" />
+        <mkdir dir="${japi.report}" />
+
+        <property name="pkgs"
+                  value="+java +javax +org.ietf.jgss -java.awt.peer -java.awt.dnd.peer -javax.rmi.CORBA"
/>
+
+        <!--                 -->
+        <!-- japize: Harmony -->
+        <!--                 -->
+        <fileset dir="${harmony.home}" id="id.harmony.jars">
+            <include name="**/*.jar" />
+            <exclude name="**/*-src.jar" />
+            <exclude name="**/*-stubs.jar" />
+        </fileset >
+
+        <!-- FIXME: doesn't work if path contains spaces -->
+        <pathconvert property="harmony.jars"
+                     refid="id.harmony.jars"
+                     pathsep=" ">
+            <map from="*" to="${harmony.home}/*" />
+        </pathconvert>
+
+        <java classname="net.wuffies.japi.Japize"
+              classpath="${japi.home}/share/java/japitools.jar"
+              dir="${japi.report}"
+              fork="true">
+
+            <arg line="as ${harmony.name} packages ${harmony.jars} ${pkgs}" />
+        </java>
+
+        <!--            -->
+        <!-- japize: RI -->
+        <!--            -->
+        <fileset dir="${ri.home}" id="id.ri.jars">
+            <include name="**/*.jar" />
+        </fileset >
+
+        <pathconvert property="ri.jars" refid="id.ri.jars" pathsep=" ">
+            <map from="*" to="${ri.home}/*&quot;" />
+        </pathconvert>
+
+        <!-- FIXME: doesn't work if path contains spaces -->
+        <java classname="net.wuffies.japi.Japize"
+              classpath="${japi.home}/share/java/japitools.jar"
+              dir="${japi.report}"
+              fork="true">
+
+            <arg line="as ${ri.name} packages ${ri.jars} ${pkgs}" />
+        </java>
+
+        <!--         -->
+        <!-- compare -->
+        <!--         -->
+
+        <!-- Need to unzip reports, otherwize japicompat fails to load them -->
+        <gunzip src="${japi.report}/${harmony.name}.japi.gz"
+                dest="${japi.report}" />
+        <gunzip src="${japi.report}/${ri.name}.japi.gz" dest="${japi.report}" />
+
+        <exec executable="perl"
+              dir="${japi.report}"
+              output="${japi.report}/${harmony.name}_vs_${ri.name}.html"
+              logerror="true">
+
+            <arg line="${japi.home}/bin/japicompat -h ${harmony.name}.japi ${ri.name}.japi"
/>
+        </exec>
+
+        <exec executable="perl"
+              dir="${japi.report}"
+              output="${japi.report}/${ri.name}_vs_${harmony.name}.html"
+              logerror="true">
+
+            <arg line="${japi.home}/bin/japicompat -h ${ri.name}.japi ${harmony.name}.japi"
/>
+        </exec>
+    </target>
+</project>
+

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/japi/adaptor.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/japi/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/japi/parameters.xml?rev=598883&view=auto
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/japi/parameters.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/japi/parameters.xml Tue Nov 27 22:59:28
2007
@@ -0,0 +1,41 @@
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+     
+         http://www.apache.org/licenses/LICENSE-2.0
+     
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License. -->
+
+<parameters>
+    <required>
+        <harmony.home description="Path to Harmony Runtime"
+            value="${drlvm.parameters.shared.jvm.location}"/>
+        <harmony.name description="Harmony name in JAPI report"
+            value="Harmony"/>
+        <ri.home description="Path to RI Runtime"
+            value="${java.home}"/>
+        <ri.name description="RI name in JAPI report"
+            value="RI"/>
+        <japi.home description="Path to JAPI tool" />
+    </required>
+
+    <external>
+<!-- FIXME
+        <japi
+            url="http://www.kaffe.org/~stuart/japi/japitools-0.9.7.zip"
+            md5="b35a6c1767c116999a1f3d205174429c"
+            dir="japitools-0.9.7"/>
+-->
+    </external>
+
+    <shared/>
+    <cc/>
+</parameters>

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/japi/parameters.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message