harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lvj...@apache.org
Subject svn commit: r998609 - in /harmony/enhanced/java/branches/java6/classlib/modules/x-tools: ./ .settings/ META-INF/ make/ src/ src/main/ src/main/java/ src/main/java/javax/ src/main/java/javax/tools/ src/test/ src/test/org/ src/test/org/apache/ src/test/o...
Date Sun, 19 Sep 2010 08:08:31 GMT
Author: lvjing
Date: Sun Sep 19 08:08:29 2010
New Revision: 998609

URL: http://svn.apache.org/viewvc?rev=998609&view=rev
Log:
As discussed in the mailing-list, add new x-tools module to harmony6 branch

Added:
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.classpath   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.project   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.core.prefs
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.ui.prefs
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.pde.core.prefs
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/META-INF/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/META-INF/MANIFEST.MF
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/build.xml   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/findbugs-exclude-filter.xml   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/run-test.xml   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Diagnostic.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticCollector.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticListener.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/FileObject.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingFileObject.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileManager.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileObject.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaCompiler.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileManager.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileObject.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/OptionChecker.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/SimpleJavaFileObject.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardJavaFileManager.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardLocation.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Tool.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ToolProvider.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/DiagnosticCollectorTest.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/ForwardingFileObjectTest.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockDiagnostic.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockSimpleJavaFileObject.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/StandardLocationTest.java   (with props)

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.classpath
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.classpath?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.classpath (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.classpath Sun Sep 19 08:08:29 2010
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry output="bin/main" kind="src" path="src/main/java"/>
+	<classpathentry output="bin/test" kind="src" path="src/test/java"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.classpath
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.project
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.project?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.project (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.project Sun Sep 19 08:08:29 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>x-tools</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.project
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.core.prefs?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.core.prefs (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.core.prefs Sun Sep 19 08:08:29 2010
@@ -0,0 +1,12 @@
+#Wed May 03 13:10:22 BST 2006
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.ui.prefs?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.ui.prefs (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.jdt.ui.prefs Sun Sep 19 08:08:29 2010
@@ -0,0 +1,3 @@
+#Wed May 03 13:10:00 BST 2006
+eclipse.preferences.version=1
+internal.default.compliance=user

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.pde.core.prefs
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.pde.core.prefs?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.pde.core.prefs (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/.settings/org.eclipse.pde.core.prefs Sun Sep 19 08:08:29 2010
@@ -0,0 +1,3 @@
+#Thu Dec 15 00:50:33 GMT 2005
+eclipse.preferences.version=1
+pluginProject.extensions=false

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/META-INF/MANIFEST.MF?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/META-INF/MANIFEST.MF (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/META-INF/MANIFEST.MF Sun Sep 19 08:08:29 2010
@@ -0,0 +1,19 @@
+Manifest-Version: 1.0
+Specification-Title: Java Platform API Specification
+Specification-Version: 1.6
+Implementation-Title: Apache Harmony
+Implementation-Vendor: The Apache Software Foundation
+Implementation-Vendor-Id: org.apache.harmony
+Implementation-URL: http://harmony.apache.org
+Bundle-ManifestVersion: 2
+Bundle-Name: Harmony X-Tools
+Bundle-SymbolicName: org.apache.harmony.xtools
+Bundle-Version: 1.0.0
+Bundle-ClassPath: .
+Eclipse-JREBundle: true
+Import-Package: java.lang,
+ java.lang.reflect,
+ java.security,
+ java.util,
+ org.apache.harmony.kernel.vm
+Export-Package: javax.tools

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/build.xml?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/build.xml (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/build.xml Sun Sep 19 08:08:29 2010
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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="ANNOTATION Build" default="build" basedir=".">
+    <description>Build for ANNOTATION component</description>
+
+    <property name="hy.module" value="x-tools" />
+    <property name="hy.hdk" location="${basedir}/../../deploy" />
+    <property name="depends.dir" location="${basedir}/../../depends" />
+    <import file="${hy.hdk}/build/ant/properties.xml" />
+
+    <property file="../../make/depends.properties" />
+
+    <target name="build" depends="-build-no-check"/>
+    <target name="-build-no-check" depends="-build-jar,-test-jar" />
+
+    <target name="test" depends="-test-module">
+        <fail message="Some tests failed">
+            <condition>
+                <or>
+                    <isset property="test.failures" />
+                    <isset property="test.errors" />
+                </or>
+            </condition>
+        </fail>
+    </target>
+
+    <!-- internal target for local and global test run sequence -->
+    <target name="-test-module" depends="build,-run-tests" />
+
+    <target name="clean" depends="-clean-java,-clean-test" />
+    
+    <target name="-clean-java" unless="skip.java.build"
+            depends="-class-patternset">
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}.jar" />
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar" />
+        <delete failonerror="false">
+            <fileset refid="classes" />
+        </delete>
+        <delete-patternset module="${hy.module}" />
+    </target>
+
+    <target name="-clean-test" unless="skip.test.build">
+        <delete dir="${tests.hdk.dir}" failonerror="false" />
+        <delete failonerror="false" dir="bin"/>
+    </target>
+
+    <target name="-compile-java" unless="skip.java.build">
+        <compile-classes description="${hy.module} classes">
+            <javac-elements>
+                <src path="src/main/java" />
+            </javac-elements>
+        </compile-classes>
+    </target>
+
+    <target name="findbugs" depends="-build-jar">
+        <run-findBugs
+            jarFile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
+            excludeFilter="make/findbugs-exclude-filter.xml"
+            outputFile="${findBugs.report}/${hy.module}.xml"/>
+    </target>
+
+    <target name="-build-jar" unless="skip.java.build"
+            depends="-svn-info,-compile-java,-class-patternset">
+        <hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
+                    manifest="META-INF/MANIFEST.MF">
+            <fileset refid="classes" />
+            <fileset refid="resources" />
+        </hy.jar.bin>
+
+        <hy.jar.src destfile="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar">
+            <fileset dir="src/main/java" />
+        </hy.jar.src>
+    </target>
+
+    <target name="-test-jar" unless="skip.test.build"
+            depends="-svn-info,-compile-tests">
+        <mkdir dir="${tests.hdk.dir}" />
+        
+        <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
+        
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_tests.jar">
+            <fileset dir="bin/test" />
+        </hy.jar.bin>
+
+        <mkdir dir="${tests.excludes.hdk.dir}"/>
+        <copy todir="${tests.excludes.hdk.dir}">
+            <fileset dir="make" includes="exclude*"/>
+            <filterchain>
+                <tokenfilter>
+                    <replaceregex pattern="\.java" replace="\.class" flags="g"/>
+                </tokenfilter>
+            </filterchain>
+        </copy>
+    </target>
+
+    <target name="-compile-tests" unless="skip.test.build">
+        <compile-tests description="${hy.module} api tests">
+            <javac-elements>
+                <src>
+                    <pathelement location="src/test/java" />
+                </src>
+            </javac-elements>
+        </compile-tests>
+    </target>
+
+    <target name="-run-tests" depends="-test-jar">
+        <ant dir="${tests.hdk.dir}" target="test-module" />
+    </target>
+
+    <target name="-class-patternset" unless="skip.java.build">
+        <make-patternset module="${hy.module}" />
+    </target>
+
+</project>

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/findbugs-exclude-filter.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/findbugs-exclude-filter.xml?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/findbugs-exclude-filter.xml (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/findbugs-exclude-filter.xml Sun Sep 19 08:08:29 2010
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+	<!--
+		Licensed to the Apache Software Foundation (ASF) under one or more
+		contributor license agreements. See the NOTICE file distributed with
+		this work for additional information regarding copyright ownership.
+		The ASF licenses this file to You 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.
+	-->
+
+	<!-- Exclusion filter for running FindBugs against Apache Harmony -->
+
+	<!--
+		Format and code information is available here
+		http://findbugs.sourceforge.net/manual/filter.html
+	-->
+
+<FindBugsFilter>
+
+	<!-- Field 'element' is part of the specified serialized form -->
+	<Match>
+		<Class name="javax.tools.JavaCompiler" />
+		<Field name="element" />
+		<Bug pattern="SE_BAD_FIELD" />
+	</Match>
+
+</FindBugsFilter>
+

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/findbugs-exclude-filter.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/run-test.xml?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/run-test.xml (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/run-test.xml Sun Sep 19 08:08:29 2010
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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="Harmony x-tools Test" default="test" basedir=".">
+
+    <property name="hy.hdk" location="../../.." />
+    <property name="test.jre.home" location="${hy.hdk}/jdk/jre" />
+    <property file="../test.properties" />
+
+    <property name="work.dir" value=".." />
+    <property name="target.dir" value=".." />
+    <property name="tests.output" location="../report" />
+    <property name="junit.jar" location="../junit.jar" />
+
+    <import file="../../ant/properties.xml" />
+
+    <target name="test" depends="test-module" />
+
+    <target name="test-module" depends="test-jre-vm-info">
+        <convert-test-as-class from="test.case" to="converted.tc.class" />
+        <run-hdk-tests module="x-tools" jar="x-tools_tests.jar" />
+    </target>
+    
+</project>

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/make/run-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Diagnostic.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Diagnostic.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Diagnostic.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Diagnostic.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,44 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.util.Locale;
+
+public interface Diagnostic<S> {
+    static enum Kind {
+        ERROR, MANDATORY_WARNING, NOTE, OTHER, WARNING
+    }
+
+    String getCode();
+
+    long getColumnNumber();
+
+    long getEndPosition();
+
+    Diagnostic.Kind getKind();
+
+    long getLineNumber();
+
+    String getMessage(Locale locale);
+
+    long getPosition();
+
+    S getSource();
+
+    long getStartPosition();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Diagnostic.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticCollector.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticCollector.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticCollector.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticCollector.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,35 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.util.List;
+
+public class DiagnosticCollector<S> {
+
+    public DiagnosticCollector() {
+        // do nothing
+    }
+
+    public void report(Diagnostic<? extends S> diagnostic) {
+        // do nothing
+    }
+
+    public List<Diagnostic<? extends S>> getDiagnostics() {
+        return null;
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticCollector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticListener.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticListener.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticListener.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticListener.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,22 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+public interface DiagnosticListener<S> {
+    void report(Diagnostic<? extends S> diagnostic);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/DiagnosticListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/FileObject.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/FileObject.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/FileObject.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/FileObject.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,43 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.io.Writer;
+import java.net.URI;
+
+public interface FileObject {
+    boolean delete();
+
+    CharSequence getCharContent(boolean ignoreEncodingErrors);
+
+    long getLastModified();
+
+    String getName();
+
+    InputStream openInputStream();
+
+    OutputStream openOutputStream();
+
+    Reader openReader(boolean ignoreEncodingErrors);
+
+    Writer openWriter();
+
+    URI toUri();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/FileObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingFileObject.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingFileObject.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingFileObject.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingFileObject.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,72 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.io.Writer;
+import java.net.URI;
+
+public class ForwardingFileObject<F extends FileObject> implements FileObject {
+    
+    protected final F fileObject;
+    
+    protected ForwardingFileObject(F fileObject){
+        this.fileObject = fileObject;
+    }
+
+    public boolean delete() {
+        // do nothing
+        return fileObject.delete();
+    }
+
+    public CharSequence getCharContent(boolean ignoreEncodingErrors) {
+        // do nothing here
+        return fileObject.getCharContent(ignoreEncodingErrors);
+    }
+
+
+    public long getLastModified() {
+        return fileObject.getLastModified();
+    }
+
+    public InputStream openInputStream() {
+        return fileObject.openInputStream();
+    }
+
+    public OutputStream openOutputStream() {
+        return fileObject.openOutputStream();
+    }
+
+    public Reader openReader(boolean ignoreEncodingErrors) {
+        return fileObject.openReader(ignoreEncodingErrors);
+    }
+
+    public Writer openWriter() {
+        return fileObject.openWriter();
+    }
+
+    public URI toUri() {
+        return fileObject.toUri();
+    }
+
+    public String getName() {
+        return fileObject.getName();
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingFileObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileManager.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileManager.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileManager.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,92 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.Set;
+
+import javax.tools.JavaFileObject.Kind;
+
+public class ForwardingJavaFileManager<M extends JavaFileManager> implements
+        JavaFileManager {
+
+    protected JavaFileManager fileManager;
+
+    protected ForwardingJavaFileManager(M fileManager) {
+        this.fileManager = fileManager;
+    }
+
+    public void close() throws IOException {
+        fileManager.close();
+    }
+
+    public void flush() throws IOException {
+        fileManager.flush();
+    }
+
+    public ClassLoader getClassLoader(Location location) {
+        return fileManager.getClassLoader(location);
+    }
+
+    public FileObject getFileForInput(Location location, String packageName,
+            String relativeName) {
+        return fileManager.getFileForInput(location, packageName, relativeName);
+    }
+
+    public FileObject getFileForOutput(Location location, String packageName,
+            String relativeName, FileObject sibling) {
+        return fileManager.getFileForInput(location, packageName, relativeName);
+    }
+
+    public JavaFileObject getJavaFileForInput(Location location,
+            String className, Kind kind) {
+        return fileManager.getJavaFileForInput(location, className, kind);
+    }
+
+    public JavaFileObject getJavaFileForOutput(Location location,
+            String className, Kind kind, FileObject sibling) {
+        return fileManager.getJavaFileForInput(location, className, kind);
+    }
+
+    public boolean handleOption(String current, Iterator<String> remaining) {
+        return fileManager.handleOption(current, remaining);
+    }
+
+    public boolean hasLocation(Location location) {
+        return fileManager.hasLocation(location);
+    }
+
+    public String inferBinaryName(Location location, JavaFileObject file) {
+        return fileManager.inferBinaryName(location, file);
+    }
+
+    public boolean isSameFile(FileObject a, FileObject b) {
+        return fileManager.isSameFile(a, b);
+    }
+
+    public Iterable<JavaFileObject> list(Location location, String packageName,
+            Set<Kind> kinds, boolean recurse) {
+        return fileManager.list(location, packageName, kinds, recurse);
+    }
+
+    public int isSupportedOption(String option) {
+        return fileManager.isSupportedOption(option);
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileObject.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileObject.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileObject.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileObject.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,46 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import javax.lang.model.element.Modifier;
+import javax.lang.model.element.NestingKind;
+
+public class ForwardingJavaFileObject<F extends JavaFileObject> extends
+        ForwardingFileObject implements FileObject, JavaFileObject {
+
+    protected ForwardingJavaFileObject(F fileObject) {
+        super(fileObject);
+    }
+
+    public Modifier getAccessLevel() {
+        return ((JavaFileObject) fileObject).getAccessLevel();
+    }
+
+    public Kind getKind() {
+        return ((JavaFileObject) fileObject).getKind();
+    }
+
+    public NestingKind getNestingKind() {
+        return ((JavaFileObject) fileObject).getNestingKind();
+    }
+
+    public boolean isNameCompatible(String simpleName, Kind kind) {
+        return ((JavaFileObject) fileObject).isNameCompatible(simpleName, kind);
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ForwardingJavaFileObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaCompiler.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaCompiler.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaCompiler.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaCompiler.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,46 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.io.Writer;
+import java.nio.charset.Charset;
+import java.util.Locale;
+import java.util.concurrent.Callable;
+
+import javax.annotation.processing.Processor;
+
+public interface JavaCompiler extends OptionChecker, Tool {
+
+    public static interface CompilationTask extends Callable<Boolean> {
+        Boolean call();
+
+        void setLocale(Locale locale);
+
+        void setProcessors(Iterable<? extends Processor> processors);
+    }
+
+    StandardJavaFileManager getStandardFileManager(
+            DiagnosticListener<? super JavaFileObject> diagnosticListener,
+            Locale locale, Charset charset);
+
+    JavaCompiler.CompilationTask getTask(Writer out,
+            JavaFileManager fileManager,
+            DiagnosticListener<? super JavaFileObject> diagnosticListener,
+            Iterable<String> options, Iterable<String> classes,
+            Iterable<? extends JavaFileObject> compilationUnits);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaCompiler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileManager.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileManager.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileManager.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,62 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.io.Closeable;
+import java.io.Flushable;
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.Set;
+
+public interface JavaFileManager extends Closeable, Flushable, OptionChecker {
+    static interface Location {
+        String getName();
+
+        boolean isOutputLocation();
+    }
+
+    void close() throws IOException;
+
+    void flush() throws IOException;
+
+    ClassLoader getClassLoader(JavaFileManager.Location location);
+
+    FileObject getFileForInput(JavaFileManager.Location location,
+            String packageName, String relativeName);
+
+    FileObject getFileForOutput(JavaFileManager.Location location,
+            String packageName, String relativeName, FileObject sibling);
+
+    JavaFileObject getJavaFileForInput(JavaFileManager.Location location,
+            String className, JavaFileObject.Kind kind);
+
+    JavaFileObject getJavaFileForOutput(JavaFileManager.Location location,
+            String className, JavaFileObject.Kind kind, FileObject sibling);
+
+    boolean handleOption(String current, Iterator<String> remaining);
+
+    boolean hasLocation(JavaFileManager.Location location);
+
+    String inferBinaryName(JavaFileManager.Location location,
+            JavaFileObject file);
+
+    boolean isSameFile(FileObject a, FileObject b);
+
+    Iterable<JavaFileObject> list(JavaFileManager.Location location,
+            String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileObject.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileObject.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileObject.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileObject.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,38 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.net.URI;
+
+import javax.lang.model.element.Modifier;
+import javax.lang.model.element.NestingKind;
+
+public interface JavaFileObject extends FileObject {
+    public static enum Kind {
+        CLASS, HTML, OTHER, SOURCE;
+        public final String extension = "";
+    }
+    
+    Modifier getAccessLevel();
+
+    JavaFileObject.Kind getKind();
+
+    NestingKind getNestingKind();
+
+    boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/JavaFileObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/OptionChecker.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/OptionChecker.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/OptionChecker.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/OptionChecker.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,22 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+public interface OptionChecker {
+    int isSupportedOption(String option);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/OptionChecker.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/SimpleJavaFileObject.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/SimpleJavaFileObject.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/SimpleJavaFileObject.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/SimpleJavaFileObject.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,93 @@
+package javax.tools;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.io.Reader;
+import java.io.StringReader;
+import java.io.Writer;
+import java.net.URI;
+
+import javax.lang.model.element.Modifier;
+import javax.lang.model.element.NestingKind;
+
+/**
+ * This class is for subclass
+ * 
+ */
+public class SimpleJavaFileObject implements FileObject, JavaFileObject {
+    protected final Kind kind;
+
+    protected final URI uri;
+
+    protected SimpleJavaFileObject(URI uri, JavaFileObject.Kind kind) {
+        this.uri = uri;
+        this.kind = kind;
+    }
+
+    public boolean delete() {
+        // do nothing
+        return false;
+    }
+
+    public Modifier getAccessLevel() {
+        // do nothing
+        return null;
+    }
+
+    public CharSequence getCharContent(boolean ignoreEncodingErrors) {
+        // do nothing here
+        throw new UnsupportedOperationException();
+    }
+
+    public JavaFileObject.Kind getKind() {
+        return kind;
+    }
+
+    public long getLastModified() {
+        return 0L;
+    }
+
+    public String getName() {
+        return uri.getClass().toString();
+    }
+
+    public NestingKind getNestingKind() {
+        return null;
+    }
+
+    public boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind) {
+        if (this.kind.equals(kind)) {
+            String path = uri.getPath();
+            String givenPath = simpleName + kind.extension;
+            if (path.equals(givenPath) || path.endsWith("/" + givenPath)) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    public InputStream openInputStream() {
+        throw new UnsupportedOperationException();
+    }
+
+    public OutputStream openOutputStream() {
+        throw new UnsupportedOperationException();
+    }
+
+    public Reader openReader(boolean ignoreEncodingErrors) {
+        return new StringReader(getCharContent(ignoreEncodingErrors).toString());
+    }
+
+    public Writer openWriter() {
+        return new OutputStreamWriter(openOutputStream());
+    }
+
+    public String toString() {
+        return getClass().getName() + '@' + Integer.toHexString(hashCode());
+    }
+
+    public URI toUri() {
+        return uri;
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/SimpleJavaFileObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardJavaFileManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardJavaFileManager.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardJavaFileManager.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardJavaFileManager.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,42 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.io.Closeable;
+import java.io.File;
+import java.io.Flushable;
+
+public interface StandardJavaFileManager extends Closeable, Flushable,
+        JavaFileManager, OptionChecker {
+    Iterable<? extends JavaFileObject> getJavaFileObjects(File... files);
+
+    Iterable<? extends JavaFileObject> getJavaFileObjects(String... names);
+
+    Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles(
+            Iterable<? extends File> files);
+
+    Iterable<? extends JavaFileObject> getJavaFileObjectsFromStrings(
+            Iterable<String> names);
+
+    Iterable<? extends File> getLocation(JavaFileManager.Location location);
+
+    boolean isSameFile(FileObject a, FileObject b);
+
+    void setLocation(JavaFileManager.Location location,
+            Iterable<? extends File> path);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardJavaFileManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardLocation.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardLocation.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardLocation.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardLocation.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,86 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Set;
+import java.util.Map.Entry;
+
+public enum StandardLocation implements JavaFileManager.Location {
+	ANNOTATION_PROCESSOR_PATH, CLASS_OUTPUT, CLASS_PATH, PLATFORM_CLASS_PATH, SOURCE_OUTPUT, SOURCE_PATH;
+
+	static HashMap<String, JavaFileManager.Location> slist = new HashMap<String, JavaFileManager.Location>();
+
+	static {
+		slist.put("ANNOTATION_PROCESSOR_PATH", ANNOTATION_PROCESSOR_PATH);
+		slist.put("CLASS_OUTPUT", CLASS_OUTPUT);
+		slist.put("CLASS_PATH", CLASS_PATH);
+		slist.put("PLATFORM_CLASS_PATH", PLATFORM_CLASS_PATH);
+		slist.put("SOURCE_OUTPUT", SOURCE_OUTPUT);
+		slist.put("SOURCE_PATH", SOURCE_PATH);
+	}
+
+	public static JavaFileManager.Location locationFor(String name) {
+		JavaFileManager.Location ret = slist.get(name);
+		if (null == ret) {
+			JavaFileManager.Location l = new ExtraLocation(name);
+			slist.put(name, l);
+			return l;
+		}
+		return ret;
+	}
+
+	public String getName() {
+		Set<Entry<String, JavaFileManager.Location>> set = slist.entrySet();
+		for (Iterator<Entry<String, JavaFileManager.Location>> iter = set
+				.iterator(); iter.hasNext();) {
+			Entry<String, JavaFileManager.Location> element = (Entry<String, JavaFileManager.Location>) iter
+					.next();
+			if (element.getValue() == this) {
+				return element.getKey();
+			}
+		}
+		return null;
+	}
+
+	public boolean isOutputLocation() {
+		if (getName().endsWith("_OUTPUT")) {
+			return true;
+		}
+		return false;
+	}
+}
+
+class ExtraLocation implements JavaFileManager.Location {
+	private String name;
+
+	public ExtraLocation(String name) {
+		this.name = name;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public boolean isOutputLocation() {
+		if (name != null && name.endsWith("_OUTPUT")) {
+			return true;
+		}
+		return false;
+	}
+}
\ No newline at end of file

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/StandardLocation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Tool.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Tool.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Tool.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Tool.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,30 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.Set;
+
+import javax.lang.model.SourceVersion;
+
+public interface Tool {
+    Set<SourceVersion> getSourceVersions();
+
+    int run(InputStream in, OutputStream out, OutputStream err,
+            String... arguments);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/Tool.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ToolProvider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ToolProvider.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ToolProvider.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ToolProvider.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,30 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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 javax.tools;
+
+import org.apache.harmony.kernel.vm.VM;
+import org.eclipse.jdt.internal.compiler.tool.*;
+
+public class ToolProvider {
+    public static JavaCompiler getSystemJavaCompiler() {
+        return new EclipseCompiler();
+    }
+
+    public static ClassLoader getSystemToolClassLoader() {
+        return VM.bootCallerClassLoader();
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/main/java/javax/tools/ToolProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/DiagnosticCollectorTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/DiagnosticCollectorTest.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/DiagnosticCollectorTest.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/DiagnosticCollectorTest.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,42 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.tools.test.javax.tools;
+
+import java.util.Iterator;
+import java.util.List;
+
+import javax.tools.DiagnosticCollector;
+
+import junit.framework.TestCase;
+
+public class DiagnosticCollectorTest extends TestCase {
+    public void testReport() throws Exception {
+        DiagnosticCollector dc = new DiagnosticCollector();
+        dc.report(null);
+        dc.report(new MockDiagnostic());
+    }
+    
+    public void testGetDiagnostic() throws Exception {
+        DiagnosticCollector dc = new DiagnosticCollector();
+        dc.getDiagnostics();
+        List list = dc.getDiagnostics();
+        for (Iterator iter = list.iterator(); iter.hasNext();) {
+            System.out.println(iter.next());            
+        }
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/DiagnosticCollectorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/ForwardingFileObjectTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/ForwardingFileObjectTest.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/ForwardingFileObjectTest.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/ForwardingFileObjectTest.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,90 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.tools.test.javax.tools;
+
+import static org.junit.Assert.fail;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.io.Writer;
+import java.net.URI;
+
+import javax.tools.FileObject;
+import javax.tools.ForwardingFileObject;
+import javax.tools.SimpleJavaFileObject;
+import javax.tools.JavaFileObject.Kind;
+
+import org.junit.Test;
+
+public class ForwardingFileObjectTest {
+
+    class MockForwardingFileObject extends ForwardingFileObject {
+        public MockForwardingFileObject(URI uri, Kind kind) {
+            super(new MockSimpleJavaFileObject(uri, kind));
+        }
+    }
+
+    MockForwardingFileObject mock = new MockForwardingFileObject(null, Kind.OTHER);
+    
+    @Test
+    public void testDelete() {
+        mock.delete();
+    }
+
+    @Test
+    public void testGetCharContent() {
+        mock.getCharContent(false);
+    }
+
+    @Test
+    public void testGetLastModified() {
+        fail("Not yet implemented");
+    }
+
+    @Test
+    public void testGetName() {
+        fail("Not yet implemented");
+    }
+
+    @Test
+    public void testOpenInputStream() {
+        fail("Not yet implemented");
+    }
+
+    @Test
+    public void testOpenOutputStream() {
+        fail("Not yet implemented");
+    }
+
+    @Test
+    public void testOpenReader() {
+        fail("Not yet implemented");
+    }
+
+    @Test
+    public void testOpenWriter() {
+        fail("Not yet implemented");
+    }
+
+    @Test
+    public void testToUri() {
+        fail("Not yet implemented");
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/ForwardingFileObjectTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockDiagnostic.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockDiagnostic.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockDiagnostic.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockDiagnostic.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,62 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.tools.test.javax.tools;
+
+import java.util.Locale;
+
+import javax.tools.Diagnostic;
+
+public class MockDiagnostic implements Diagnostic {
+
+    public String getCode() {
+        return "Mock Error code 0";
+    }
+
+    public long getColumnNumber() {
+        return 1000;
+    }
+
+    public long getEndPosition() {
+        return -1000;
+    }
+
+    public Kind getKind() {
+        return Kind.ERROR;
+    }
+
+    public long getLineNumber() {
+        return 2000;
+    }
+
+    public String getMessage(Locale locale) {
+        return "localed message";
+    }
+
+    public long getPosition() {
+        return 3000;
+    }
+
+    public Object getSource() {
+        return null;
+    }
+
+    public long getStartPosition() {
+        return -2000;
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockDiagnostic.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockSimpleJavaFileObject.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockSimpleJavaFileObject.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockSimpleJavaFileObject.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockSimpleJavaFileObject.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,30 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.tools.test.javax.tools;
+
+import java.net.URI;
+
+import javax.tools.SimpleJavaFileObject;
+
+public class MockSimpleJavaFileObject extends SimpleJavaFileObject {
+
+    public MockSimpleJavaFileObject(URI uri, Kind kind) {
+        super(uri, kind);
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/MockSimpleJavaFileObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/StandardLocationTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/StandardLocationTest.java?rev=998609&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/StandardLocationTest.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/StandardLocationTest.java Sun Sep 19 08:08:29 2010
@@ -0,0 +1,33 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.tools.test.javax.tools;
+
+import javax.tools.StandardLocation;
+
+import junit.framework.TestCase;
+
+public class StandardLocationTest extends TestCase {
+    public void testLocationFor() throws Exception {
+        StandardLocation sl = StandardLocation.ANNOTATION_PROCESSOR_PATH;
+        assertTrue("ANNOTATION_PROCESSOR_PATH".equals(sl.locationFor(
+                sl.getName()).getName()));
+        assertFalse(sl.locationFor(sl.getName()).isOutputLocation());
+        assertTrue(sl.locationFor("_OUTPUT").isOutputLocation());
+        assertTrue(sl.locationFor("213_OUTPUT").isOutputLocation());
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/x-tools/src/test/org/apache/harmony/tools/test/javax/tools/StandardLocationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message