upload android base code part9
This commit is contained in:
parent
5425409085
commit
071cdf34cd
2679 changed files with 329442 additions and 0 deletions
6
android/sdk/testapps/basicJar3/.classpath
Normal file
6
android/sdk/testapps/basicJar3/.classpath
Normal file
|
@ -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>
|
17
android/sdk/testapps/basicJar3/.project
Normal file
17
android/sdk/testapps/basicJar3/.project
Normal file
|
@ -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>
|
16
android/sdk/testapps/basicJar3/build.xml
Normal file
16
android/sdk/testapps/basicJar3/build.xml
Normal file
|
@ -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" source="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>
|
|
@ -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("/com/android/tests/basicjar3/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";
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
SUCCESS from basicJar3.jar
|
Loading…
Add table
Add a link
Reference in a new issue