harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r376337 - in /incubator/harmony/enhanced/classlib/trunk/modules/x-net: ./ META-INF/ META-INF/MANIFEST.MF build.xml src/ src/main/ src/main/java/ src/test/ src/test/java/
Date Thu, 09 Feb 2006 16:26:06 GMT
Author: geirm
Date: Thu Feb  9 08:26:03 2006
New Revision: 376337

URL: http://svn.apache.org/viewcvs?rev=376337&view=rev
Log:
frame for x-net.  I'll do a svn mv to get the code 
over from security2


Added:
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/META-INF/
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/META-INF/MANIFEST.MF
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/build.xml
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/

Added: incubator/harmony/enhanced/classlib/trunk/modules/x-net/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/META-INF/MANIFEST.MF?rev=376337&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/META-INF/MANIFEST.MF (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/META-INF/MANIFEST.MF Thu Feb 
9 08:26:03 2006
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Harmony Security
+Bundle-SymbolicName: org.apache.harmony.x_net
+Bundle-Version: 1.0.0
+Bundle-ClassPath: .
+Eclipse-JREBundle: true
+Import-Package: org.apache.harmony.security.fortress,
+ java.io,
+ java.lang,
+ java.net,
+ java.nio,
+ java.security,
+ java.security.cert,
+ java.util,
+ javax.security.cert
+Export-Package: javax.net,
+ javax.net.ssl

Added: incubator/harmony/enhanced/classlib/trunk/modules/x-net/build.xml
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/x-net/build.xml?rev=376337&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/build.xml (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/build.xml Thu Feb  9 08:26:03
2006
@@ -0,0 +1,108 @@
+<project name="HarmonySecurityBuild" default="test" basedir=".">
+
+    <description> Build for Security stuff </description>
+
+    <!-- set global properties for this build. -->
+
+    <property name="build.compiler" value="modern"/>
+
+    <property name="tests.output" value="target" />
+    <property name="target.output" value="../../deploy" />
+
+    <!-- =================================
+          target: run
+         ================================= -->
+    <target name="test" depends="test-clean, test-compile, test-run" description="Run
Tests" />
+
+    <!-- =================================
+          target: test-clean
+         ================================= -->
+    <target name="test-clean" description="Delete all built test classes">
+        <delete includeemptydirs="true" failonerror="false">
+            <fileset dir="${tests.output}">
+                <include name="**/**" />
+            </fileset>
+        </delete>
+    </target>
+
+    <!-- =================================
+          target: test-compile
+         ================================= -->
+    <target name="test-compile" depends="test-copy-resource" description="Compile tests">
+        <mkdir dir="${tests.output}" />
+
+        <javac destdir="${tests.output}" source="1.4" target="1.4" debug="on">
+            <src>
+                <pathelement location="src/test/java"/>
+                <pathelement location="../security2/test/common/unit"/>
+            </src>
+
+            <include name="javax/net/**/*Test*.java" />
+            <include name="org/apache/harmony/security/test/**/*" />
+
+            <exclude name="**/SecurityTest.java"/>
+
+            <classpath location="${tests.output}" />
+
+            <bootclasspath>
+                <fileset dir="${target.output}/jre/lib/boot">
+                    <include name="*.jar"/>
+                </fileset>
+            </bootclasspath>
+        </javac>
+    </target>
+
+    <!-- =================================
+          target: test-copy-resource
+         ================================= -->
+    <target name="test-copy-resource" description="Copy non-Java files">
+
+        <mkdir dir="${tests.output}" />
+
+        <copy todir="${tests.output}" includeemptydirs="false">
+            <fileset dir="src/test/java">
+                <exclude name="**/*.java" />
+            </fileset>
+        </copy>
+    </target>
+
+    <!-- =================================
+          target: test-clean
+         ================================= -->
+    <target name="test-run">
+
+    	<property name="tests.report" value="${tests.output}/report" />
+        <property environment="env"/>
+
+        <mkdir dir="${tests.report}" />
+
+        <junit fork="yes"
+            forkmode="perTest"
+            printsummary="withOutAndErr"
+            errorproperty="test.error"
+            showoutput="on"
+        	haltonfailure="on"
+            dir="${basedir}"
+            jvm="${target.output}/jre/bin/java">
+
+            <env key="JAVA_HOME" value="${target.output}/jre"/>
+
+<!--            <jvmarg value="-verbose:dynload" /> -->
+            <jvmarg value="-Xbootclasspath/a:${tests.output}${path.separator}${env.CLASSPATH}"/>
+            <jvmarg value="-Djava.security.properties==${target.output}/jre/lib/security/java.security"/>
+            <jvmarg value="-Djava.security.policy==${target.output}/jre/lib/security/drl.policy"/>
+            <jvmarg value="-DTEST_SRC_DIR=src/test/java/"/>
+
+            <formatter type="plain" />
+            <batchtest todir="${tests.report}">
+                <fileset dir="src/test/java">
+                    <include name="**/*Test.java"/>
+
+                    <exclude name="org/apache/harmony/security/test/**"/>
+
+                </fileset>
+            </batchtest>
+        </junit>
+    </target>
+
+ </project>
\ No newline at end of file



Mime
View raw message