harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r389532 - in /incubator/harmony/enhanced/classlib/trunk: make/ make/patternsets/ modules/applet/ modules/applet/META-INF/ modules/applet/make/ modules/applet/make/common/ modules/applet/src/ modules/applet/src/main/ modules/applet/src/main/...
Date Tue, 28 Mar 2006 16:18:31 GMT
Author: tellison
Date: Tue Mar 28 08:18:25 2006
New Revision: 389532

URL: http://svn.apache.org/viewcvs?rev=389532&view=rev
Log:
Moved applet stub out from beans module.

Added:
    incubator/harmony/enhanced/classlib/trunk/make/patternsets/applet.txt
    incubator/harmony/enhanced/classlib/trunk/modules/applet/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/META-INF/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/META-INF/MANIFEST.MF
    incubator/harmony/enhanced/classlib/trunk/modules/applet/make/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/make/build.xml
    incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/build.xml
    incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/hyproperties.xml
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/tests/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/tests/applet/
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/tests/applet/AllTests.java
    incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/resources/
Removed:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/applet/Applet.java
Modified:
    incubator/harmony/enhanced/classlib/trunk/make/build-java.xml

Modified: incubator/harmony/enhanced/classlib/trunk/make/build-java.xml
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/make/build-java.xml?rev=389532&r1=389531&r2=389532&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/make/build-java.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/make/build-java.xml Tue Mar 28 08:18:25 2006
@@ -86,6 +86,14 @@
     <target name="package" depends="compile" description="Create component jars">
         <mkdir dir="${components.output}" />
 
+        <!-- Create applet jar -->
+        <jar destfile="${components.output}/applet.jar"
+        	manifest="modules/applet/META-INF/MANIFEST.MF">
+            <fileset dir="${build.output}" 
+                includesfile="${components.patternsets}/applet.txt" 
+                excludesfile="${components.patternsets}/kernel.txt" />
+        </jar>
+
         <!-- Create archive jar -->
         <jar destfile="${components.output}/archive.jar"
         	manifest="modules/archive/META-INF/MANIFEST.MF">
@@ -223,6 +231,7 @@
         <mkdir dir="${build.output}" />
 
         <javac destdir="${build.output}" source="1.4" target="1.4" debug="on">
+            <src path="modules/applet/src/main/java" />
             <src path="modules/beans/src/main/java" />
             <src path="modules/kernel/src/main/java" />
             <src path="modules/regex/src/main/java" />

Added: incubator/harmony/enhanced/classlib/trunk/make/patternsets/applet.txt
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/make/patternsets/applet.txt?rev=389532&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/make/patternsets/applet.txt (added)
+++ incubator/harmony/enhanced/classlib/trunk/make/patternsets/applet.txt Tue Mar 28 08:18:25
2006
@@ -0,0 +1,15 @@
+# Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+# 
+# Licensed 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.
+
+java/applet/*

Added: incubator/harmony/enhanced/classlib/trunk/modules/applet/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/applet/META-INF/MANIFEST.MF?rev=389532&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/applet/META-INF/MANIFEST.MF (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/applet/META-INF/MANIFEST.MF Tue Mar
28 08:18:25 2006
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Harmony Text
+Bundle-SymbolicName: org.apache.harmony.text
+Bundle-Version: 1.0.0
+Bundle-ClassPath: .
+Eclipse-JREBundle: true
+Import-Package: java.lang
+Export-Package: java.text

Added: incubator/harmony/enhanced/classlib/trunk/modules/applet/make/build.xml
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/applet/make/build.xml?rev=389532&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/applet/make/build.xml (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/applet/make/build.xml Tue Mar 28 08:18:25
2006
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Copyright 2005, 2006 The Apache Software Foundation or its licensors, as applicable.
+  
+    Licensed 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="TEXT Build" default="build" basedir="..">
+	<description>Build for APPLET component</description>
+
+	<!-- set global properties for this build. -->
+	<xmlproperty file="make/common/hyproperties.xml" semanticAttributes="true"/>
+	<property environment="env"/>
+
+	<!-- Determine the (normalized) operating system family -->
+	<condition property="if.win">
+		<os family="Windows" />
+	</condition>
+	<condition property="hy.os_family" value="windows">
+		<isset property="if.win"/>
+	</condition>
+
+	<condition property="if.linux">
+		<and>
+			<os name="linux" />
+			<os family="unix" />
+		</and>
+	</condition>
+	<condition property="hy.os_family" value="linux">
+		<isset property="if.linux"/>
+	</condition>
+
+
+	<!-- Determine the (normalized) processor family -->
+	<condition property="if.x86_64">
+		<contains string="${os.arch}" substring="x86_64"/>
+	</condition>
+	<condition property="hy.cpu_family" value="x86_64">
+		<isset property="if.x86_64"/>
+	</condition>
+	
+	<condition property="if.x86">
+		<and>
+			<contains string="${os.arch}" substring="86"/>
+			<not>
+				<isset property="if.x86_64"/>
+			</not>
+		</and>
+	</condition>
+	<condition property="hy.cpu_family" value="x86">
+		<isset property="if.x86"/>
+	</condition>
+	
+	<condition property="if.ipf">
+		<contains string="${os.arch}" substring="ia64"/>
+	</condition>
+	<condition property="hy.cpu_family" value="ipf">
+		<isset property="if.ipf"/>
+	</condition>
+
+	<!-- Define the platform property dependant upon the OS and platform -->
+	<property name="hy.platform" value="${hy.os_family}.${hy.cpu_family}"/>
+
+	<!-- Set the java compiler to be the Eclipse Java compiler -->
+	<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" />
+
+
+	<target name="init">
+		<tstamp>
+			<format property="build-date" pattern="yyyyMMdd" locale="en" />
+		</tstamp>
+		<tstamp>
+			<format property="build-time" pattern="yyyyMMdd_HHmm" />
+		</tstamp>
+		<echo message="build-date=${build-date}" />
+		<echo message="build-time=${build-time}" />
+		<echo message="on platform=${os.name} version=${os.version} arch=${os.arch}" />
+
+		<property name="java.debug.option" value="on" />
+		<property name="native.debug.option" value="on" />
+
+		<property name="source.ver" value="1.4" />
+	</target>
+	
+	<!-- APPLET TARGETS -->
+
+	<target name="build" depends="init">
+		<ant dir="make/common" target="compile.java" />
+		<ant dir="make/common" target="build.jar" />
+	<!--	<ant dir="make/platform/${hy.platform}" target="compile.native" /> -->
+		<ant dir="make/common" target="copy.resources" />
+	</target>
+
+
+	<target name="test" depends="build">
+		<ant dir="make/common" target="compile.tests" />
+		<ant dir="make/common" target="run.tests" />
+	</target>
+
+	<target name="clean">
+		<delete dir="${hy.applet.bin.main}"/>
+		<delete dir="${hy.applet.bin.test}"/>
+	</target>
+
+</project>

Added: incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/build.xml
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/build.xml?rev=389532&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/build.xml (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/build.xml Tue Mar
28 08:18:25 2006
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+  
+    Licensed 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="Common_APPLET_Build">
+	
+	<target name="compile.java" description="Compile APPLET java code">
+		<echo message="Compiling APPLET classes from ${hy.text.src.main.java}" />
+		
+		<mkdir dir="${hy.text.bin.main}" />
+
+		<javac sourcepath=""
+			srcdir="${hy.text.src.main.java}"
+			destdir="${hy.text.bin.main}"
+			source="${source.ver}"
+			debug="${java.debug.option}">
+
+			<bootclasspath>
+				<fileset dir="${hy.target}/jre/lib/boot">
+					<include name="*.jar" />
+				</fileset>
+			</bootclasspath>
+		</javac>
+	</target>
+	
+	<target name="build.jar">
+		<jar destfile="${hy.target}/jre/lib/boot/applet.jar"
+			manifest="${hy.applet}/META-INF/MANIFEST.MF">
+			<fileset dir="${hy.applet.bin.main}" />
+		</jar>
+	</target>
+
+	
+	<target name="compile.tests">
+		<echo message="Compiling APPLET tests from ${hy.applet.src.test.java}" />
+
+		<mkdir dir="${hy.applet.bin.test}" />
+
+		<javac srcdir="${hy.applet.src.test.java}"
+			destdir="${hy.applet.bin.test}"
+			sourcepath=""
+			source="${source.ver}"
+			debug="${java.debug.option}">
+
+			<bootclasspath>
+				<fileset dir="${hy.target}/jre/lib/boot">
+					<include name="*.jar" />
+				</fileset>
+			</bootclasspath>
+                        <classpath location="../../../../build/tests" />
+		</javac>
+	</target>
+
+
+	<target name="run.tests">
+		
+	        <mkdir dir="${hy.tests.reports}" />
+
+	        <junit fork="yes"
+			forkmode="once"
+			printsummary="withOutAndErr"
+			errorproperty="test.error"
+			showoutput="on"
+			dir="${hy.applet.bin.test}"
+			jvm="${hy.target}/jre/bin/java">
+
+			<jvmarg value="-showversion"/>
+
+			<env key="JAVA_HOME" value="${hy.target}/jre"/>
+
+			<classpath>
+				<pathelement path="${hy.applet.bin.test}"/>
+			</classpath>
+
+			<formatter type="xml" />
+
+			<batchtest todir="${hy.tests.reports}" haltonfailure="no">
+				<fileset dir="${hy.applet.src.test.java}"/>
+			</batchtest>
+		</junit>
+	</target>
+	
+	
+	<target name="copy.resources">
+		<!-- Nothing for APPLET -->
+	</target>
+</project>
+

Added: incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/hyproperties.xml
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/hyproperties.xml?rev=389532&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/hyproperties.xml
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/applet/make/common/hyproperties.xml
Tue Mar 28 08:18:25 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+  
+    Licensed 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.
+-->
+
+<hy>
+   <applet location=".">
+      <src>
+         <main>
+            <java location="src/main/java" />
+        	<resources location="src/main/resources" />
+         </main>
+         <test>
+            <java location="src/test/java" />
+            <resources location="src/main/resources" />
+         </test>
+         <natives location="src/natives" />
+      </src>
+      <bin>
+        <main location="bin/main" />
+        <test location="bin/test" />
+      </bin>
+      <packaging>
+      </packaging>
+   </applet>
+
+   <target location="../../deploy" />
+
+   <tests>
+      <reports location="../../build/test_report" />
+   </tests>
+</hy>

Added: incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java?rev=389532&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/java/applet/Applet.java
Tue Mar 28 08:18:25 2006
@@ -0,0 +1,37 @@
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed 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.
+ */
+
+/**
+ * @author Maxim V. Berkultsev
+ * @version $Revision: 1.13.4.2 $
+ */
+package java.applet;
+
+/**
+ * This is an empty stub containing only empty methods for compilation purposes.
+ * 
+ * @author Maxim V. Berkultsev
+ * @version $Revision: 1.13.4.2 $
+ */
+public class Applet {
+
+    public void init() {
+    }
+
+    public String getParameter(String s) {
+        return null;
+    }
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/tests/applet/AllTests.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/tests/applet/AllTests.java?rev=389532&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/tests/applet/AllTests.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/applet/src/test/java/org/apache/harmony/tests/applet/AllTests.java
Tue Mar 28 08:18:25 2006
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.
+ */
+
+package org.apache.harmony.tests.applet;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+	public static void main(String[] args) {
+		junit.textui.TestRunner.run(AllTests.suite());
+	}
+
+	public static Test suite() {
+		TestSuite suite = new TestSuite(
+				"Test for org.apache.harmony.tests.applet");
+		//$JUnit-BEGIN$
+		//$JUnit-END$
+		return suite;
+	}
+
+}



Mime
View raw message