diff options
Diffstat (limited to 'testapps/basicJar3')
-rw-r--r-- | testapps/basicJar3/.classpath | 6 | ||||
-rw-r--r-- | testapps/basicJar3/.project | 17 | ||||
-rw-r--r-- | testapps/basicJar3/build.xml | 16 | ||||
-rw-r--r-- | testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java | 33 | ||||
-rw-r--r-- | testapps/basicJar3/src/com/android/tests/basicjar3/basicJar3.txt | 1 |
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 |