aboutsummaryrefslogtreecommitdiffstats
path: root/testapps/basicJar3
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-03-07 15:20:12 -0800
committerXavier Ducrohet <xav@android.com>2012-03-07 15:46:38 -0800
commit8a3082c6750064eaab3e0a63816f136bb061b6c6 (patch)
tree6234eece3b136b3d7874bec97e160617ec742dc1 /testapps/basicJar3
parentbcf44e9429811b3e1f97d21ea92816957bce2601 (diff)
downloadsdk-8a3082c6750064eaab3e0a63816f136bb061b6c6.zip
sdk-8a3082c6750064eaab3e0a63816f136bb061b6c6.tar.gz
sdk-8a3082c6750064eaab3e0a63816f136bb061b6c6.tar.bz2
More changes to the test projects.
Change-Id: I823bcc19b7de6cea4c985f2c01feccddd6f8022d
Diffstat (limited to 'testapps/basicJar3')
-rw-r--r--testapps/basicJar3/.classpath6
-rw-r--r--testapps/basicJar3/.project17
-rw-r--r--testapps/basicJar3/build.xml16
-rw-r--r--testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java33
-rw-r--r--testapps/basicJar3/src/com/android/tests/basicjar3/basicJar3.txt1
5 files changed, 73 insertions, 0 deletions
diff --git a/testapps/basicJar3/.classpath b/testapps/basicJar3/.classpath
new file mode 100644
index 0000000..11a4c98
--- /dev/null
+++ b/testapps/basicJar3/.classpath
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
diff --git a/testapps/basicJar3/.project b/testapps/basicJar3/.project
new file mode 100644
index 0000000..c9181f7
--- /dev/null
+++ b/testapps/basicJar3/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>basicJar3</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/testapps/basicJar3/build.xml b/testapps/basicJar3/build.xml
new file mode 100644
index 0000000..41f7ee8
--- /dev/null
+++ b/testapps/basicJar3/build.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="basicJar3" default="compile">
+ <target name="compile">
+ <mkdir dir="${basedir}/bin" />
+ <mkdir dir="${basedir}/bin/classes" />
+ <javac encoding="ascii" target="1.5" debug="true" extdirs=""
+ srcdir="src" destdir="${basedir}/bin/classes" />
+ <jar destfile="${basedir}/bin/${ant.project.name}.jar">
+ <fileset dir="${basedir}/bin/classes" />
+ <fileset dir="src" excludes="**/*.java"/>
+ </jar>
+ </target>
+ <target name="clean">
+ <delete dir="bin" />
+ </target>
+</project> \ No newline at end of file
diff --git a/testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java b/testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java
new file mode 100644
index 0000000..60d021d
--- /dev/null
+++ b/testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java
@@ -0,0 +1,33 @@
+package com.android.tests.basicjar3;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
+public class BasicJar3 {
+
+ public static String getContent() {
+ InputStream input = BasicJar3.class.getResourceAsStream("basicJar3.txt");
+ if (input == null) {
+ return "FAILED TO FIND basicJar3.txt";
+ }
+
+ BufferedReader reader = null;
+ try {
+ reader = new BufferedReader(new InputStreamReader(input, "UTF-8"));
+
+ return reader.readLine();
+ } catch (IOException e) {
+ } finally {
+ if (reader != null) {
+ try {
+ reader.close();
+ } catch (IOException e) {
+ }
+ }
+ }
+
+ return "FAILED TO READ CONTENT";
+ }
+} \ No newline at end of file
diff --git a/testapps/basicJar3/src/com/android/tests/basicjar3/basicJar3.txt b/testapps/basicJar3/src/com/android/tests/basicjar3/basicJar3.txt
new file mode 100644
index 0000000..a2dc230
--- /dev/null
+++ b/testapps/basicJar3/src/com/android/tests/basicjar3/basicJar3.txt
@@ -0,0 +1 @@
+SUCCESS from basicJar3.jar \ No newline at end of file