Permalink
Browse files

Initial import of Doclava project

Change-Id: Ia5ae56f1700fce98e0ae6954fa2df617ec0537bb
  • Loading branch information...
1 parent c8f6c75 commit 920dbbbaca6aa578f3b26d89e99d12754c26ed60 Ben Dodson committed Aug 4, 2010
Showing with 28,707 additions and 0 deletions.
  1. +34 −0 Android.mk
  2. +28 −0 NOTICE
  3. +106 −0 build.xml
  4. +7 −0 res/assets/customizations/assets/customizations.css
  5. 0 res/assets/customizations/assets/customizations.js
  6. +1 −0 res/assets/customizations/customizations.cs
  7. +1,195 −0 res/assets/templates/assets/android-developer-core.css
  8. +19 −0 res/assets/templates/assets/android-developer-docs-devguide.css
  9. +1,300 −0 res/assets/templates/assets/android-developer-docs.css
  10. +593 −0 res/assets/templates/assets/android-developer-docs.js
  11. +392 −0 res/assets/templates/assets/android-developer-reference.js
  12. BIN res/assets/templates/assets/images/bg_fade.jpg
  13. BIN res/assets/templates/assets/images/bg_logo.png
  14. BIN res/assets/templates/assets/images/body-gradient-tab.png
  15. BIN res/assets/templates/assets/images/body-gradient.png
  16. BIN res/assets/templates/assets/images/grad-rule-qv.png
  17. BIN res/assets/templates/assets/images/hr_gray_main.jpg
  18. BIN res/assets/templates/assets/images/hr_gray_side.jpg
  19. BIN res/assets/templates/assets/images/left_off.jpg
  20. BIN res/assets/templates/assets/images/left_on.jpg
  21. BIN res/assets/templates/assets/images/preliminary.png
  22. BIN res/assets/templates/assets/images/resizable-e.gif
  23. BIN res/assets/templates/assets/images/resizable-e2.gif
  24. BIN res/assets/templates/assets/images/resizable-eg.gif
  25. BIN res/assets/templates/assets/images/resizable-s.gif
  26. BIN res/assets/templates/assets/images/resizable-s2.gif
  27. BIN res/assets/templates/assets/images/resizable-sg.gif
  28. BIN res/assets/templates/assets/images/right_off.jpg
  29. BIN res/assets/templates/assets/images/right_on.jpg
  30. BIN res/assets/templates/assets/images/sidenav-rule.png
  31. BIN res/assets/templates/assets/images/spacer.gif
  32. BIN res/assets/templates/assets/images/triangle-closed-small.png
  33. BIN res/assets/templates/assets/images/triangle-closed.png
  34. BIN res/assets/templates/assets/images/triangle-opened-small.png
  35. BIN res/assets/templates/assets/images/triangle-opened.png
  36. +78 −0 res/assets/templates/assets/jquery-history.js
  37. +40 −0 res/assets/templates/assets/jquery-resizable.min.js
  38. +35 −0 res/assets/templates/assets/microtemplate.js
  39. +33 −0 res/assets/templates/assets/prettify.js
  40. +266 −0 res/assets/templates/assets/search_autocomplete.js
  41. +316 −0 res/assets/templates/assets/style.css
  42. BIN res/assets/templates/assets/triangle-none.gif
  43. +648 −0 res/assets/templates/class.cs
  44. +41 −0 res/assets/templates/classes.cs
  45. +10 −0 res/assets/templates/components.cs
  46. +19 −0 res/assets/templates/components/api_filter.cs
  47. +68 −0 res/assets/templates/components/left_nav.cs
  48. +12 −0 res/assets/templates/components/masthead.cs
  49. +33 −0 res/assets/templates/components/search_box.cs
  50. +4 −0 res/assets/templates/data.hdf
  51. +188 −0 res/assets/templates/diff.cs
  52. +41 −0 res/assets/templates/docpage.cs
  53. +1 −0 res/assets/templates/doctype.cs
  54. +3 −0 res/assets/templates/footer.cs
  55. +37 −0 res/assets/templates/head_tag.cs
  56. +3 −0 res/assets/templates/header.cs
  57. +68 −0 res/assets/templates/hierarchy.cs
  58. +8 −0 res/assets/templates/index.cs
  59. +37 −0 res/assets/templates/keywords.cs
  60. +5 −0 res/assets/templates/lists.cs
  61. +293 −0 res/assets/templates/macros.cs
  62. +4 −0 res/assets/templates/navtree_data.cs
  63. +23 −0 res/assets/templates/nosidenavpage.cs
  64. +39 −0 res/assets/templates/package-descr.cs
  65. +2 −0 res/assets/templates/package-list.cs
  66. +60 −0 res/assets/templates/package.cs
  67. +38 −0 res/assets/templates/packages.cs
  68. +32 −0 res/assets/templates/sample.cs
  69. +64 −0 res/assets/templates/sampleindex.cs
  70. +99 −0 res/assets/templates/todo.cs
  71. +5 −0 res/assets/templates/trailer.cs
  72. +2 −0 src/MANIFEST.mf
  73. +56 −0 src/com/google/doclava/AnnotationInstanceInfo.java
  74. +70 −0 src/com/google/doclava/AnnotationValueInfo.java
  75. +134 −0 src/com/google/doclava/AttrTagInfo.java
  76. +101 −0 src/com/google/doclava/AttributeInfo.java
  77. +1,716 −0 src/com/google/doclava/ClassInfo.java
  78. +215 −0 src/com/google/doclava/ClearPage.java
  79. +33 −0 src/com/google/doclava/CodeTagInfo.java
  80. +366 −0 src/com/google/doclava/Comment.java
  81. +153 −0 src/com/google/doclava/ConstructorInfo.java
  82. +23 −0 src/com/google/doclava/ContainerInfo.java
  83. +661 −0 src/com/google/doclava/Converter.java
  84. +141 −0 src/com/google/doclava/DocFile.java
  85. +90 −0 src/com/google/doclava/DocInfo.java
  86. +1,375 −0 src/com/google/doclava/Doclava.java
  87. +349 −0 src/com/google/doclava/DoclavaDiff.java
  88. +187 −0 src/com/google/doclava/Errors.java
  89. +63 −0 src/com/google/doclava/FederatedSite.java
  90. +116 −0 src/com/google/doclava/FederationTagger.java
  91. +375 −0 src/com/google/doclava/FieldInfo.java
  92. +142 −0 src/com/google/doclava/Hierarchy.java
  93. +23 −0 src/com/google/doclava/InheritedTags.java
  94. +94 −0 src/com/google/doclava/JarUtils.java
  95. +45 −0 src/com/google/doclava/KeywordEntry.java
  96. +430 −0 src/com/google/doclava/LinkReference.java
  97. +30 −0 src/com/google/doclava/LiteralTagInfo.java
  98. +148 −0 src/com/google/doclava/MemberInfo.java
  99. +810 −0 src/com/google/doclava/MethodInfo.java
  100. +149 −0 src/com/google/doclava/NavTree.java
  101. +222 −0 src/com/google/doclava/PackageInfo.java
  102. +84 −0 src/com/google/doclava/ParamTagInfo.java
  103. +81 −0 src/com/google/doclava/ParameterInfo.java
  104. +55 −0 src/com/google/doclava/ParsedTagInfo.java
  105. +157 −0 src/com/google/doclava/Proofread.java
  106. +180 −0 src/com/google/doclava/SampleCode.java
  107. +266 −0 src/com/google/doclava/SampleTagInfo.java
  108. +29 −0 src/com/google/doclava/Scoped.java
  109. +73 −0 src/com/google/doclava/SeeTagInfo.java
  110. +248 −0 src/com/google/doclava/SinceTagger.java
  111. +31 −0 src/com/google/doclava/Sorter.java
  112. +103 −0 src/com/google/doclava/SourcePositionInfo.java
  113. +948 −0 src/com/google/doclava/Stubs.java
  114. +90 −0 src/com/google/doclava/TagInfo.java
  115. +23 −0 src/com/google/doclava/TextTagInfo.java
  116. +74 −0 src/com/google/doclava/ThrowsTagInfo.java
  117. +193 −0 src/com/google/doclava/TodoFile.java
  118. +337 −0 src/com/google/doclava/TypeInfo.java
  119. +29 −0 src/com/google/doclava/apicheck/AbstractMethodInfo.java
  120. +368 −0 src/com/google/doclava/apicheck/ApiCheck.java
  121. +120 −0 src/com/google/doclava/apicheck/ApiInfo.java
  122. +31 −0 src/com/google/doclava/apicheck/ApiParseException.java
  123. +132 −0 test/api/add-class.xml
  124. +295 −0 test/api/added-exception.xml
  125. +289 −0 test/api/added-field.xml
  126. +115 −0 test/api/added-interface.xml
  127. +490 −0 test/api/added-package.xml
  128. +304 −0 test/api/api.xml
  129. +246 −0 test/api/changed-abstract.xml
  130. +246 −0 test/api/changed-abstract2.xml
  131. +269 −0 test/api/changed-class-info.xml
  132. +270 −0 test/api/changed-class-info2.xml
  133. +278 −0 test/api/changed-deprecated.xml
  134. +278 −0 test/api/changed-deprecated2.xml
  135. +278 −0 test/api/changed-deprecated3.xml
  136. +278 −0 test/api/changed-final.xml
  137. +278 −0 test/api/changed-final2.xml
  138. +278 −0 test/api/changed-final3.xml
  139. +278 −0 test/api/changed-native.xml
  140. +278 −0 test/api/changed-scope.xml
  141. +278 −0 test/api/changed-scope2.xml
  142. +278 −0 test/api/changed-scope3.xml
  143. +278 −0 test/api/changed-scope4.xml
  144. +278 −0 test/api/changed-static.xml
  145. +278 −0 test/api/changed-static2.xml
  146. +278 −0 test/api/changed-static3.xml
  147. +115 −0 test/api/changed-super.xml
  148. +278 −0 test/api/changed-synchronized.xml
  149. +278 −0 test/api/changed-transient.xml
  150. +278 −0 test/api/changed-type.xml
  151. +278 −0 test/api/changed-value.xml
  152. +278 −0 test/api/changed-value2.xml
  153. +278 −0 test/api/changed-volatile.xml
  154. +278 −0 test/api/constants.xml
  155. +246 −0 test/api/medium.xml
  156. +33 −0 test/api/parameter-changed-1.xml
  157. +35 −0 test/api/parameter-changed-2.xml
  158. +35 −0 test/api/parameter-changed-3.xml
  159. +291 −0 test/api/removed-exception.xml
  160. +244 −0 test/api/removed-interface.xml
  161. +115 −0 test/api/return-type-changed-1.xml
  162. +115 −0 test/api/return-type-changed-2.xml
  163. +115 −0 test/api/simple.xml
  164. +293 −0 test/api/throws.xml
  165. +409 −0 test/doclava/ApiCheckTest.java
View
@@ -0,0 +1,34 @@
+# Copyright (C) 2010 The Android Open Source Project
+#
+# Licensed 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.
+
+LOCAL_PATH := $(call my-dir)
+
+# Jar file for Doclava doclet and apicheck standalone program
+# ============================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_JAVA_LIBRARIES := \
+ jsilver \
+ guavalib
+
+LOCAL_CLASSPATH := \
+ $(HOST_JDK_TOOLS_JAR)
+
+LOCAL_MODULE := doclava
+LOCAL_JAR_MANIFEST := src/MANIFEST.mf
+LOCAL_JAVA_RESOURCE_DIRS := res
+
+include $(BUILD_HOST_JAVA_LIBRARY)
View
28 NOTICE
@@ -0,0 +1,28 @@
+
+jQuery 1.2.6 - New Wave Javascript
+
+Copyright (c) 2008 John Resig (jquery.com)
+Dual licensed under the MIT (MIT-LICENSE.txt)
+and GPL (GPL-LICENSE.txt) licenses.
+
+Copyright (c) 2009 John Resig, http://jquery.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
View
106 build.xml
@@ -0,0 +1,106 @@
+<project name="doclava" default="jar">
+ <property name="jar.dir" value="build/dist/doclava"/>
+ <property name="jar.file" value="${jar.dir}/doclava.jar"/>
+
+ <property environment="env"/>
+ <property name="javahome" value="${env.JAVA_HOME}" />
+ <property name="jsilver" value="lib/jsilver.jar"/>
+ <property name="junit" value="lib/junit-4.8.2.jar"/>
+
+ <path id="classpath.test">
+ <pathelement location="${junit}" />
+ <pathelement location="${jar.file}" />
+ <pathelement location="build/test" />
+ </path>
+
+ <target name="compile" description="Compile Java source.">
+ <mkdir dir="build/classes"/>
+
+ <javac srcdir="src"
+ debug="on"
+ destdir="build/classes"
+ source="1.5"
+ target="1.5"
+ extdirs="">
+ <compilerarg value="-Xlint:all"/>
+ <classpath>
+ <pathelement location="${jsilver}"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile" description="Build jar.">
+ <mkdir dir="${jar.dir}"/>
+
+ <copy todir="build/classes/assets">
+ <fileset dir="assets"/>
+ </copy>
+
+ <jar jarfile="${jar.file}" manifest="src/MANIFEST.mf">
+ <fileset dir="build/classes"/>
+ <zipfileset src="${jsilver}" />
+ </jar>
+ </target>
+
+ <target name="clean"
+ description="Remove generated files.">
+ <delete dir="build"/>
+ </target>
+
+ <target name="clean-jar"
+ description="cleans and builds a .jar"
+ depends="clean,jar">
+ </target>
+
+ <target name="compile-test">
+ <mkdir dir="build/test" />
+
+ <exec executable="/bin/sh">
+ <arg value="-c"/>
+ <arg value="find test/doclava/sample -name '*.java' &gt; build/test/src-list"/>
+ </exec>
+
+ <javac srcdir="test" destdir="build/test">
+ <classpath refid="classpath.test" />
+ </javac>
+ </target>
+
+ <target name="test" depends="jar,compile-test">
+ <junit>
+ <classpath refid="classpath.test" />
+ <formatter type="brief" usefile="false" />
+
+ <batchtest>
+ <fileset dir="build/test">
+ <include name="**/*Test.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="doclava" description="Generate documentation">
+ <taskdef name="doclava" classname="com.google.doclava.DoclavaTask" classpath="${jar.file}"/>
+
+ <mkdir dir="build"/>
+ <exec executable="/bin/sh">
+ <arg value="-c"/>
+ <arg value="find ./src -name '*.java' &gt; build/src-list"/>
+ </exec>
+
+
+ <doclava>
+ <arguments>
+ -quiet
+ -bootclasspath "${javahome}/jre/lib/rt.jar"
+ -doclet com.google.doclava.Doclava
+ -docletpath ${jar.file}
+ -classpath ${jar.file}
+ -d build/api
+ -hdf project.name "Junction"
+ -stubs build/stubs
+ -apixml build/public_api.xml
+ @build/src-list
+ </arguments>
+ </doclava>
+ </target>
+</project>
@@ -0,0 +1,7 @@
+#header {
+ border-bottom: 3px solid #b6223c;
+}
+
+#search_filtered .jd-selected {
+ background-color:#b6223c;
+}
@@ -0,0 +1 @@
+<?cs # placeholder for custom clearsilver code. ?>
Oops, something went wrong.

0 comments on commit 920dbbb

Please sign in to comment.